/* =====================================================
   ROOT CSS VARIABLES
   ===================================================== */

:root {
    --primary-dark: #0f172a;
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --light-bg: #f8fafc;
    --light-gray: #e2e8f0;
    --border-color: #cbd5e1;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   GLOBAL STYLES
   ===================================================== */


/* Logo main container */
.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Logo + Text */
.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    height: 56px;
    padding: 0 14px;
}

/* Logo image */
.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

/* Logo text */
.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .logo-link {
        gap: 7px;
        padding: 0 10px;
        height: 50px;
    }

    .site-logo {
        width: 34px;
        height: 34px;
    }

    .logo-text {
        font-size: 15px;
    }
}



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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p { font-size: 1rem; color: var(--text-light); }

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-blue);
}

/* =====================================================
   CONTAINER & SECTIONS
   ===================================================== */

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

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* =====================================================
   NAVBAR
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background-color: rgba(15, 23, 42, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.logo-text:hover {
    color: var(--accent-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-blue);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-resume {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
}

.nav-link-resume::after {
    display: none;
}

.nav-link-resume:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-8px, -8px);
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: 6rem;
    background: var(--gradient-dark);
    color: var(--white);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-blue);
    bottom: -100px;
    left: 10%;
}

.grid-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(96, 165, 250, 0.05) 25%, rgba(96, 165, 250, 0.05) 26%, transparent 27%, transparent 74%, rgba(96, 165, 250, 0.05) 75%, rgba(96, 165, 250, 0.05) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(96, 165, 250, 0.05) 25%, rgba(96, 165, 250, 0.05) 26%, transparent 27%, transparent 74%, rgba(96, 165, 250, 0.05) 75%, rgba(96, 165, 250, 0.05) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeUpHero 0.8s ease-out;
}

@keyframes fadeUpHero {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.8;
}



/* Apply sticky to the whole stats container, not individual items */
.hero-stats {
    position: sticky;
    top: 3px; /* distance from viewport top */
    background-color: inherit; /* maintain background */
    z-index: 5; /* ensures it stays on top */
    padding: 0.5rem 0; /* optional */
}

/* Keep stat items as flex columns without sticky */
.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 3px; /* Adjust this value to how far from the top you want it to stick */
    background-color: inherit; /* keep the background consistent */
    z-index: 10; /* ensure it stays above other content */
    padding: 0.5rem 0; /* optional padding for spacing */
}

/* Existing styles */
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}


.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 0.75rem;
    color: var(--accent-blue);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-4px);
}

/* Hero Card */
.hero-card-container {
    display: flex;
    justify-content: center;
    animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 300px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: var(--transition);
}

.hero-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.hero-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-badge {
    background: rgba(96, 165, 250, 0.2);
    color: var(--accent-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.3);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    padding: 12px 32px;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 2rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.about-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.about-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */

.services {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* =====================================================
   SKILLS SECTION
   ===================================================== */

.skills {
    background: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-category {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--secondary-blue);
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    background: var(--white);
    color: var(--secondary-blue);
    padding: 8px 16px;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--secondary-blue);
    transition: var(--transition);
}

.skill-item:hover {
    background: var(--secondary-blue);
    color: var(--white);
    transform: scale(1.05);
}

/* =====================================================
   PROJECTS SECTION
   ===================================================== */

.projects {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--light-bg);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--light-gray);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: var(--white);
    font-weight: 600;
    padding: 12px 32px;
    border: 2px solid var(--white);
    border-radius: 0.75rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-content p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.results {
    list-style: none;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.results li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* =====================================================
   EXPERIENCE SECTION
   ===================================================== */

.experience {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--light-gray);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--secondary-blue);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.timeline-date {
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 0.875rem;
}

.timeline-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* =====================================================
   STATS SECTION
   ===================================================== */

.stats {
    background: var(--gradient-dark);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--accent-blue);
    background: rgba(96, 165, 250, 0.05);
}

.stat-number-large {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */

.testimonials {
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author h4 {
    margin-bottom: 4px;
    color: var(--text-dark);
    font-size: 1rem;
}

.testimonial-author p {
    font-size: 0.875rem;
    color: var(--secondary-blue);
}

/* =====================================================
   RESUME SECTION
   ===================================================== */

.resume {
    background: var(--gradient-dark);
    color: var(--white);
    text-align: center;
}

.resume-content {
    max-width: 600px;
    margin: 0 auto;
}

.resume-content h2 {
    margin-bottom: 1rem;
    color: var(--white);
}

.resume-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact {
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    font-size: 2rem;
    color: var(--secondary-blue);
    margin-bottom: 1rem;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.info-card a,
.info-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.info-card a {
    color: var(--secondary-blue);
    font-weight: 500;
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

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

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   SCROLL TO TOP BUTTON
   ===================================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.show {
    display: flex;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .nav-menu { gap: 1.5rem; }
    .hero-container { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: repeat(2, 1fr); }
    .timeline::before { left: 0; }
    .timeline-item { grid-template-columns: 1fr; gap: 1.5rem; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        grid-column: 1;
        padding-left: 2rem;
    }
    .timeline-marker { left: 0; transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .hamburger {
        display: flex;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.125rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    
    .services-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    
    section { padding: 3rem 0; }
    
    .shape-1 { width: 250px; height: 250px; top: -100px; right: -50px; }
    .shape-2 { width: 200px; height: 200px; bottom: -50px; left: 5%; }
    
    .footer-content { flex-direction: column; gap: 1rem; }
    .footer-links { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .nav-container { height: 60px; }
    .logo-text { font-size: 1.125rem; }
    
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }
    
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-description { font-size: 0.875rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .stat-number { font-size: 1.25rem; }
    .stat-label { font-size: 0.75rem; }
    .hero-buttons { flex-direction: column; }
    .hero-socials { justify-content: center; }
    
    .service-card { padding: 1.5rem; }
    .skill-category { padding: 1.5rem; }
    .contact-form-wrapper { padding: 1.5rem; }
    .info-card { padding: 1.5rem; }
    .contact-info { grid-template-columns: 1fr; }
    
    .stat-number-large { font-size: 2rem; }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
