/* ======================================
   0) CSS Reset
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

/* ======================================
   1) Base Variables
====================================== */
:root {
    /* Colors */
    --primary-color: #6366f1; /* Primary button color */
    --secondary-color: #02040A; /* Darker shade for hover */
    --background-color: rgba(244, 242, 238, 1); /* Light gray background */
    --text-color: #333; /* Default text color */
    --light-text-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    --white-color: #ffffff; /* White */
    --black-color: #000000; /* Black */
    --shadow-color: rgba(0, 0, 0, 0.1); /* Shadow color */

    /* Fonts */
    --font-sans: "SF Pro Text", Verdana, sans-serif;
    --font-display: "SF Pro Display", Arial, sans-serif;

    /* Font Sizes & Line Heights */
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* ======================================
   2) Global Typography
====================================== */

/* Body defaults */
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background: var(--background-color);
}
.main-wrapper {
    width: auto;
    padding-left: 24px;
    padding-right: 24px;

}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--black-color);
    margin-bottom: 0.5rem;
    line-height: 1.2; /* Slightly tighter heading line-height */
}

h1 {
    font-size: 2.5rem; /* ~40px if base is 16px */
    font-weight: 600;
}
h2 {
    font-size: 2rem; /* ~32px */
    font-weight: 500;
}
h3 {
    font-size: 1.5rem; /* ~24px */
    font-weight: 600;
}
/* You can continue h4, h5, h6 as needed */

/* Paragraphs */
p {
    font-size: 1rem; /* 16px */
    line-height: 1.6;
    margin-bottom: 1rem; 
    color: var(--text-color);
    font-family: var(--font-sans);
}

/* Common Section Titles  */
.section-title,
.skills-title,
.about-title {
    font-family: var(--font-display);
    font-size: 2rem;   /* ~32px */
    font-weight: 600;
    color: var(--black-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* Subtitles (like .hero-subtitle, .skills-subtitle) */
.hero-subtitle,
.skills-subtitle {
    font-family: var(--font-display);
    font-size: 1.25rem; /* ~20px */
    font-weight: 500;
    color: var(--light-text-color);
    margin-bottom: 0.75rem;
}

/* Hero Title (if you want a unique style beyond h1) */
.hero-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--black-color);
    margin-bottom: 0.5rem;
}

/* Special text (hero-description, contact-text) */
.hero-description,
.contact-text {
    font-size: 1rem; 
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
}

/* ======================================
   3) Header & Navigation
====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    width: 100%;
    height: 68px;
    margin: 4px;
    padding: 16px 0;
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Inner Navigation Container */
.inner-nav {
    width: 90%;
    max-width: 1288px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap; /* Makes the navbar responsive */
}

/* Navigation Links */
.nav-link {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.87);
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: 
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
}
/* =============
Hover, Focus, and Active States 
=================================*/


.nav-link:hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-link:focus {
    color: var(--primary-color);

}
.nav-link:active {
    color: var(--white-color);
    background-color: var(--primary-color);

}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}
.nav-text {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* ======================================
   4) Main Layout
====================================== */
main {
    width: 100%;
    max-width: 1288px;
    margin: 12px auto 12px auto;
    padding-top: 70px;
}

/* ======================================
   5) Hero Section
====================================== */
.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white-color);
    position: relative;
    padding-bottom: 44px;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

/* Hero Image */
.hero-image img {
    width: 100%;
    height: 252px;
    object-fit: cover;
    border-radius: 0;
}

/* Profile Image (Overlapping) */
.box {
    position: absolute;
    margin-top: -50px; 
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 50%;
    transform: translate(-50%, -50%);
}
.box .profile-img {
    width: 212px;
    height: 212px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white-color);
    box-shadow: 0px 4px 6px var(--shadow-color);
}

/* BIO and CTA in Hero */
.bio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 54px;
}

/* Hi icon Wave Animation */
@keyframes wave {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(20deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    80% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
  }
  #wave-icon {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: inline-block; /* So it can animate. */
  }
  #wave-icon.animate-wave {
    animation: wave 1.2s linear infinite;
  }
  
  
/* .hero-title, .hero-subtitle, and .hero-description
   now controlled by global typography section. */
.bio .hero-title {
    padding: 10px 10px 0 10px; /* Example unique spacing */
}
.bio .hero-subtitle {
    padding-bottom: 10px;
}
.bio .hero-description {
    margin: 10px;
}

/* CTA Container */
.cta-container {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 24px;
    width: 100%;
}

