/* ================================================================ */
/* KRSIHNA SHUKLA PORTFOLIO — COMPLETE STYLESHEET                   */
/* Dark theme with indigo/cyan/violet accent colors                 */
/* Features: Glassmorphism, animations, responsive design           */
/* ================================================================ */

/* ================================================================ */
/* CSS CUSTOM PROPERTIES (Variables) — Reusable values              */
/* These variables define the entire color scheme and spacing       */
/* ================================================================ */
:root {
    /* Primary Colors — Indigo palette for main accents */
    --primary: #6366f1;           /* Main indigo accent color */
    --primary-light: #818cf8;      /* Lighter indigo for hover states */
    --primary-dark: #4f46e5;       /* Darker indigo for pressed states */

    /* Secondary Colors — Cyan for variety */
    --secondary: #06b6d4;          /* Cyan accent */
    --secondary-light: #22d3ee;    /* Light cyan */

    /* Accent Color — Violet for gradients */
    --accent: #8b5cf6;             /* Violet/purple accent */

    /* Background Colors — Dark theme palette */
    --bg-dark: #0f0f1a;            /* Main page background — deep dark navy */
    --bg-card: #1a1a2e;            /* Card background — slightly lighter */
    --bg-card-hover: #252545;      /* Card hover state */
    --bg-navbar: rgba(15, 15, 26, 0.85); /* Semi-transparent navbar bg */

    /* Text Colors */
    --text-primary: #f1f5f9;       /* Main white text */
    --text-secondary: #94a3b8;     /* Muted gray text */
    --text-muted: #64748b;         /* Very muted text */

    /* Border and Shadow */
    --border: rgba(255, 255, 255, 0.1);  /* Subtle white border */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);       /* Default shadow */
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3); /* Indigo glow */

    /* Font Family */
    --font: 'Poppins', sans-serif;  /* Google Font */

    /* Spacing */
    --container-max: 1200px;       /* Maximum content width */
    --section-padding: 100px;       /* Vertical section padding */
}

/* ================================================================ */
/* CSS RESET & BASE STYLES — Normalize browser defaults             */
/* ================================================================ */
* {
    margin: 0;                     /* Remove default margins */
    padding: 0;                    /* Remove default padding */
    box-sizing: border-box;        /* Border-box for predictable sizing */
}

html {
    scroll-behavior: smooth;       /* Smooth scrolling for anchor links */
    font-size: 16px;               /* Base font size */
}

body {
    font-family: var(--font);      /* Poppins font from Google Fonts */
    background-color: var(--bg-dark); /* Dark background */
    color: var(--text-primary);    /* White text */
    line-height: 1.6;              /* Comfortable line spacing */
    overflow-x: hidden;            /* Prevent horizontal scroll */
}

/* Scrollbar Styling — Custom dark scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;                    /* Thin scrollbar width */
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);    /* Track matches background */
}

::-webkit-scrollbar-thumb {
    background: var(--primary);    /* Indigo scrollbar thumb */
    border-radius: 4px;            /* Rounded scrollbar */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light); /* Lighter on hover */
}

/* Selection Color — Highlighted text styling */
::selection {
    background: var(--primary);    /* Indigo selection background */
    color: white;                  /* White selected text */
}

/* ================================================================ */
/* UTILITY CLASSES — Reusable helper classes                        */
/* ================================================================ */

/* Container — Centers content with max width and horizontal padding */
.container {
    max-width: var(--container-max);
    margin: 0 auto;                /* Center horizontally */
    padding: 0 20px;               /* Side padding */
}

/* Section — Common styling for all content sections */
.section {
    padding: var(--section-padding) 0; /* Vertical padding only */
}

/* Section Title — Centered title with decorative underline */
.section-title {
    text-align: center;            /* Center the title */
    margin-bottom: 60px;           /* Space below title */
}

.section-title h2 {
    font-size: 2.5rem;             /* 40px title size */
    font-weight: 700;              /* Bold */
    margin-bottom: 15px;           /* Space before underline */
}

/* Title Underline — Gradient colored line below section title */
.title-underline {
    width: 80px;                   /* Fixed width */
    height: 4px;                   /* 4px thick line */
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    /* Gradient from indigo → cyan → violet */
    margin: 0 auto 15px;           /* Centered with bottom margin */
    border-radius: 2px;            /* Rounded ends */
}

/* Section Subtitle — Muted description below title */
.section-subtitle {
    color: var(--text-secondary);  /* Gray muted text */
    font-size: 1.1rem;             /* Slightly larger than body */
}

/* ================================================================ */
/* BUTTONS — Primary and secondary button styles                    */
/* ================================================================ */

.btn {
    display: inline-flex;          /* Flex for icon + text alignment */
    align-items: center;           /* Center items vertically */
    gap: 10px;                     /* Space between icon and text */
    padding: 14px 32px;            /* Button padding */
    border-radius: 50px;           /* Fully rounded pill shape */
    font-family: var(--font);      /* Poppins font */
    font-size: 1rem;               /* 16px font */
    font-weight: 500;              /* Medium weight */
    text-decoration: none;         /* No underline */
    cursor: pointer;               /* Pointer cursor */
    border: none;                  /* No border */
    transition: all 0.3s ease;     /* Smooth transition for all properties */
}

/* Primary Button — Indigo background, white text */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    /* Gradient from indigo to violet */
    color: white;                  /* White text */
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    /* Indigo glow shadow */
}

.btn-primary:hover {
    transform: translateY(-3px);   /* Slight lift on hover */
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    /* Stronger glow on hover */
}

/* Secondary Button — Transparent with border */
.btn-secondary {
    background: transparent;       /* No background */
    color: var(--text-primary);    /* White text */
    border: 2px solid var(--primary); /* Indigo border */
}

.btn-secondary:hover {
    background: var(--primary);    /* Fill with indigo on hover */
    color: white;                  /* White text on hover */
    transform: translateY(-3px);   /* Lift effect */
}

/* Full Width Button — Takes full width of container */
.btn-full {
    width: 100%;                   /* Full width */
    justify-content: center;       /* Center content */
}

