/* ==================== ROOT & VARIABLES ==================== */
:root {
    /* Light Mode Colors */
    --primary-color: #f9bbcd;
    --primary-dark: #ed9fb7;
    --secondary-color: #ffd4e3;
    --bg-light: #ffffff;
    --bg-white: #ffffff;
    --bg-gray: #fdf6fb;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-color: rgba(100, 116, 139, 0.1);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Animation */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    color: var(--text-dark);
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    /* Performance optimizations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 25s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.8;
    }
    33% {
        transform: translateY(-15px) rotate(0.5deg);
        opacity: 0.9;
    }
    66% {
        transform: translateY(10px) rotate(-0.5deg);
        opacity: 0.7;
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

p, li, span, strong, small, em {
    color: var(--text-dark);
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

.logo-text {
    color: #2563eb;
}

.logo-dot {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.96) 50%, rgba(241, 245, 249, 0.97) 100%);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-video-bg .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: brightness(0.9) saturate(1.2);
    position: absolute;
    inset: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.10), rgba(236, 72, 153, 0.08));
    pointer-events: none;
    z-index: 0;
    animation: heroVideoPulse 12s ease-in-out infinite;
}

@keyframes heroVideoPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.hero-ambient-animation {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-ambient-animation .bubble {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
    animation: bubbleFloat 8s infinite ease-in-out;
}

.bubble-1 { top: 20%; left: 10%; animation-delay: 0s; }
.bubble-2 { top: 60%; left: 70%; width: 30px; height: 30px; background: rgba(236, 72, 153, 0.15); animation-delay: 1.5s; }
.bubble-3 { top: 35%; left: 35%; width: 18px; height: 18px; background: rgba(120, 219, 255, 0.15); animation-delay: 3s; }
.bubble-4 { top: 75%; left: 25%; width: 26px; height: 26px; background: rgba(99, 102, 241, 0.12); animation-delay: 4.5s; }
.bubble-5 { top: 10%; left: 80%; width: 22px; height: 22px; background: rgba(236, 72, 153, 0.12); animation-delay: 6s; }

@keyframes bubbleFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-10px, -20px) scale(1.2); opacity: 0.9; }
    100% { transform: translate(5px, 20px) scale(1); opacity: 0.6; }
}


.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -55%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(236, 72, 153, 0.06) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -40%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(120, 219, 255, 0.07) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroGlowReverse 12s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.05) rotate(2deg);
        opacity: 0.8;
    }
}

@keyframes heroGlowReverse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.7;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-text {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1), floatText 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatText {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

.hero-animation {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-typing {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    min-height: 2rem;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.5rem;
    background: var(--primary-color);
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    51%, 99% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-animation {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInRight 0.8s ease;
}

.animated-grid {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, transparent 48%, rgba(99, 102, 241, 0.15) 49%, rgba(99, 102, 241, 0.15) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(236, 72, 153, 0.1) 49%, rgba(236, 72, 153, 0.1) 51%, transparent 52%);
    background-size: 60px 60px;
    opacity: 0.04;
    border-radius: 20px;
    animation: gridRotate 30s linear infinite, gridPulse 5s ease-in-out infinite;
    position: relative;
    will-change: transform, opacity;
}

.animated-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 219, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 119, 198, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 40%);
    animation: particleFloat 20s ease-in-out infinite;
    border-radius: 20px;
}

@keyframes gridRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes gridPulse {
    0%, 100% {
        opacity: 0.04;
        transform: scale(1);
    }
    50% {
        opacity: 0.06;
        transform: scale(1.01);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-8px) translateX(8px);
        opacity: 1;
    }
    50% {
        transform: translateY(-4px) translateX(-4px);
        opacity: 0.9;
    }
    75% {
        transform: translateY(4px) translateX(4px);
        opacity: 0.7;
    }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.3));
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    animation: float 10s ease-in-out infinite;
}

.particle-1 {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle-3 {
    width: 10px;
    height: 10px;
    top: 40%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 30%;
    animation-delay: 1s;
    animation-duration: 18s;
}

.particle-5 {
    width: 7px;
    height: 7px;
    top: 10%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.particle-6 {
    width: 9px;
    height: 9px;
    top: 70%;
    left: 20%;
    animation-delay: 5s;
    animation-duration: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-15px) translateX(-15px) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(20px) translateX(10px) scale(1.05);
        opacity: 0.7;
    }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--secondary-color), transparent);
    border-radius: 50%;
    top: 70%;
    left: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 80px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    top: 40%;
    right: 25%;
    animation-delay: 10s;
}

.shape-4 {
    width: 30px;
    height: 60px;
    background: linear-gradient(45deg, var(--secondary-color), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 80%;
    right: 40%;
    animation-delay: 7s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    33% {
        transform: translateY(-25px) rotate(120deg) scale(1.1);
        opacity: 0.15;
    }
    66% {
        transform: translateY(15px) rotate(240deg) scale(0.9);
        opacity: 0.08;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== SECTIONS COMMON ==================== */
section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 1rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.highlight-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.highlight-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    animation: slideInUp 0.5s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skill-bar {
    background: var(--bg-light);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: fillBar 2s ease;
}

@keyframes fillBar {
    from {
        width: 0 !important;
    }
}

.skill-card p {
    color: var(--primary-color);
    font-weight: 600;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    animation: scaleIn 0.5s ease;
    border: 1px solid rgb(243, 227, 236);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 14px 24px rgba(237, 132, 168, 0.25);
    border-color: var(--primary-color);
}

.project-card:hover .project-image {
    transform: scale(1.02);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-gray);
    transition: transform 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--primary-color);
    padding: 10px 22px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    background: var(--primary-color);
    border-color: var(--primary-dark);
    color: var(--text-dark);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==================== CERTIFICATIONS SECTION ==================== */
.certifications {
    background: var(--bg-light);
    padding: 5rem 0;
}

.certifications .container {
    max-width: 1200px;
}

.certificates-section {
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.certificates-scroll {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-white);
}

.certificates-scroll::-webkit-scrollbar {
    height: 8px;
}

.certificates-scroll::-webkit-scrollbar-track {
    background: var(--bg-white);
    border-radius: 10px;
}

.certificates-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.certificates-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.certificate-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.certificate-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.certificate-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
    padding: 10px;
    box-sizing: border-box;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.5s ease;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    font-size: 3rem;
    color: #2563eb;
    margin: 1rem 0;
}

.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.cert-issuer {
    color: #1e3a8a;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.cert-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== SERVICES SECTION ==================== */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 2px solid #000;
    animation: slideInUp 0.5s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
    background: var(--bg-white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.agency-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    color: white;
}

.agency-cta h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.agency-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: linear-gradient(120deg, rgba(5,9,20,0.96), rgba(15,23,42,0.95));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    width: 100%;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 12px;
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--text-light);
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-dark);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-dark);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        display: none;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 1rem var(--spacing-lg);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li a {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-typing {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skills-grid,
    .projects-grid,
    .certifications-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .certificate-item {
        width: 250px;
        height: 180px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-animation {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-typing {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    h1, h2, h3 {
        margin-bottom: 0.75rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .stat h3 {
        font-size: 1.5rem;
    }

    .navbar-container {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        gap: 0;
    }

    .project-image {
        height: 200px;
    }

    .certificate-item {
        width: 200px;
        height: 150px;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .agency-cta {
        padding: 1.5rem 1rem;
    }
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