/* CTA Buttons */
.cta {
    width: 176px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 500; /* Example medium weight */
    color: var(--white-color);
    border-radius: 8px;
    background-color: var(--primary-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 6px var(--shadow-color);
}

.cta-gitHub {
    background-color: black;
}

.cta .github-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    padding: 2px;
    margin-left: 8px;
    background-color: var(--white-color);
    border-radius: 50%;
}

/* ======================================
   6) Skills Section
====================================== */
.skills {
    width: 100%;
    margin-top: 12px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: row;
    gap: 24px;
}
.skills-category {
    width: 100%;
    background: var(--white-color);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px var(--shadow-color);
}

/* .skills-title is handled by .section-title or a separate rule above. */
.skills-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .item:hover {
    transform: translateY(-1px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
} */

.skills-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* ======================================
   7) Selected Projects
====================================== */
.anchor-offset {
    display: block;
    position: relative;
    top: -80px; /* negative offset = header height + extra space */
    visibility: hidden;
}

.selected-projects {
    margin-top: 12px;
    width: 100%;
    background-color: var(--white-color);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px var(--shadow-color);
}
.project-cards {
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
}
.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: calc(50% - 24px); /* Two cards per row */
    max-width: 100%;
    background-color: var(--white-color);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0px 4px 6px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}
.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* If you want the project titles to match headings, you can remove these 
   or set them to h3/h4 globally. Otherwise, keep them as a custom style. */
.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem; /* ~24px */
    font-weight: 500;
    color: var(--black-color);
    margin-bottom: 8px;
}
.project-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 12px;
}
.project-tags {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 16px;
}
.project-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--white-color);
    background-color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.project-cta:hover, 