/* ================================================================ */
/* NAVIGATION BAR — Fixed glassmorphism navbar                      */
/* ================================================================ */
.navbar {
    position: fixed;               /* Fixed at top of viewport */
    top: 0;                        /* Top edge */
    left: 0;                       /* Left edge */
    width: 100%;                   /* Full width */
    z-index: 1000;                 /* Stay on top of everything */
    background: var(--bg-navbar);  /* Semi-transparent dark bg */
    backdrop-filter: blur(12px);   /* Glassmorphism blur effect */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    border-bottom: 1px solid var(--border); /* Subtle bottom border */
    transition: all 0.3s ease;     /* Smooth transitions */
}

/* Nav Container — Flexbox layout for logo + links */
.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;                /* Center */
    padding: 0 20px;               /* Side padding */
    display: flex;                 /* Flexbox layout */
    justify-content: space-between; /* Logo left, links right */
    align-items: center;           /* Vertical center */
    height: 70px;                  /* Fixed navbar height */
}

/* Logo — "Krishna" white, ".dev" colored */
.nav-logo {
    font-size: 1.6rem;             /* 25.6px */
    font-weight: 700;              /* Bold */
    color: var(--text-primary);    /* White text */
    text-decoration: none;         /* No underline */
}

.nav-logo-span {
    color: var(--primary);         /* Indigo color for ".dev" */
}

/* Nav Menu — Desktop navigation links list */
.nav-menu {
    display: flex;                 /* Horizontal layout */
    list-style: none;              /* No bullet points */
    gap: 35px;                     /* Space between links */
}

/* Nav Link — Individual navigation link */
.nav-link {
    color: var(--text-secondary);  /* Gray text by default */
    text-decoration: none;         /* No underline */
    font-size: 0.95rem;            /* 15.2px */
    font-weight: 500;              /* Medium weight */
    position: relative;            /* For underline pseudo-element */
    transition: color 0.3s ease;   /* Smooth color transition */
}

/* Nav Link Hover — White text on hover */
.nav-link:hover {
    color: var(--text-primary);    /* White on hover */
}

/* Active Nav Link — Highlighted current section */
.nav-link.active {
    color: var(--primary-light);   /* Light indigo for active */
}

/* Nav Link Underline — Animated underline on hover */
.nav-link::after {
    content: '';                   /* Empty content */
    position: absolute;            /* Positioned below text */
    bottom: -5px;                  /* 5px below text */
    left: 0;                       /* Start from left */
    width: 0;                      /* Hidden by default */
    height: 2px;                   /* 2px thick line */
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    /* Indigo to cyan gradient */
    transition: width 0.3s ease;   /* Animate width */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;                   /* Full width on hover/active */
}

/* Hamburger Menu — Three bars for mobile menu toggle */
.hamburger {
    display: none;                 /* Hidden on desktop */
    flex-direction: column;        /* Stack bars vertically */
    gap: 5px;                      /* Space between bars */
    cursor: pointer;               /* Pointer cursor */
    padding: 5px;                  /* Click area padding */
}

.hamburger .bar {
    width: 25px;                   /* Bar width */
    height: 3px;                   /* Bar thickness */
    background: var(--text-primary); /* White bars */
    border-radius: 3px;            /* Rounded bars */
    transition: all 0.3s ease;     /* Smooth animation */
}

/* Hamburger Animation — Bars transform to X when menu is open */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px); /* Top bar → diagonal */
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;                    /* Middle bar disappears */
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px); /* Bottom bar → diagonal */
}

/* ================================================================ */
/* HERO SECTION — Main landing area with gradient text + image       */
/* ================================================================ */
.hero {
    min-height: 100vh;             /* Full viewport height */
    display: flex;                 /* Flexbox for centering */
    align-items: center;           /* Vertical center */
    position: relative;            /* For particle positioning */
    padding-top: 70px;             /* Account for fixed navbar */
    overflow: hidden;              /* Hide overflow */
}

/* Particle Background — Animated floating dots */
.particles {
    position: absolute;            /* Behind content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;                    /* Behind everything */
    pointer-events: none;          /* Click-through */
}

/* Individual Particle — Small glowing dot */
.particle {
    position: absolute;            /* Positioned by JS */
    width: 4px;                    /* Small dot */
    height: 4px;
    background: var(--primary);    /* Indigo color */
    border-radius: 50%;            /* Circle shape */
    opacity: 0.3;                  /* Semi-transparent */
    animation: float-particle linear infinite; /* Floating animation */
}

/* Hero Container — Two-column grid: text left, image right */
.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;                /* Center */
    padding: 0 20px;               /* Side padding */
    display: grid;                 /* CSS Grid */
    grid-template-columns: 1fr 1fr; /* Equal two columns */
    gap: 60px;                     /* Space between columns */
    align-items: center;           /* Vertical center */
    position: relative;            /* Above particles */
    z-index: 1;                    /* Above particle bg */
    width: 100%;
}

/* Hero Content — Left side text area */
.hero-content {
    animation: fadeInLeft 1s ease; /* Entrance animation from left */
}

/* Hero Greeting — "Hello, I'm" text */
.hero-greeting {
    font-size: 1.2rem;             /* 19.2px */
    color: var(--text-secondary);  /* Gray text */
    margin-bottom: 10px;           /* Space below */
}

/* Hero Name — Large gradient text */
.hero-name {
    font-size: 3.5rem;             /* 56px — very large */
    font-weight: 700;              /* Bold */
    line-height: 1.2;              /* Tight line height */
    margin-bottom: 15px;           /* Space below */
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    /* Gradient from indigo → cyan → violet */
    -webkit-background-clip: text; /* Clip gradient to text (Chrome/Safari) */
    background-clip: text;         /* Standard property */
    -webkit-text-fill-color: transparent; /* Make fill transparent to show gradient */
    animation: gradientShift 4s ease infinite;
    /* Animate gradient colors shifting */
    background-size: 200% 200%;    /* Larger size for animation */
}

/* Hero Title — Typewriter effect text */
.hero-title {
    font-size: 1.5rem;             /* 24px */
    font-weight: 500;              /* Medium weight */
    color: var(--primary-light);   /* Light indigo */
    margin-bottom: 20px;           /* Space below */
    min-height: 2em;               /* Reserve space for text */
}

/* Cursor blink animation for typewriter effect */
.hero-title::after {
    content: '|';                  /* Cursor character */
    animation: blink 0.7s step-end infinite; /* Blinking cursor */
    color: var(--primary);         /* Indigo cursor */
    margin-left: 2px;
}

