/* ===================================
   CSS RESET & BASE STYLES
   =================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background-color: #f9efe3;
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: #333;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: "Ubuntu", sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 600;
    text-transform: uppercase;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

h6 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
}

p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

strong, b {
    font-weight: 600;
}

/* ===================================
   LAYOUT UTILITIES
   =================================== */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 3rem 0;
}

.section-title {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #FFD660;
    border-radius: 2px;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
.header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    z-index: 1000;
    max-width: 860px;
    width: calc(100% - 2rem);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
    width: 80px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #FFD660;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a:hover::before {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.info-box h1 {
    margin-bottom: 0.5rem;
}

.typing-text {
    color: #666;
    margin-top: 0.5rem;
    min-height: 2.5rem;
}

.wave {
    display: inline-block;
    animation: wave-animation 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0%, 60%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
}

.info-box a {
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.info-box a:hover {
    color: #000;
}

.info-box a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background: #FFD660;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.info-box a:hover::after {
    transform: scaleX(1);
}

/* ===================================
   SKILLS SECTION
   =================================== */
.skill-group {
    margin-bottom: 2rem;
}

.skill-group-name {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #333;
}

.skill-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: rgba(200, 200, 200, 0.3);
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
    cursor: default;
}

.skill:hover {
    background-color: #FFD660;
    border-color: #FFD660;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */
.company {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.company:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.company-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.roles {
    margin-bottom: 1.5rem;
}

.role-item {
    font-size: 0.95rem;
    font-weight: 600;
    font-style: italic;
    color: #666;
    margin-bottom: 0.3rem;
}

.project-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.project {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid #FFD660;
}

.project:last-child {
    margin-bottom: 0;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}

.project-description {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.tech-stack,
.responsibilities {
    margin-top: 1.25rem;
}

.subsection-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: #555;
}

.responsibilities ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.responsibilities li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===================================
   AWARDS SECTION
   =================================== */
.awards-container,
.education-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.award,
.education-item {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border-left: 3px solid #FFD660;
}

.award-title,
.education-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.award-date,
.education-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.location {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.socials a {
    color: #333;
    transition: all 0.3s ease;
}

.socials i {
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.socials a:hover i {
    transform: scale(1.2);
    color: #FFD660;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}

/* ===================================
   MOBILE RESPONSIVE STYLES
   =================================== */

/* Tablets and smaller laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .header {
        max-width: calc(100% - 2rem);
    }
}

/* Tablets */
@media (max-width: 768px) {

    html {
        scroll-padding-top: 90px; /* Adjusted for smaller header */
    }

    /* Header */
    .header {
        padding: 0.75rem 1rem;
        top: 0.5rem;
    }

    .logo img {
        width: 70px;
    }

    .nav-links {
        position: fixed;
        top: 40px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        gap: 1.5rem;
        border-radius: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        max-width: 860px;
        margin: 0 auto;
    }

    .nav-links.active {
        transform: translateY(20px);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Sections */
    section {
        padding: 2rem 0;
    }

    .about {
        margin-top: 90px;
        min-height: auto;
        padding-top: 2rem;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Skills */
    .skill-tiles {
        gap: 0.4rem;
    }

    .skill {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }

    /* Projects */
    .project {
        padding: 1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .socials {
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 480px) {

    html {
        scroll-padding-top: 80px; /* Adjusted for mobile header */
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Header */
    .header {
        padding: 0.5rem 0.75rem;
        gap: 1rem;
        width: calc(100% - 1rem);
    }

    .logo img {
        width: 60px;
    }

    .nav-links {
        top: 40px;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    /* About section */
    .about {
        margin-top: 80px;
    }

    /* Typography */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p {
        font-size: 0.9rem;
    }

    /* Skills */
    .skill-group-name {
        font-size: 0.95rem;
    }

    .skill {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Company & Projects */
    .company-name {
        font-size: 1.25rem;
    }

    .role-item {
        font-size: 0.85rem;
    }

    .project {
        padding: 0.75rem;
        border-left-width: 2px;
    }

    .project-name {
        font-size: 1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .subsection-title {
        font-size: 0.85rem;
    }

    .responsibilities li {
        font-size: 0.85rem;
    }

    /* Awards & Education */
    .award,
    .education-item {
        padding: 1rem;
    }

    .award-title,
    .education-title {
        font-size: 0.95rem;
    }

    .award-date,
    .education-details {
        font-size: 0.85rem;
    }

    /* Footer */
    .socials i {
        font-size: 1.5rem;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .header {
        padding: 0.5rem;
    }

    .logo img {
        width: 50px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .skill {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.no-margin-bottom {
    margin-bottom: 0 !important;
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-toggle,
    .socials {
        display: none;
    }

    .about {
        margin-top: 0;
    }

    section {
        page-break-inside: avoid;
    }
}