.download-btn-container a:hover {
    background-color: #4037de;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

/* ======================================
   8) About Me Section
====================================== */
.about-me {
    width: 100%;
    margin-top: 12px;
    padding: 24px 154px;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0px 6px 15px -2px var(--shadow-color);
}
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* .about-title is handled by .section-title or a separate rule above. */
.about-content {
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    gap: 20px;
    justify-content: center;
    border: 1px solid #00000014;
    padding: 24px;
    border-radius: 8px;
}
.about-text {
    max-width: 60%;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: var(--text-color);
    text-align: left;
    font-family: var(--font-sans);
}
.about-image {
    text-align: center;
    width: 40%;
    margin: 0 auto;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.about-image figcaption {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #666666;
    text-align: center;
    font-family: var(--font-sans);
}

/* ======================================
   9) Get in Touch Section
====================================== */
.get-in-touch {
    width: 100%;
    margin-top: 12px;
    padding: 24px;
    background: var(--white-color);
    border-radius: 8px 0 0 0;
    box-shadow: 0px 6px 15px -2px rgba(16, 24, 40, 0.08);
}
.get-in-touch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
/* .section-title is covered by the global rule above */
.contact-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* .contact-text uses .hero-description or the new .contact-text rule above */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.contact-icon {
    width: 25px;
    height: 25px;
}
.contact-info a {
    font-family: var(--font-display); /* Or var(--font-sans), as preferred */
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    color: var(--black-color);
    text-decoration: none;
    transition: color 0.3s ease;
    user-select: text;
    cursor: pointer;
}
.contact-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ======================================
   10) Footer
====================================== */
.footer {
    width: 100%;
    height: auto;
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 24px;
    text-align: center;
    box-shadow: 0px -4px 6px rgba(0, 0, 0, 0.1);
}
.footer-container {
    max-width: 1288px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-nav {
    text-align: center;
}
.footer-logo .logo {
    background-color: var(--white-color);
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.footer-link {
    font-size: 16px;
    font-weight: 400;
    color: var(--white-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: var(--primary-color);
}
.footer-info {
    font-size: 14px;
    font-weight: 400;
    color: #d1d5db;
    text-align: center;
    line-height: 1.5;
}



/* ======================================
 Responsive Design
====================================== */

@media (max-width: 440px) {
    .header {
        height: auto; /* allow it to expand if items stack */
        padding: 8px 0; /* less padding for smaller screens */
        margin: 0;      /* remove margin if it causes layout issues */
      }
    
      /* 2) .inner-nav can remain, but ensure it can wrap */
      .inner-nav {
        flex-wrap: wrap;
      }
    
      /* 3) The .logo-container can remain as is, or if you want it 
            centered, just do: 
      */
      .logo-container {
        margin-bottom: 8px;
        display: flex;
        justify-content: center;
        width: 100%; /* full width so the logo is on its own “row” */
      }
    
      /* 4) Make .navbar stack items vertically (column) */
      .navbar {
        gap: 8px; /* reduce gap from 36px */
        flex-direction: column; /* stack links vertically */
        width: 100%; /* stretch to full width */
        justify-content: center; /* center them horizontally */
        align-items: center;     /* center them */
      }
    
      /* 5) Nav-link style adjustments for smaller screens */
      .nav-link {
        flex-direction: row; /* Icon + text side by side if you prefer */
        gap: 8px;           /* small gap between icon and text */
        padding: 8px;       /* reduce padding overall */
        border-bottom: none; /* optional: remove the bottom border style for small screens */
      }
    
      /* 6) If you want smaller icons on mobile/tablet */
      .nav-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 0; /* remove the default margin-bottom if row direction */
      }
      .nav-text {
        font-size: 0.85rem; /* slightly smaller */
      }


    /* call to action buttons */
    .cta-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
   
    }
    .cta {
        width: 100%;
    }
    main {
    padding-top: 230px;
    }

    .about-me {
        padding: 12px; /* reduce padding */
      }
    .skills-items {
         flex-direction: column; 
      }
    .item {
        flex-direction: row;
        gap:8px;
    }
}

@media (max-width: 577px) {
    .logo-container {
        display: none;
    }
    .inner-nav {
        justify-content: center;
    }
 }

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    .cta {
        width: 100%;
        margin: 0 12px 0 12px;
    }
    .skills {
        flex-direction: column;  /* stays row, no change from desktop */
      }
    .skills-items {
        justify-content: flex-start; 
      }
    .project-cards {
        flex-direction: column; /* stack cards vertically */
        gap: 24px; /* space between cards */
      }
    .project-card {
        width: 100%; /* full width */
      }
    .about-me {
        padding: 24px; /* reduce padding */
      }
    .about-container {
        flex-direction: column; /* stack image on top of text */
        gap: 0px; /* space between image and text */
      }
    .about-content {
        flex-direction: column; /* stack image on top of text */
        gap: 24px; /* space between image and text */
      }
    .about-text {
        max-width: 100%; /* full width */
        font-size: 14px;
      }
    .about-image {
        width: 100%; /* full width */
      }
    
      .footer-container {
        align-items: center;
    }
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
}


/* ======================================
   CV Page Styles
====================================== */
.cv-preview {
    max-width: 900px; /* or 100% if you prefer full width */
    background-color: var(--white-color);
    margin: 0px auto 24px auto;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .intro-text {
    font-size: 1rem;
    text-align: center;
    max-width: 600px; /* make sure text lines aren’t too wide */
  }
  .cv-iframe {
    width: 100%;
    max-width: 940px;
    height: 600px;
    border: none;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.1);
  }
  
  .download-btn-container a {
    width: 411px;
  }
  .download-btn-container a:hover {
    background-color: #4037de;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}



/* ======================================
   Hamburger Menu Styles on Mobile
====================================== */
/* 1) Menu Toggle (Hamburger) - default hidden on large screens */

.menu-toggle {
    display: none;
    cursor: pointer;
    /* a little spacing or size so it’s easy to tap */
    width: 24px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    align-items:end;
  }
  
  /* The bars */
  .menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-color) ;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  /* 2) Transform bars into X when active */
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0; /* middle bar hidden */
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
 
  
  /* On mobile, hide the navbar by default unless .active is toggled */
  @media (max-width: 440px) {
    .header {
        background-color: var(--primary-color);
        width: 89%;
        height: auto;
        padding: 8px 8px 8px 8px;
        margin: 4px auto 4px auto;
        border-radius: 8px 8px 0 0;
      }
      .inner-nav {
        justify-content: space-evenly;
        margin-right: auto;
        margin-left: auto;
        border: 1px solid var(--white-color, 0.12);
        padding: 8px 8px 8px 8px;
        border-radius: 8px 8px 0 0;
    }
    .logo-container {
        display: block;
        height: 24px;
    }
    .logo-hamburger-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .navbar {
      display: none; /* hide the navbar */
      flex-direction: column;
      padding: 16px 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.12);
      border-radius: 0 0 8px 8px;
      box-shadow: 0px 4px 6px var(--shadow-color);
    }
    .menu-toggle {
      display: flex; /* show the hamburger */
    }
    .navbar.active {
      display: flex; /* show the navbar */
    }

    main {
        padding-top: 46px;
    }
    .nav-text {
        font-size: 0.85rem;
        color: var(--white-color);
      }
  }
  
  /* End of CSS */
  