/* Hero Description — Intro paragraph */
.hero-description {
    font-size: 1.05rem;            /* 16.8px */
    color: var(--text-secondary);  /* Gray text */
    margin-bottom: 30px;           /* Space below */
    max-width: 500px;              /* Max width for readability */
    line-height: 1.8;              /* Comfortable spacing */
}

/* Hero Buttons — CTA buttons container */
.hero-buttons {
    display: flex;                 /* Horizontal layout */
    gap: 15px;                     /* Space between buttons */
    margin-bottom: 30px;           /* Space below */
    flex-wrap: wrap;               /* Wrap on small screens */
}

/* Hero Social Links — Icon links row */
.hero-social {
    display: flex;                 /* Horizontal layout */
    gap: 15px;                     /* Space between icons */
}

/* Social Link — Circular icon button */
.social-link {
    width: 45px;                   /* 45x45 circle */
    height: 45px;
    border-radius: 50%;            /* Perfect circle */
    display: flex;                 /* Center icon */
    align-items: center;
    justify-content: center;
    background: var(--bg-card);    /* Card background */
    color: var(--text-secondary);  /* Gray icon */
    text-decoration: none;         /* No underline */
    font-size: 1.1rem;             /* Icon size */
    border: 1px solid var(--border); /* Subtle border */
    transition: all 0.3s ease;     /* Smooth transition */
}

.social-link:hover {
    background: var(--primary);    /* Indigo background on hover */
    color: white;                  /* White icon on hover */
    border-color: var(--primary);  /* Indigo border */
    transform: translateY(-3px);   /* Lift effect */
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    /* Indigo glow */
}

/* Hero Image — Right side with floating animation */
.hero-image {
    position: relative;            /* For decorative elements */
    display: flex;                 /* Center image */
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.3s both; /* Entrance with delay */
}

/* Decorative background blob behind hero image */
.hero-image-bg {
    position: absolute;            /* Behind image */
    width: 400px;                  /* Large circle */
    height: 400px;
    border-radius: 50%;            /* Circle */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    /* Indigo to violet gradient */
    opacity: 0.15;                 /* Very subtle */
    filter: blur(60px);            /* Soft blur */
    animation: pulse 4s ease-in-out infinite; /* Pulsing animation */
}


/* Scroll Down Indicator — Bouncing arrow at hero bottom */
.scroll-down {
    position: absolute;            /* Positioned at bottom */
    bottom: 30px;                  /* 30px from bottom */
    left: 50%;                     /* Center horizontally */
    transform: translateX(-50%);   /* True center */
    color: var(--text-secondary);  /* Gray color */
    font-size: 1.5rem;             /* 24px icon */
    animation: bounce 2s infinite; /* Bouncing animation */
    text-decoration: none;         /* No underline */
    z-index: 1;                    /* Above particles */
    transition: color 0.3s ease;
}

.scroll-down:hover {
    color: var(--primary-light);   /* Indigo on hover */
}

/* ================================================================ */
/* ABOUT SECTION — Bio, education, certifications                    */
/* ================================================================ */
.about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 26, 46, 0.5) 50%, var(--bg-dark) 100%);
    /* Subtle gradient background */
}

/* About Grid — Two columns: image left, content right */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Image narrower than content */
    gap: 60px;                     /* Space between columns */
    align-items: start;            /* Align to top */
}

/* About Image — Left side */
.about-image-wrapper {
    position: relative;            /* For decorative elements */
}


/* Decorative dots pattern around about image */
.about-dots {
    position: absolute;            /* Positioned around image */
    top: -20px;                    /* Offset above */
    right: -20px;                  /* Offset right */
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    /* Small indigo dots */
    background-size: 15px 15px;    /* Dot spacing */
    opacity: 0.5;                  /* Semi-transparent */
    z-index: 0;                    /* Behind image */
}

/* About Bio — Main paragraph */
.about-bio {
    font-size: 1.05rem;            /* 16.8px */
    color: var(--text-secondary);  /* Gray text */
    line-height: 1.9;              /* Generous line spacing */
    margin-bottom: 30px;           /* Space below */
}

/* Education Card — B.C.A information */
.education-card {
    display: flex;                 /* Icon + text side by side */
    align-items: flex-start;       /* Align to top */
    gap: 20px;                     /* Space between icon and text */
    background: var(--bg-card);    /* Card background */
    padding: 25px;                 /* Internal padding */
    border-radius: 15px;           /* Rounded corners */
    border: 1px solid var(--border); /* Subtle border */
    margin-bottom: 30px;           /* Space below */
    transition: all 0.3s ease;     /* Smooth transition */
}

.education-card:hover {
    border-color: var(--primary);  /* Indigo border on hover */
    box-shadow: var(--shadow-glow); /* Glow effect */
}

.education-icon {
    width: 55px;                   /* Fixed icon size */
    height: 55px;
    min-width: 55px;               /* Don't shrink */
    border-radius: 12px;           /* Rounded square */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    /* Gradient background */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;             /* Icon size */
    color: white;                  /* White icon */
}

.education-info h3 {
    font-size: 1.1rem;             /* 17.6px */
    font-weight: 600;              /* Semi-bold */
    margin-bottom: 5px;            /* Space below */
}

.education-info p {
    color: var(--text-secondary);  /* Gray text */
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.education-year {
    display: inline-block;         /* Inline but block-like */
    background: rgba(99, 102, 241, 0.15); /* Light indigo bg */
    color: var(--primary-light);   /* Light indigo text */
    padding: 4px 12px;             /* Padding */
    border-radius: 20px;           /* Pill shape */
    font-size: 0.85rem;            /* Small text */
    font-weight: 500;
}

/* Certifications Title */
.certifications-title {
    font-size: 1.3rem;             /* 20.8px */
    font-weight: 600;              /* Semi-bold */
    margin-bottom: 20px;           /* Space below */
    display: flex;                 /* Icon + text */
    align-items: center;
    gap: 10px;
}

.certifications-title::before {
    content: '\f0a3';              /* Font Awesome certificate icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);         /* Indigo */
}

/* Certifications Grid — 2x2 grid of certification cards */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px;                     /* Space between cards */
}

