:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333;
    --background-color: #ecf0f1;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo img {
    width: 50px;
    height: auto;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

main {
    padding-top: 0;
}

.hero {
    background-color: #808080;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 5% 0;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 50%;
    z-index: 1;
    position: absolute;
    left: 5%;
    top: 40%;
    transform: translateY(-50%);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-image {
    position: absolute;
    right: -10%;
    top: 0;
    bottom: 0;
    width: 60%;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #000000;
}

.language-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.language-item {
    background-color: #f8f9fa;
    border-radius: 25px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flag {
    font-size: 1.5em;
    margin-right: 10px;
}

.language-name {
    font-size: 1em;
    color: #333;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #000000;
}

.section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

.profile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 250px;
    height: 200px;
    border-radius: 35%;
    overflow: hidden;
    margin-right: 40px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.profile-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.experience-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.experience-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.experience-item p {
    font-size: 1rem;
    color: var(--secondary-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    background-color: #f8f9fa;
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.contact-info {
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
}

footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-icon span:nth-child(1) {
    top: 0px;
}

.menu-icon span:nth-child(2) {
    top: 8px;
}

.menu-icon span:nth-child(3) {
    top: 16px;
}

.menu-icon.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-icon.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
        height: var(--header-height);
    }

    .logo img {
        width: 40px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav ul.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--primary-color);
        padding: 20px;
        z-index: 999;
        justify-content: center;
        align-items: center;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    nav ul.active.show {
        transform: translateY(0);
    }

    nav ul.active li {
        margin: 15px 0;
    }

    nav ul.active li a {
        font-size: 1.2rem;
    }

    .hero {
        height: 100vh;
        padding-top: 60px;
    }

    .hero-content {
        max-width: 100%;
        left: 20px;
        right: 20px;
        top: 30%;
        text-align: left;
    }

    .hero-image {
        right: -30%;
        width: 100%;
        transform: scale(0.8); /* This will make the image 80% of its original size */
        transform-origin: bottom right; /* This ensures the scaling happens from the bottom-right corner */
      }
    
      .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin-right: 0;
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
        border-radius: 10%;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .menu-icon {
      width: 25px; /* Reduce from 30px */
      height: 18px; /* Reduce from 20px */
    }
  
    .menu-icon span {
      height: 2px; /* Reduce from 3px */
    }
  
    .menu-icon span:nth-child(2) {
      top: 7px; /* Adjust from 8px */
    }
  
    .menu-icon span:nth-child(3) {
      top: 14px; /* Adjust from 16px */
    }
  
    .menu-icon.open span:nth-child(1),
    .menu-icon.open span:nth-child(3) {
      top: 7px; /* Adjust from 9px */
    }
  }

  @media print {
    body {
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
      margin: 0;
      padding: 0;
    }
  
    @page {
      margin: 0;
      size: auto;
    }
  
    .container {
      width: 100% !important;
      max-width: none !important;
      padding: 0 !important;
    }
  
    header {
      position: static !important;
      print-color-adjust: exact !important;
    }
  
    .hero {
      height: 100vh !important;
      page-break-after: always;
      display: flex !important;
      align-items: center !important;
      position: relative !important;
    }
  
    .hero-content {
      position: absolute !important;
      left: 5% !important;
      top: 40% !important;
      transform: translateY(-50%) !important;
      max-width: 50% !important;
      z-index: 1 !important;
    }
  
    .hero-image {
      position: absolute !important;
      right: -10% !important;
      top: 0 !important;
      bottom: 0 !important;
      width: 60% !important;
      overflow: hidden !important;
    }
  
    .hero-image img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center !important;
    }
  
    .hero-content h2 {
      font-size: 4rem !important;
      line-height: 1.2 !important;
      margin-bottom: 20px !important;
      color: #000000 !important;
    }
  
    .hero-content p {
      font-size: 1.2rem !important;
      margin-bottom: 30px !important;
      color: #000000 !important;
    }
  
    /* Ensure all content is visible */
    main, section, footer {
      position: static !important;
      overflow: visible !important;
    }
  
    /* Hide unnecessary elements for print */
    .menu-icon, nav ul {
      display: none !important;
    }
  

  }