/* Certification Card */
.cert-card {
    background: var(--bg-card);    /* Card background */
    padding: 20px;                 /* Internal padding */
    border-radius: 12px;           /* Rounded corners */
    border: 1px solid var(--border); /* Subtle border */
    transition: all 0.3s ease;     /* Smooth transition */
}

.cert-card:hover {
    transform: translateY(-5px);   /* Lift effect */
    border-color: var(--primary);  /* Indigo border */
    box-shadow: var(--shadow-glow); /* Glow effect */
}

.cert-icon {
    font-size: 1.5rem;             /* Icon size */
    color: var(--primary);         /* Indigo */
    margin-bottom: 10px;           /* Space below */
}

.cert-card h4 {
    font-size: 0.95rem;            /* 15.2px */
    font-weight: 600;
    margin-bottom: 5px;
}

.cert-org {
    color: var(--text-secondary);  /* Gray */
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.cert-date {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1); /* Very light indigo */
    color: var(--primary-light);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ================================================================ */
/* SERVICES SECTION — 5 service cards with icons                     */
/* ================================================================ */
.services {
    background: var(--bg-dark);    /* Dark background */
}

/* Services Grid — 3 columns on desktop, responsive */
.services-grid {
    display: flex;                 /* Flexbox for centering */
    flex-wrap: wrap;               /* Wrap to next line */
    justify-content: center;       /* Center cards horizontally */
    gap: 25px;                     /* Space between cards */
}

/* Service Card — Individual service item */
.service-card {
    background: var(--bg-card);    /* Card background */
    padding: 35px 25px;            /* Internal padding */
    border-radius: 15px;           /* Rounded corners */
    border: 1px solid var(--border); /* Subtle border */
    text-align: center;            /* Center content */
    transition: all 0.4s ease;     /* Smooth transition */
    position: relative;            /* For hover effects */
    flex: 0 0 calc(33.333% - 20px); /* Fixed width: 1/3 minus gap */
    max-width: 380px;              /* Max card width */
    min-width: 280px;              /* Min card width */
    overflow: hidden;              /* Hide overflow */
}

/* Service card hover — Lift + glow effect */
.service-card:hover {
    transform: translateY(-10px);  /* Lift up */
    border-color: var(--primary);  /* Indigo border */
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    /* Stronger indigo glow */
}

/* Service card icon container */
.service-icon {
    width: 70px;                   /* 70x70 circle */
    height: 70px;
    border-radius: 50%;            /* Circle */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    /* Subtle gradient bg */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;           /* Center + spacing */
    font-size: 1.8rem;             /* Icon size */
    color: var(--primary);         /* Indigo icon */
    transition: all 0.3s ease;     /* Smooth transition */
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    /* Full gradient on hover */
    color: white;                  /* White icon */
    transform: scale(1.1);         /* Slight scale up */
}

.service-card h3 {
    font-size: 1.15rem;            /* 18.4px */
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);  /* Gray description */
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ================================================================ */
/* SKILLS SECTION — Technical bars + Circular indicators             */
/* ================================================================ */
.skills {
    background: linear-gradient(180deg, var(--bg-dark), rgba(26, 26, 46, 0.3), var(--bg-dark));
}

/* Skills Grid — Two equal columns */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Equal columns */
    gap: 60px;                     /* Space between columns */
}

/* Skills Column Title — e.g., "Technical Skills" */
.skills-column-title {
    font-size: 1.3rem;             /* 20.8px */
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;                 /* Icon + text */
    align-items: center;
    gap: 10px;
    color: var(--primary-light);   /* Light indigo */
}

.skills-column-title i {
    color: var(--primary);         /* Indigo icon */
}

/* Skill Item — Individual skill with label and bar */
.skill-item {
    margin-bottom: 25px;           /* Space between skills */
}

/* Skill Header — Name + percentage on same line */
.skill-header {
    display: flex;
    justify-content: space-between; /* Name left, % right */
    margin-bottom: 10px;           /* Space before bar */
}

.skill-name {
    font-weight: 500;              /* Medium weight */
    font-size: 0.95rem;
}

.skill-percent {
    color: var(--primary-light);   /* Light indigo */
    font-weight: 600;
    font-size: 0.9rem;
}

/* Skill Bar — Background track for progress */
.skill-bar {
    width: 100%;
    height: 8px;                   /* 8px thick */
    background: rgba(255, 255, 255, 0.08); /* Very subtle track */
    border-radius: 4px;            /* Rounded ends */
    overflow: hidden;              /* Hide overflow */
}

/* Skill Progress — Animated colored fill */
.skill-progress {
    height: 100%;
    width: 0;                      /* Start at 0 (animated by JS) */
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    /* Indigo to cyan gradient */
    border-radius: 4px;
    transition: width 1.5s ease;   /* Animate width change */
    position: relative;
}

/* Shimmer effect on progress bar */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite; /* Shimmer animation */
}

/* Circular Skills Grid — 2x3 grid of circular indicators */
.circular-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 25px;                     /* Space between circles */
}

/* Circular Skill — SVG-based circular progress */
.circular-skill {
    position: relative;            /* For text positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SVG Chart for circular progress */
.circular-chart {
    width: 100px;                  /* 100x100 SVG */
    height: 100px;
    transform: rotate(-90deg);     /* Start from top */
}

/* Background circle (gray track) */
.circle-bg {
    fill: none;                    /* No fill */
    stroke: rgba(255, 255, 255, 0.08); /* Subtle gray track */
    stroke-width: 6;               /* 6px thick */
}

/* Progress circle (colored fill) */
.circle-progress {
    fill: none;
    stroke: url(#gradient);        /* Gradient stroke (defined in HTML/SVG) */
    stroke-width: 6;
    stroke-linecap: round;         /* Rounded ends */
    stroke-dasharray: 314;         /* Circumference of r=50: 2 * PI * 50 ≈ 314 */
    stroke-dashoffset: 314;        /* Start hidden (animated by JS) */
    transition: stroke-dashoffset 1.5s ease;
}

/* Circular Skill Text — Percentage + label */
.circular-text {
    text-align: center;
    margin-top: 10px;              /* Space from circle */
}

.circular-percent {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-light);   /* Light indigo */
}

.circular-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);  /* Gray */
    margin-top: 3px;
}

/* ================================================================ */
/* EXPERIENCE SECTION — Vertical timeline layout                     */
/* ================================================================ */
.experience {
    background: var(--bg-dark);
}

/* Timeline Container — Centered vertical layout */
.timeline {
    position: relative;            /* For line positioning */
    max-width: 900px;              /* Max width */
    margin: 0 auto;                /* Center */
}

/* Timeline Vertical Line — Center line running through timeline */
.timeline-line {
    position: absolute;            /* Centered */
    left: 50%;
    transform: translateX(-50%);   /* True center */
    width: 3px;                    /* 3px thick */
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    /* Gradient line */
    border-radius: 3px;
}

/* Timeline Item — Individual experience entry */
.timeline-item {
    position: relative;            /* For dot positioning */
    display: flex;                 /* Flex for positioning */
    margin-bottom: 50px;           /* Space between items */
    align-items: center;           /* Vertical center */
}

/* Alternating layout — Odd items left, even items right */
.timeline-item:nth-child(odd) {
    justify-content: flex-start;   /* Left side */
    padding-right: calc(50% + 40px); /* Space for center line */
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;     /* Right side */
    padding-left: calc(50% + 40px); /* Space for center line */
}

/* Timeline Card — Content card for each experience */
.timeline-card {
    background: var(--bg-card);    /* Card background */
    padding: 25px;                 /* Internal padding */
    border-radius: 15px;           /* Rounded corners */
    border: 1px solid var(--border); /* Subtle border */
    width: 100%;                   /* Fill available space */
    transition: all 0.3s ease;     /* Smooth transition */
}

.timeline-card:hover {
    border-color: var(--primary);  /* Indigo border on hover */
    box-shadow: var(--shadow-glow); /* Glow effect */
    transform: translateY(-3px);   /* Lift */
}

/* Timeline Dot — Circle on the center line */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Center on line */
    width: 16px;                   /* 16px circle */
    height: 16px;
    border-radius: 50%;            /* Circle */
    background: var(--primary);    /* Indigo */
    border: 3px solid var(--bg-dark); /* Dark border for contrast */
    z-index: 1;                    /* Above line */
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5); /* Glow */
}

/* Timeline Date — Date range display */
.timeline-date {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15); /* Light indigo */
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-date i {
    margin-right: 5px;
}

/* Timeline Title — Job title */
.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Timeline Company — Company name */
.timeline-company {
    color: var(--primary-light);   /* Light indigo */
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-company i {
    margin-right: 5px;
}

/* Timeline Description — Job details */
.timeline-desc {
    color: var(--text-secondary);  /* Gray */
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ================================================================ */
/* PROJECTS SECTION — 6 project cards with images                    */
/* ================================================================ */
.projects {
    background: linear-gradient(180deg, var(--bg-dark), rgba(26, 26, 46, 0.3), var(--bg-dark));
}

/* Projects Grid — 3 columns on desktop */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 25px;                     /* Space between cards */
}

/* Project Card — Individual project */
.project-card {
    background: var(--bg-card);    /* Card background */
    border-radius: 15px;           /* Rounded corners */
    overflow: hidden;              /* Hide image overflow */
    border: 1px solid var(--border); /* Subtle border */
    transition: all 0.4s ease;     /* Smooth transition */
}

.project-card:hover {
    transform: translateY(-10px);  /* Lift */
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

/* Project Image Container */
.project-image {
    position: relative;            /* For overlay positioning */
    overflow: hidden;              /* Hide zoom overflow */
    height: 200px;                 /* Fixed height */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* Cover entire area */
    transition: transform 0.5s ease; /* Smooth zoom */
}

.project-card:hover .project-image img {
    transform: scale(1.1);         /* Zoom on hover */
}

/* Project Overlay — Appears on hover with "View Live Site" button */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.85); /* Dark semi-transparent */
    display: flex;                 /* Center button */
    align-items: center;
    justify-content: center;
    opacity: 0;                    /* Hidden by default */
    transition: opacity 0.3s ease; /* Fade in */
}

.project-card:hover .project-overlay {
    opacity: 1;                    /* Show on hover */
}

/* Project Button — "View Live Site" on overlay */
.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-btn:hover {
    transform: scale(1.05);        /* Slight scale */
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

/* Project Info — Below image */
.project-info {
    padding: 20px;                 /* Internal padding */
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

/* Project Link — URL link below description */
.project-link {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--secondary);       /* Cyan on hover */
    gap: 10px;                     /* Arrow moves right */
}

/* ================================================================ */
/* CONTACT SECTION — Contact info + WhatsApp form                    */
/* ================================================================ */
.contact {
    background: var(--bg-dark);
}

/* Contact Grid — Info (left) + Form (right) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Form slightly wider */
    gap: 60px;                     /* Space between columns */
    align-items: start;            /* Align to top */
}

/* Contact Info — Left side */
.contact-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Info Cards — Phone, Email, Location, LinkedIn */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;                     /* Space between cards */
    margin-bottom: 30px;
}

/* Individual Info Card */
.info-card {
    display: flex;                 /* Icon + text */
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);    /* Slide right on hover */
}

.info-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
}

.info-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.info-text a,
.info-text span {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.info-text a:hover {
    color: var(--primary-light);
}

/* Resume Download Button */
.resume-download-btn {
    margin-top: 10px;
}

/* Contact Form Wrapper — Right side */
.contact-form-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 15px;
    border: 1px solid var(--border);
}

.contact-form-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-form-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Form Group — Label + Input wrapper */
.form-group {
    margin-bottom: 20px;           /* Space between fields */
}

.form-group label {
    display: block;                /* Block label */
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 5px;
    color: var(--primary);
    width: 16px;
}

/* Form Inputs — Text inputs and textarea */
.form-group input,
.form-group textarea {
    width: 100%;                   /* Full width */
    padding: 14px 18px;            /* Internal padding */
    background: rgba(255, 255, 255, 0.05); /* Very subtle bg */
    border: 1px solid var(--border); /* Subtle border */
    border-radius: 10px;           /* Rounded corners */
    color: var(--text-primary);    /* White text */
    font-family: var(--font);      /* Poppins font */
    font-size: 0.95rem;
    transition: all 0.3s ease;     /* Smooth transition */
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);      /* Muted placeholder */
}

/* Input Focus State — Indigo border + glow */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;                 /* Remove default outline */
    border-color: var(--primary);  /* Indigo border */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); /* Indigo glow ring */
}

/* Textarea — Allow vertical resize only */
.form-group textarea {
    resize: vertical;              /* Only vertical resize */
    min-height: 100px;             /* Minimum height */
}

/* ================================================================ */
/* PREMIUM FOOTER -- Multi-column professional footer                */
/* ================================================================ */

.footer-premium {
    background: linear-gradient(180deg, #0a0a14 0%, #0f0f1a 100%);
    position: relative;
    padding-top: 0;
}

/* Animated gradient line at top of footer */
.footer-gradient-line {
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 100%;
    animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Footer Grid -- 4 columns layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding: 60px 0 40px;
}

/* Footer Column */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand Column */
.footer-logo-premium {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo-premium span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Social Icons -- Circular style */
.footer-social-premium {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Column Titles */
.footer-col-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col-title i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Links List */
.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links-list li a i {
    font-size: 0.65rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.footer-links-list li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links-list li a:hover i {
    color: var(--secondary);
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact-list li i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 0.85rem;
    min-width: 16px;
}

/* Resume Download Button in Footer */
.footer-resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.footer-resume-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copyright strong {
    color: var(--text-secondary);
}

.footer-made-with {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-made-with .fa-heart {
    color: #ef4444;
}

.footer-made-with .fa-coffee {
    color: #d97706;
}

/* Pulsing heart animation */
.pulse-heart {
    animation: heartbeat 1.5s ease infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.15); }
    20% { transform: scale(1); }
    30% { transform: scale(1.15); }
    40% { transform: scale(1); }
}

/* ================================================================ */
/* FOOTER RESPONSIVE -- Tablet & Mobile                             */
/* ================================================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 0 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-col-title {
        margin-bottom: 15px;
    }
}

/* ================================================================ */
/* BACK TO TOP BUTTON — Floating button, appears on scroll           */
/* ================================================================ */
.back-to-top {
    position: fixed;               /* Fixed position */
    bottom: 30px;                  /* Bottom right corner */
    right: 30px;
    width: 50px;                   /* 50x50 button */
    height: 50px;
    border-radius: 50%;            /* Circle */
    background: linear-gradient(135deg, var(--primary), var(--accent));
    /* Gradient background */
    color: white;                  /* White icon */
    border: none;                  /* No border */
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;                  /* Below navbar */
    opacity: 0;                    /* Hidden by default */
    visibility: hidden;            /* Not visible */
    transform: translateY(20px);   /* Slightly below */
    transition: all 0.3s ease;     /* Smooth show/hide */
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;                    /* Visible */
    visibility: visible;
    transform: translateY(0);      /* In position */
}

.back-to-top:hover {
    transform: translateY(-5px);   /* Lift on hover */
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.6);
}

/* ================================================================ */
/* SCROLL REVEAL ANIMATIONS — Elements hidden until scrolled into view */
/* These classes are added/removed by JavaScript IntersectionObserver */
/* ================================================================ */

/* Base reveal classes — Elements start hidden */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;                    /* Hidden */
    transition: all 0.8s ease;     /* Smooth reveal */
}

/* Reveal from bottom */
.reveal-up {
    transform: translateY(40px);   /* 40px below final position */
}

/* Reveal from left */
.reveal-left {
    transform: translateX(-40px);  /* 40px left of final position */
}

/* Reveal from right */
.reveal-right {
    transform: translateX(40px);   /* 40px right of final position */
}

/* Active state — Element is visible (added by JS) */
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;                    /* Fully visible */
    transform: translate(0);       /* In final position */
}

/* ================================================================ */
/* KEYFRAME ANIMATIONS — Reusable animation definitions              */
/* ================================================================ */

/* Fade In Left — Hero content entrance */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right — Hero image entrance */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Float — Gentle up/down floating animation for hero image */
@keyframes float {
    0%, 100% {
        transform: translateY(0);  /* Start/end position */
    }
    50% {
        transform: translateY(-15px); /* Move up in middle */
    }
}

/* Bounce — Scroll down arrow bouncing */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* Gradient Shift — Animate gradient background position */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulse — Subtle pulsing for decorative elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Shimmer — Light moving across progress bars */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Blink — Typewriter cursor blinking */
@keyframes blink {
    0%, 100% {
        opacity: 1;                /* Visible */
    }
    50% {
        opacity: 0;                /* Hidden */
    }
}

/* Float Particle — Particles moving across screen */
@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;              /* Fade in */
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;                /* Fade out */
    }
}

/* ================================================================ */
/* PAGE HEADER — Shared page header for all sub-pages               */
/* Gradient background with page title and breadcrumb               */
/* ================================================================ */
.page-header {
    min-height: 50vh;              /* Half viewport height */
    display: flex;                 /* Center content */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 70px;             /* Account for fixed navbar */
    overflow: hidden;
}

/* Page header background gradient overlay */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.15));
    /* Subtle gradient overlay */
    z-index: 0;
}

/* Page header content container */
.page-header-content {
    position: relative;
    z-index: 1;
}

/* Page header title */
.page-header-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    background-size: 200% 200%;
}

/* Page header subtitle/tagline */
.page-header-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Breadcrumb navigation below page header title */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ================================================================ */
/* PAGE ENTRANCE ANIMATION — Fade in effect for all pages            */
/* ================================================================ */
.page-main {
    animation: pageFadeIn 0.6s ease-out;
}

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

/* ================================================================ */
/* ACTIVE NAV LINK — Enhanced styling for current page              */
/* ================================================================ */
.nav-link.active {
    color: var(--primary-light) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100% !important;
}

/* ================================================================ */
/* HOME PAGE — Preview sections on index.html                       */
/* ================================================================ */

/* Preview Section — Shared styles for home page preview sections */
.preview-section {
    padding: var(--section-padding) 0;
}

/* Preview Header — Title + "View All" link */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

/* "View All" link — Arrow link to full page */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: var(--secondary);
    gap: 12px;
}

/* Preview About — Two column layout for about preview */
.preview-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.preview-about-img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    border: 3px solid var(--primary);
}

.preview-about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* Preview Services — 3-column grid */
.preview-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Preview Projects — 3-column grid */
.preview-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* ================================================================ */
/* CTA SECTION — "Let's Work Together" call to action               */
/* ================================================================ */
.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================================ */
/* PERSONAL INFO CARDS — About page info cards                       */
/* ================================================================ */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.personal-info-card {
    background: var(--bg-card);
    padding: 25px 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.personal-info-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.personal-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.2rem;
    color: white;
}

.personal-info-card h4 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.personal-info-card p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ================================================================ */
/* SERVICE CARD CTA — "Get This Service" button on service cards     */
/* ================================================================ */
.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-cta:hover {
    color: var(--secondary);
    gap: 12px;
}

/* ================================================================ */
/* TOOLS & TECHNOLOGIES — Skills page icon grid                      */
/* ================================================================ */
.tools-section {
    margin-top: 60px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.tool-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.tool-card h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ================================================================ */
/* PROJECT CARD — Enhanced for projects page                         */
/* ================================================================ */
.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ================================================================ */
/* SOCIAL LINKS SECTION — Contact page social links                  */
/* ================================================================ */
.social-links-section {
    margin-top: 40px;
    text-align: center;
}

.social-links-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-links-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ================================================================ */
/* HIRE ME / CTA BUTTON — Skills page & Experience page CTA         */
/* ================================================================ */
.section-cta {
    text-align: center;
    margin-top: 50px;
}

/* ================================================================ */
/* ABOUT PAGE — Full about page enhancements                         */
/* ================================================================ */
.about-full-bio {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 40px;
}

.about-full-bio p {
    margin-bottom: 20px;
}

/* ================================================================ */
/* EXPERIENCE PAGE — Enhanced timeline descriptions                  */
/* ================================================================ */
.timeline-desc-full {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ================================================================ */
/* RESPONSIVE DESIGN — Tablet (768px - 1024px)                     */
/* ================================================================ */
@media (max-width: 1024px) {
    /* Services: 2 columns on tablet */
    .services-grid {
        gap: 20px;
    }
    .service-card {
        flex: 0 0 calc(50% - 15px); /* 2 cards per row on tablet */
    }

    /* Projects: 2 columns instead of 3 */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Skills: Stack columns */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Preview grids: 2 columns */
    .preview-services-grid,
    .preview-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Preview about: single column */
    .preview-about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .preview-about-img {
        margin: 0 auto;
    }

    /* Personal info: 2 columns */
    .personal-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Tools: 3 columns */
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================================================ */
/* RESPONSIVE DESIGN — Mobile (< 768px)                              */
/* ================================================================ */
@media (max-width: 768px) {
    /* Reduce section padding on mobile */
    :root {
        --section-padding: 60px;
    }

    /* Section title smaller */
    .section-title h2 {
        font-size: 2rem;
    }

    /* Show hamburger, hide desktop menu */
    .hamburger {
        display: flex;             /* Show hamburger */
    }

    /* Mobile nav menu — Full screen overlay */
    .nav-menu {
        position: fixed;
        top: 70px;                 /* Below navbar */
        left: 0;
        right: 0;
        background: var(--bg-navbar);
        backdrop-filter: blur(12px);
        flex-direction: column;    /* Vertical stack */
        padding: 30px;
        gap: 20px;
        transform: translateY(-150%); /* Hidden above */
        transition: transform 0.4s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active {
        transform: translateY(0);  /* Slide down */
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
    }

    /* Hero: Single column stack */
    .hero-container {
        grid-template-columns: 1fr; /* Single column */
        text-align: center;         /* Center text */
        gap: 40px;
    }

    .hero-name {
        font-size: 2.5rem;         /* Smaller name */
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .hero-description {
        margin: 0 auto 30px;       /* Center */
    }

    .hero-buttons {
        justify-content: center;   /* Center buttons */
    }

    .hero-social {
        justify-content: center;   /* Center social icons */
    }

    /* Hero image smaller */
    .hero-image-bg {
        width: 280px;
        height: 280px;
    }

    .hero-img {
        max-height: 350px;
    }

    /* About: Single column */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-dots {
        display: none;             /* Hide decorative dots on mobile */
    }

    /* Certifications: Single column */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    /* Services: Single column */
    .services-grid {
        gap: 15px;
    }
    .service-card {
        flex: 0 0 100%; /* Full width on mobile */
    }

    /* Projects: Single column */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Experience Timeline: Simplified for mobile */
    .timeline-line {
        left: 20px;                /* Move line to left */
        transform: none;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 50px;        /* Space for line */
        padding-right: 0;
    }

    .timeline-dot {
        left: 20px;                /* Align with line */
        transform: translate(-50%, -50%);
    }

    /* Contact: Single column */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Circular skills: 2 columns on mobile */
    .circular-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Back to top: Smaller */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    /* Hide scroll down arrow on mobile */
    .scroll-down {
        display: none;
    }
}

/* ================================================================ */
/* RESPONSIVE DESIGN — Small Mobile (< 480px)                        */
/* ================================================================ */
@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;           /* Even smaller name */
    }

    .hero-greeting {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1rem;
    }

    /* Buttons stack vertically */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;               /* Full width buttons */
        justify-content: center;
    }

    /* Circular skills: Single column */
    .circular-skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-title {
        font-size: 1rem;
    }

    .contact-form-card {
        padding: 25px 20px;
    }

    /* Page header: smaller on mobile */
    .page-header {
        min-height: 40vh;
    }

    .page-header-title {
        font-size: 2rem;
    }

    .page-header-subtitle {
        font-size: 1rem;
    }

    /* Preview grids: single column */
    .preview-services-grid,
    .preview-projects-grid {
        grid-template-columns: 1fr;
    }

    .preview-header h2 {
        font-size: 1.8rem;
    }

    /* CTA section */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    /* Personal info: single column */
    .personal-info-grid {
        grid-template-columns: 1fr;
    }

    /* Tools: 2 columns */
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-icon {
        font-size: 2rem;
    }
}


/* ================================================================ */
/* HIRE ME HIGHLIGHT BUTTON IN NAVBAR                               */
/* Special gradient pill button to draw attention to Hire Me link   */
/* ================================================================ */
.nav-link.nav-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* Mobile: full-width highlight button */
@media (max-width: 768px) {
    .nav-link.nav-highlight {
        text-align: center;
        margin: 0 20px;
    }
}

/* ================================================================ */
/* HERO TAGLINE — Roles display below description                    */
/* ================================================================ */
.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-tagline span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-tagline span:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* ================================================================ */
/* TECH MARQUEE — Scrolling technologies bar at hero bottom          */
/* ================================================================ */
.tech-marquee {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    padding: 15px 0;
    background: rgba(15, 15, 26, 0.6);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.tech-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.tech-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 35px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.tech-marquee-item i {
    color: var(--primary);
    font-size: 0.7rem;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ================================================================ */
/* STATS COUNTER SECTION — Animated number counters on home page     */
/* ================================================================ */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.stat-card {
    background: var(--bg-card);
    padding: 40px 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.1);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ================================================================ */
/* WHY CHOOSE ME SECTION — Feature cards explaining value props      */
/* ================================================================ */
.why-choose-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.why-card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.4s ease;
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.12);
}

.why-card:hover::after {
    width: 80%;
}

.why-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.7rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.why-card:hover .why-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: rotateY(360deg);
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ================================================================ */
/* WORK PROCESS SECTION — 4-step horizontal timeline                 */
/* ================================================================ */
.process-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(26, 26, 46, 0.4) 50%, var(--bg-dark) 100%);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

/* Horizontal connecting line between steps */
.process-grid::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.process-number {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    position: relative;
    transition: all 0.4s ease;
}

.process-number .step-digit {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.process-number i {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-top: 2px;
}

.process-step:hover .process-number {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.process-step:hover .process-number .step-digit,
.process-step:hover .process-number i {
    -webkit-text-fill-color: white;
    color: white;
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ================================================================ */
/* ENHANCED CTA SECTION — Big gradient call-to-action                */
/* ================================================================ */
.cta-section-enhanced {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.12));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-section-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    animation: cta-pulse 6s ease-in-out infinite;
}

@keyframes cta-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-section-enhanced .container {
    position: relative;
    z-index: 1;
}

.cta-section-enhanced h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-section-enhanced p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 35px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================ */
/* HIRE ME PAGE — Service Selection Cards                            */
/* ================================================================ */
.hire-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hire-service-card {
    background: var(--bg-card);
    padding: 30px 20px;
    border-radius: 15px;
    border: 2px solid var(--border);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.hire-service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.hire-service-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.hire-service-card .select-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.hire-service-card.selected .select-check {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
}

.hire-service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.hire-service-card.selected .hire-service-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.hire-service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hire-service-card .service-price {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ================================================================ */
/* HIRE ME PAGE — Form Styling                                       */
/* ================================================================ */
.hire-form-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
}

.hire-form-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.hire-form-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.hire-form-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

/* Budget and Timeline select styling */
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

/* Readonly input styling */
.form-group input[readonly] {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    cursor: not-allowed;
}

/* WhatsApp submit button */
.whatsapp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.whatsapp-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.whatsapp-submit-btn i {
    font-size: 1.3rem;
}

/* ================================================================ */
/* RESPONSIVE — Stats Section (Tablet)                               */
/* ================================================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    /* Hide horizontal line on tablet (2x2 grid) */
    .process-grid::before {
        display: none;
    }

    .hire-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================================ */
/* RESPONSIVE — Stats Section (Mobile)                               */
/* ================================================================ */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-section-enhanced h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hire-services-grid {
        grid-template-columns: 1fr;
    }

    .hire-form-card {
        padding: 30px 20px;
    }

    .tech-marquee {
        bottom: 0;
    }
}

/* ================================================================ */
/* RESPONSIVE — Small Mobile                                         */
/* ================================================================ */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-section-enhanced h2 {
        font-size: 1.7rem;
    }
}


/* ================================================================ */
/* IMAGE FRAMES — Premium gradient borders for profile photos        */
/* ================================================================ */

/* --- Hero Image Frame --- */
.hero-img-frame {
    position: relative;
    padding: 5px;
    border-radius: 24px;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #8b5cf6, #6366f1);
    /* Indigo → Cyan → Violet → Indigo animated gradient */
    background-size: 300% 300%;
    animation: frameGradientShift 4s ease infinite;
    box-shadow:
        0 0 25px rgba(99, 102, 241, 0.35),
        0 0 50px rgba(99, 102, 241, 0.12),
        inset 0 0 15px rgba(99, 102, 241, 0.08);
    display: inline-block;
    z-index: 1;
}

/* Animated gradient shift */
@keyframes frameGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Top-left corner accent */
.hero-img-frame::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    width: 35px;
    height: 35px;
    border-top: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 10px 0 0 0;
    opacity: 0.7;
    z-index: 2;
}

/* Bottom-right corner accent */
.hero-img-frame::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 35px;
    height: 35px;
    border-bottom: 3px solid var(--secondary);
    border-right: 3px solid var(--secondary);
    border-radius: 0 0 10px 0;
    opacity: 0.7;
    z-index: 2;
}

/* Inner decorative corner dots */
.hero-img-frame .corner-dot-tl,
.hero-img-frame .corner-dot-br {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 3;
}

.hero-img-frame .corner-dot-tl {
    top: -6px;
    left: -6px;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.hero-img-frame .corner-dot-br {
    bottom: -6px;
    right: -6px;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
}

/* Image inside frame */
.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 19px;
    display: block;
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

/* --- About Image Frame --- */
.about-img-frame {
    position: relative;
    padding: 5px;
    border-radius: 22px;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #8b5cf6, #6366f1);
    background-size: 300% 300%;
    animation: frameGradientShift 4s ease infinite;
    box-shadow:
        0 0 20px rgba(99, 102, 241, 0.3),
        0 0 40px rgba(99, 102, 241, 0.1);
    display: inline-block;
    z-index: 1;
}

/* Top-right corner accent for about */
.about-img-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-top: 3px solid var(--accent);
    border-right: 3px solid var(--accent);
    border-radius: 0 10px 0 0;
    opacity: 0.7;
    z-index: 2;
}

/* Bottom-left corner accent for about */
.about-img-frame::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 0 0 0 10px;
    opacity: 0.7;
    z-index: 2;
}

/* Image inside about frame */
.about-img {
    width: 100%;
    max-width: 350px;
    border-radius: 17px;
    display: block;
    position: relative;
    z-index: 1;
}

/* Mobile responsive frames */
@media (max-width: 768px) {
    .hero-img-frame {
        padding: 4px;
        border-radius: 18px;
    }
    .hero-img {
        border-radius: 14px;
        max-height: 350px;
    }
    .about-img-frame {
        padding: 4px;
        border-radius: 16px;
    }
    .about-img {
        border-radius: 12px;
    }
}
