/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --accent-color: #fef08a;
    --orange: #f97316;
    --yellow: #eab308;
    --cyan: #06b6d4;
    --purple: #a855f7;
    --pink: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #fef08a 100%);
    --gradient-4: linear-gradient(135deg, #fef08a 0%, #fde047 50%, #667eea 100%);
    --gradient-5: linear-gradient(135deg, #fa8bff 0%, #2bd2ff 50%, #fef08a 100%);
    --gradient-6: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
    --gradient-7: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #ff9a9e 100%);
    --gradient-rainbow: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-rainbow: 0 10px 30px rgba(102, 126, 234, 0.4), 0 0 60px rgba(236, 72, 153, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
    position: relative;
    /* Hide scrollbar for Chrome, Safari and Opera */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

body.loaded {
    opacity: 1;
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: background-pulse 20s ease infinite;
}

@keyframes background-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out, transform 1.5s ease-out;
    visibility: visible;
    transform: translateY(0);
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-30px);
}

.loading-content {
    text-align: center;
    position: relative;
}

.loading-logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    max-height: 400px;
    animation: logo-fade-in 1s ease-out, logo-pulse 2s ease-in-out infinite 1s;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

@keyframes logo-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes logo-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.7));
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(249, 250, 251, 0.98);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

/* Navbar on hero section - transparent to match gradient */
body:has(.hero) .navbar {
    background: transparent;
    backdrop-filter: blur(5px);
    box-shadow: none;
}

body:has(.hero) .navbar.scrolled {
    background: rgba(249, 250, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: none;
}

/* Nav links on hero section - darker for better visibility when navbar is transparent */
.navbar:not(.scrolled) .nav-link {
    color: rgba(30, 30, 30, 0.95) !important;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.navbar:not(.scrolled) .nav-link:hover {
    color: rgba(0, 0, 0, 1) !important;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 1), 0 0 15px rgba(255, 255, 255, 0.7);
}

.navbar:not(.scrolled) .nav-link::after {
    background: rgba(30, 30, 30, 0.9) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.navbar:not(.scrolled) .nav-container,
.navbar.scrolled .nav-container {
    padding: 1.5rem 0 1.5rem 20px;
    max-width: 100%;
    justify-content: flex-end;
}

.nav-logo-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.navbar.scrolled .nav-logo-container {
    display: block;
    opacity: 1;
}

.nav-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.logo-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.logo-emoji {
    font-size: 1.2rem;
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.logo-text {
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    margin-right: 70px !important;
    padding-right: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.navbar:not(.scrolled) .nav-menu,
.navbar.scrolled .nav-menu {
    margin-right: 70px !important;
    padding-right: 0 !important;
    right: 0 !important;
    transform: none !important;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    z-index: 1001;
    display: block;
}

.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 {
    color: var(--primary-color);
}

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

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background: var(--primary-color);
}

.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 100px 100px;
    animation: pattern-move 20s linear infinite;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    animation: grid-move 30s linear infinite;
}

@keyframes pattern-move {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(360deg); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fade-in-up 1s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transform: translateZ(0);
    will-change: auto;
}

.hero-title {
    font-size: 3.67rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    font-family: 'Angsana New', 'AngsanaUPC', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.title-line {
    display: block;
    font-size: 1.67rem;
    font-weight: 400;
    opacity: 0.9;
    animation: slide-in-left 0.8s ease;
    font-family: 'Angsana New', 'AngsanaUPC', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.title-name {
    display: block;
    color: #fff;
    font-size: 4.17rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    font-family: 'Angsana New', 'AngsanaUPC', serif;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 800;
}

/* Title name is now normal text, no split animation */

.title-role {
    display: block;
    font-size: 1.97rem;
    font-weight: 300;
    opacity: 0.95;
    font-family: 'Angsana New', 'AngsanaUPC', serif;
    color: white;
}

.hero-subtitle {
    font-size: 1.42rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-family: 'Angsana New', 'AngsanaUPC', serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.contact .btn-primary {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.contact .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.hero-image {
    position: relative;
    height: 500px;
    animation: fade-in-right 1s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
}

.hero-photo-container {
    position: absolute;
    right: -70px;
    z-index: 10;
    width: 350px;
    height: 350px;
    animation: photo-float 3s ease-in-out infinite;
    aspect-ratio: 1 / 1;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 10px rgba(255, 255, 255, 0.1),
                0 0 40px rgba(99, 102, 234, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 12;
    display: block;
    aspect-ratio: 1 / 1;
}

.hero-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4),
                0 0 0 10px rgba(255, 255, 255, 0.15),
                0 0 50px rgba(99, 102, 234, 0.6);
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 50%;
    border: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 10px rgba(255, 255, 255, 0.1),
                0 0 40px rgba(99, 102, 234, 0.4);
    aspect-ratio: 1 / 1;
}

.photo-placeholder .initials {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em;
}

.photo-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 234, 0.3), rgba(236, 72, 153, 0.3));
    z-index: 1;
    opacity: 0.6;
    animation: frame-glow 3s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes photo-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

@keyframes frame-glow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -20px;
    right: -150px;
    animation-delay: 0s;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(236, 72, 153, 0.5));
}

.shape-2 {
    width: 180px;
    height: 180px;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.5), rgba(6, 182, 212, 0.5));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-3 {
    width: 190px;
    height: 190px;
    bottom: -30px;
    right: -120px;
    animation-delay: 4s;
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.5), rgba(253, 224, 71, 0.5));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-4 {
    width: 170px;
    height: 170px;
    top: 15%;
    right: -180px;
    animation-delay: 1s;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(168, 85, 247, 0.5));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.shape-5 {
    width: 160px;
    height: 160px;
    bottom: 20%;
    right: -190px;
    animation-delay: 3s;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.5), rgba(234, 179, 8, 0.5));
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.geo-shape {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: geo-float 8s ease-in-out infinite;
    z-index: 1;
}

.geo-1 {
    width: 140px;
    height: 140px;
    top: -10px;
    right: -130px;
    border-radius: 20px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.4), rgba(236, 72, 153, 0.4));
    animation-delay: 0s;
}

.geo-2 {
    width: 120px;
    height: 120px;
    top: 50%;
    right: -220px;
    transform: translateY(-50%);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(168, 85, 247, 0.4));
    border: none;
    animation-delay: 2s;
}

.geo-3 {
    width: 130px;
    height: 130px;
    bottom: -20px;
    right: -140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.4), rgba(253, 224, 71, 0.4));
    border: none;
    animation-delay: 4s;
}

@keyframes geo-float {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: translate(30px, -30px) rotate(120deg) scale(1.1);
        opacity: 0.8;
    }
    66% { 
        transform: translate(-20px, 20px) rotate(240deg) scale(0.9);
        opacity: 0.7;
    }
}

.section-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: bg-float 15s ease-in-out infinite;
    filter: blur(40px);
}

.bg-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: var(--gradient-1);
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: -50px;
    background: var(--gradient-2);
    animation-delay: 3s;
}

.bg-shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    background: var(--gradient-3);
    animation-delay: 6s;
}

.bg-shape-4 {
    width: 350px;
    height: 350px;
    top: 10%;
    right: -150px;
    background: var(--gradient-4);
    animation-delay: 0s;
}

.bg-shape-5 {
    width: 280px;
    height: 280px;
    bottom: 20%;
    left: -100px;
    background: var(--gradient-5);
    animation-delay: 4s;
}

.bg-shape-6 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    background: var(--gradient-6);
    animation-delay: 0s;
}

.bg-shape-7 {
    width: 320px;
    height: 320px;
    bottom: -150px;
    left: -150px;
    background: var(--gradient-7);
    animation-delay: 5s;
}

@keyframes bg-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
    }
    50% { 
        transform: translate(50px, -50px) scale(1.2);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
}

.wheel {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

.arrow {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.arrow span {
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
    animation: arrow-bounce 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrow span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow-bounce {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 30px 0;
    position: relative;
    background: var(--bg-secondary);
}

body {
    background: var(--bg-secondary);
}

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

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

.about .section-header {
    margin-bottom: 2rem;
}

.skills .section-header {
    margin-bottom: 1.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #fef08a;
    color: #713f12;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    animation: fade-in-up 0.8s ease;
    box-shadow: 0 5px 20px rgba(254, 240, 138, 0.4);
    position: relative;
    overflow: hidden;
}

.about .section-tag,
.experience .section-tag,
.projects .section-tag,
.education .section-tag,
.skills .section-tag {
    background: #fef08a;
    color: #713f12;
    box-shadow: 0 5px 20px rgba(254, 240, 138, 0.4);
}

.section-tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shine 3s infinite;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    line-height: 1.3;
}

.section-title > span {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.section-title > span > span {
    display: inline-block;
    will-change: transform, opacity;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--bg-secondary);
    position: relative;
    overflow: visible;
}

.about-bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.about-bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(254, 240, 138, 0.7);
    border-radius: 50%;
    animation: particle-float 8s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(254, 240, 138, 0.9);
}

.particle:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 30%;
    top: 10%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    left: 50%;
    top: 30%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    left: 70%;
    top: 15%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    left: 85%;
    top: 40%;
    animation-delay: 4s;
}

.particle:nth-child(6) {
    left: 20%;
    top: 60%;
    animation-delay: 1.5s;
}

.particle:nth-child(7) {
    left: 40%;
    top: 70%;
    animation-delay: 2.5s;
}

.particle:nth-child(8) {
    left: 60%;
    top: 80%;
    animation-delay: 3.5s;
}

.particle:nth-child(9) {
    left: 80%;
    top: 65%;
    animation-delay: 4.5s;
}

.particle:nth-child(10) {
    left: 15%;
    top: 85%;
    animation-delay: 5s;
}

.particle:nth-child(11) {
    left: 25%;
    top: 25%;
    animation-delay: 0.5s;
}

.particle:nth-child(12) {
    left: 45%;
    top: 45%;
    animation-delay: 1.5s;
}

.particle:nth-child(13) {
    left: 65%;
    top: 65%;
    animation-delay: 2.5s;
}

.particle:nth-child(14) {
    left: 35%;
    top: 75%;
    animation-delay: 3.5s;
}

.particle:nth-child(15) {
    left: 55%;
    top: 35%;
    animation-delay: 4.5s;
}

.particle:nth-child(16) {
    left: 75%;
    top: 55%;
    animation-delay: 5.5s;
}

.particle:nth-child(17) {
    left: 5%;
    top: 50%;
    animation-delay: 6s;
}

.particle:nth-child(18) {
    left: 90%;
    top: 30%;
    animation-delay: 6.5s;
}

.particle:nth-child(19) {
    left: 50%;
    top: 80%;
    animation-delay: 7s;
}

.particle:nth-child(20) {
    left: 80%;
    top: 75%;
    animation-delay: 7.5s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, 20px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(25px, 15px) scale(1.1);
        opacity: 0.8;
    }
}

.about-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(254, 240, 138, 0.2) 25%, 
        rgba(254, 240, 138, 0.3) 50%, 
        rgba(254, 240, 138, 0.2) 75%, 
        transparent 100%);
    animation: wave-move 10s ease-in-out infinite;
    z-index: 0;
}

.about-wave-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(254, 240, 138, 0.18) 30%, 
        rgba(254, 240, 138, 0.25) 60%, 
        rgba(254, 240, 138, 0.18) 90%, 
        transparent 100%);
    animation: wave-move 12s ease-in-out infinite reverse;
    z-index: 0;
}

.about-wave-3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(254, 240, 138, 0.15) 25%, 
        rgba(254, 240, 138, 0.22) 50%, 
        rgba(254, 240, 138, 0.15) 75%, 
        transparent 100%);
    animation: wave-move 14s ease-in-out infinite;
    z-index: 0;
}

.about-wave-4 {
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(254, 240, 138, 0.12) 35%, 
        rgba(254, 240, 138, 0.2) 65%, 
        rgba(254, 240, 138, 0.12) 95%, 
        transparent 100%);
    animation: wave-move 16s ease-in-out infinite reverse;
    z-index: 0;
}

@keyframes wave-move {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.5;
    }
    50% {
        transform: translateX(50px);
        opacity: 0.8;
    }
}

.animated-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(254, 240, 138, 0.4);
    animation: circle-float 20s ease-in-out infinite;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -5%;
    animation-delay: 0s;
    border-color: rgba(254, 240, 138, 0.35);
}

.circle-2 {
    width: 350px;
    height: 350px;
    top: 60%;
    right: -3%;
    animation-delay: 5s;
    border-color: rgba(254, 240, 138, 0.4);
}

.circle-3 {
    width: 380px;
    height: 380px;
    bottom: 15%;
    left: 10%;
    animation-delay: 10s;
    border-color: rgba(254, 240, 138, 0.38);
}

.circle-4 {
    width: 360px;
    height: 360px;
    top: 30%;
    right: 5%;
    animation-delay: 3s;
    border-color: rgba(254, 240, 138, 0.36);
}

.circle-5 {
    width: 340px;
    height: 340px;
    bottom: 40%;
    right: 8%;
    animation-delay: 7s;
    border-color: rgba(254, 240, 138, 0.39);
}

.circle-6 {
    width: 370px;
    height: 370px;
    top: 50%;
    left: 5%;
    animation-delay: 13s;
    border-color: rgba(254, 240, 138, 0.37);
}

@keyframes circle-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
        opacity: 0.4;
    }
    75% {
        transform: translate(-30px, -20px) rotate(270deg);
        opacity: 0.5;
    }
}

.animated-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(254, 240, 138, 0.6);
    border-radius: 50%;
    animation: dot-move 15s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(254, 240, 138, 0.7);
}

.dot-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.dot-2 {
    top: 40%;
    right: 20%;
    animation-delay: 2s;
}

.dot-3 {
    top: 70%;
    left: 25%;
    animation-delay: 4s;
}

.dot-4 {
    bottom: 25%;
    right: 15%;
    animation-delay: 6s;
}

.dot-5 {
    top: 50%;
    left: 50%;
    animation-delay: 8s;
}

.dot-6 {
    top: 15%;
    right: 30%;
    animation-delay: 1s;
}

.dot-7 {
    top: 35%;
    left: 40%;
    animation-delay: 3s;
}

.dot-8 {
    bottom: 35%;
    right: 25%;
    animation-delay: 5s;
}

.dot-9 {
    top: 75%;
    left: 60%;
    animation-delay: 7s;
}

.dot-10 {
    bottom: 15%;
    right: 40%;
    animation-delay: 9s;
}

@keyframes dot-move {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(40px, -40px) scale(1.2);
        opacity: 0.7;
    }
    50% {
        transform: translate(-30px, 30px) scale(0.8);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 40px) scale(1.1);
        opacity: 0.6;
    }
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    overflow: visible;
}

.about-graphics {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.about-icon {
    position: relative;
    width: 120px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    animation: icon-float 3s ease-in-out infinite;
    cursor: pointer;
    overflow: visible;
    z-index: 1;
}

.about-icon-1 {
    animation-delay: 0s;
}

.about-icon-2 {
    animation-delay: 0.5s;
}

.about-icon-3 {
    animation-delay: 1s;
}

.about-icon-4 {
    animation-delay: 1.5s;
}

.about-icon-5 {
    animation-delay: 2s;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(254, 240, 138, 0.4),
                0 0 0 8px rgba(254, 240, 138, 0.1),
                0 0 0 16px rgba(254, 240, 138, 0.05);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.about-icon:hover .icon-circle {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(254, 240, 138, 0.6),
                0 0 0 12px rgba(254, 240, 138, 0.2),
                0 0 0 24px rgba(254, 240, 138, 0.1);
}

.about-icon {
    transition: transform 0.1s ease-out;
}

.icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(254, 240, 138, 0.3);
    animation: icon-pulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.icon-label {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
}

.about-icon:hover .icon-label {
    color: #713f12;
}

.icon-tooltip {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: normal;
    max-width: 220px;
    min-width: 180px;
    word-wrap: break-word;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.icon-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(30, 30, 30, 0.95);
}

.icon-tooltip strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1rem;
    color: #fef08a;
}

.about-icon:hover {
    z-index: 20;
}

.about-icon:hover .icon-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    z-index: 21;
}

@keyframes icon-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: fade-in-up 0.8s ease;
}

.about-description strong {
    color: #000000;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    animation: fade-in-up 0.8s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-rainbow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

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

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-rainbow);
}

.stat-card:nth-child(1) {
    border-top: 4px solid;
    border-image: var(--gradient-1) 1;
}

.stat-card:nth-child(2) {
    border-top: 4px solid;
    border-image: var(--gradient-2) 1;
}

.stat-card:nth-child(3) {
    border-top: 4px solid;
    border-image: var(--gradient-3) 1;
}

.stat-card:nth-child(4) {
    border-top: 4px solid;
    border-image: var(--gradient-4) 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

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

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.experience .container {
    position: relative;
    z-index: 1;
}

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

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(254, 240, 138, 0.2);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(254, 240, 138, 0.3);
}

.timeline::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: var(--progress, 0%);
    min-height: 0%;
    background: linear-gradient(180deg, 
        #fef08a 0%, 
        #fde047 50%,
        #fef08a 100%);
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(254, 240, 138, 0.8),
                0 0 40px rgba(254, 240, 138, 0.5);
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    animation: timeline-progress 3s ease-in-out infinite;
    opacity: 1;
    visibility: visible;
}

@keyframes timeline-progress {
    0%, 100% {
        box-shadow: 0 0 20px rgba(254, 240, 138, 0.8),
                    0 0 40px rgba(254, 240, 138, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(254, 240, 138, 1),
                    0 0 60px rgba(254, 240, 138, 0.7);
    }
}

.timeline-line-particles {
    position: absolute;
    left: 2px;
    top: 0;
    width: 0;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.timeline-particle {
    position: absolute;
    left: 0;
    width: 6px;
    height: 6px;
    background: #fef08a;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(254, 240, 138, 1),
                0 0 20px rgba(254, 240, 138, 0.8);
    animation: particle-move-up 4s linear infinite;
}

.timeline-particle:nth-child(1) { animation-delay: 0s; }
.timeline-particle:nth-child(2) { animation-delay: 1s; }
.timeline-particle:nth-child(3) { animation-delay: 2s; }
.timeline-particle:nth-child(4) { animation-delay: 3s; }

@keyframes particle-move-up {
    0% {
        top: 100%;
        opacity: 0;
        transform: translateX(-1px) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateX(-1px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateX(-1px) scale(1);
    }
    100% {
        top: 0%;
        opacity: 0;
        transform: translateX(-1px) scale(0.5);
    }
}

.timeline-bubble {
    position: absolute;
    left: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8),
                0 0 40px rgba(99, 102, 241, 0.5),
                0 4px 15px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.3s ease,
                box-shadow 0.3s ease,
                opacity 0.3s ease;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.timeline-bubble:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px rgba(99, 102, 241, 1),
                0 0 50px rgba(99, 102, 241, 0.7),
                0 4px 15px rgba(0, 0, 0, 0.4),
                inset 0 0 25px rgba(255, 255, 255, 0.3);
}


.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(1) .timeline-content {
    animation-delay: 0s;
}

.timeline-item:nth-child(2) .timeline-content {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(3) .timeline-content {
    animation-delay: 1s;
}

.timeline-item-active .timeline-marker {
    transform: scale(1.3);
    box-shadow: 0 0 30px rgba(254, 240, 138, 0.8),
                0 0 50px rgba(254, 240, 138, 0.5);
}

.timeline-item-active .timeline-content {
    transform: translateX(5px);
    box-shadow: 0 15px 40px rgba(254, 240, 138, 0.3);
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fef08a;
    border: 4px solid white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(254, 240, 138, 0.6);
    animation: pulse 2s infinite;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(254, 240, 138, 0.7), 0 0 20px rgba(254, 240, 138, 0.6);
    }
    50% { 
        transform: scale(1.2); 
        box-shadow: 0 0 0 15px rgba(254, 240, 138, 0), 0 0 30px rgba(254, 240, 138, 0.6);
    }
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: none;
    transition: all 0.3s ease;
    margin-left: 1rem;
    position: relative;
    overflow: visible;
    border-left: 4px solid transparent;
    animation: timeline-box-float 4s ease-in-out infinite,
               timeline-box-pulse 3s ease-in-out infinite,
               timeline-box-shimmer 5s ease-in-out infinite,
               timeline-box-breathe 6s ease-in-out infinite;
}

.timeline-content .timeline-date,
.timeline-content .timeline-title,
.timeline-content .timeline-company,
.timeline-content .timeline-list,
.timeline-content .timeline-list li,
.timeline-content p,
.timeline-content h3,
.timeline-content h4 {
    position: relative;
    z-index: 10;
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    transition: none !important;
    color: inherit !important;
    visibility: visible !important;
}

@keyframes timeline-box-breathe {
    0%, 100% {
        border-radius: 15px;
    }
    50% {
        border-radius: 20px;
    }
}

@keyframes timeline-box-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes timeline-box-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-5px) rotate(0.5deg) scale(1.01);
    }
    50% {
        transform: translateY(-8px) rotate(0deg) scale(1.02);
    }
    75% {
        transform: translateY(-5px) rotate(-0.5deg) scale(1.01);
    }
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        #fef08a 20%, 
        #fef08a 80%, 
        transparent 100%);
    background-size: 100% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: timeline-border-glow 3s ease-in-out infinite,
               timeline-border-slide 4s ease-in-out infinite;
}

@keyframes timeline-border-slide {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes timeline-border-glow {
    0%, 100% {
        opacity: 0;
        box-shadow: 0 0 10px rgba(254, 240, 138, 0);
    }
    50% {
        opacity: 0.3;
        box-shadow: 0 0 20px rgba(254, 240, 138, 0.5);
    }
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 15px;
    background: linear-gradient(135deg, 
        rgba(254, 240, 138, 0.1) 0%, 
        transparent 50%, 
        rgba(254, 240, 138, 0.1) 100%);
    opacity: 0;
    z-index: -1;
    animation: timeline-box-glow 4s ease-in-out infinite;
}

@keyframes timeline-box-glow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.02);
    }
}

.timeline-content:hover {
    transform: translateX(10px) scale(1.05) translateY(-8px) rotate(1deg);
    box-shadow: none;
    border-left-color: rgba(254, 240, 138, 0.6);
    border-left-width: 6px;
    animation-play-state: paused;
}

.timeline-content:hover::after {
    opacity: 0.5;
    animation: timeline-box-glow 1s ease-in-out infinite;
}

.timeline-content:hover::before {
    opacity: 0.8;
    width: 6px;
    animation: timeline-border-glow 0.8s ease-in-out infinite;
}

.timeline-content:hover .timeline-date,
.timeline-content:hover .timeline-title,
.timeline-content:hover .timeline-company,
.timeline-content:hover .timeline-list,
.timeline-content:hover .timeline-list li {
    transform: none !important;
    animation: none !important;
    opacity: 1 !important;
    color: inherit !important;
    visibility: visible !important;
}

.timeline-item:nth-child(1) .timeline-content {
    border-left-color: #fef08a;
}

.timeline-item:nth-child(2) .timeline-content {
    border-left-color: #fef08a;
}

.timeline-item:nth-child(3) .timeline-content {
    border-left-color: #fef08a;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.timeline-company {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.timeline-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.1s ease, top 0.1s ease;
    z-index: 0;
    left: var(--cursor-x, 50%);
    top: var(--cursor-y, 50%);
    transform: translate(-50%, -50%);
}

.projects.cursor-highlight::before {
    opacity: 1;
}

.projects .container {
    position: relative;
    z-index: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fade-in-up 0.8s ease;
    border: 2px solid transparent;
    transform: scale(1);
}

.project-card::before {
    display: none;
}

.project-card::after {
    display: none;
}

.project-card.popup-active {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 20px 50px rgba(254, 240, 138, 0.5),
                0 0 0 2px rgba(254, 240, 138, 0.3);
    z-index: 10;
    border-top-color: #fef08a;
}

@keyframes project-card-pulse {
    0%, 100% {
        border-top-width: 4px;
    }
    50% {
        border-top-width: 6px;
    }
}

.project-card:nth-child(1) {
    border-top: 4px solid #fef08a;
}

.project-card:nth-child(2) {
    border-top: 4px solid #fef08a;
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #fef08a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #713f12;
    animation: rotate-in 0.8s ease;
    box-shadow: 0 10px 30px rgba(254, 240, 138, 0.4);
    position: relative;
    z-index: 1;
}

.project-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: #fef08a;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

@keyframes rotate-in {
    from { transform: rotate(-180deg) scale(0); }
    to { transform: rotate(0) scale(1); }
}

.project-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(254, 240, 138, 0.3);
    color: #713f12;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.375rem 0.875rem;
    background: rgba(254, 240, 138, 0.3);
    color: #713f12;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag {
    transition: none;
}

.tag {
    transition: all 0.3s ease;
}

.btn-case-study {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-light);
    color: white;
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.3);
}

.btn-case-study:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 140, 248, 0.4);
}

.btn-case-study i {
    font-size: 0.9rem;
}

.project-certificate {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.certificate-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 300px;
    object-fit: contain;
}

.certificate-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */
.certifications {
    background: var(--bg-secondary);
    padding: 30px 0 60px;
    position: relative;
    overflow: hidden;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certification-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 0.6rem;
    box-shadow: none;
    border-left: 4px solid #fef08a;
    transition: all 0.3s ease;
    display: flex;
    gap: 0.6rem;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-rainbow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.certification-card:hover::before {
    opacity: 0.05;
}

.certification-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 6px 15px rgba(0, 0, 0, 0.1);
    border-left-color: #fef08a;
}

.certification-icon {
    width: 40px;
    height: 40px;
    background: #fef08a;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #713f12;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.certification-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: #fef08a;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.certification-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.certification-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.certification-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.view-cert-btn {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: var(--primary-light);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.view-cert-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: none;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    animation: fade-in-up 0.8s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-rainbow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.education-card:hover::before {
    opacity: 0.05;
}

.education-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: none;
    border-left-color: #fef08a;
}

.education-card {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.education-card:nth-child(1) {
    border-left: 4px solid #fef08a;
}

.education-card:nth-child(2) {
    border-left: 4px solid #fef08a;
}

.university-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    border-radius: 20px;
}

.education-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: #fef08a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #713f12;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(254, 240, 138, 0.4);
    position: relative;
    z-index: 1;
}

.education-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: #fef08a;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.education-degree {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-university {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.education-period {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.education-grade {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(254, 240, 138, 0.3);
    color: #22c55e;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.skills {
    background: var(--bg-secondary);
}

.skills-container {
    display: grid;
    gap: 0.75rem;
}

.skills-category {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: none;
    animation: fade-in-up 0.8s ease;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    color: #fef08a;
    font-size: 1.75rem;
}

.skills-grid {
    display: grid;
    gap: 1rem;
}

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

.skill-name {
    min-width: 180px;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar {
    flex: 1;
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #fef08a 0%, #fde047 50%, #fef08a 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
    overflow: visible;
    box-shadow: 0 0 20px rgba(254, 240, 138, 0.5);
}

.skill-progress[style*="width"] {
    animation: skill-wave 2s ease infinite;
}

@keyframes skill-wave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.skill-tag {
    padding: 0.75rem 1.5rem;
    background: #fefce8;
    color: #713f12;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    animation: fade-in-scale 0.5s ease;
    box-shadow: 0 5px 15px rgba(254, 252, 232, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.skill-tag:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 30px rgba(254, 240, 138, 0.5);
    background: #fef9c3;
    color: #713f12;
    z-index: 10;
}

.skill-tag:active {
    transform: scale(1.1) rotate(3deg);
    background: #fef3c7;
    box-shadow: 0 8px 25px rgba(254, 240, 138, 0.4);
}

@keyframes fade-in-scale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 0rem 1.0rem 1.0rem 1.0rem;
    border-radius: 20px;
    box-shadow: none;
    animation: fade-in-left 0.8s ease;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.0rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: none;
    transition: all 0.3s ease;
    animation: fade-in-left 0.8s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: none;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: none;
    position: relative;
}

.contact-icon::before {
    display: none;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0;
}

.contact-item:hover .contact-details p {
    color: #8b5cf6;
}

.contact .section-tag {
    background: #e0e7ff;
    color: #4f46e5;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3), 
                0 0 0 8px rgba(224, 231, 255, 0.5),
                0 0 0 16px rgba(224, 231, 255, 0.3);
    animation: bubble-float 3s ease-in-out infinite, fade-in-up 0.8s ease;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.contact .section-tag:visited {
    color: #4f46e5;
}

.contact .section-tag:hover {
    background: #c7d2fe;
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4), 
                0 0 0 10px rgba(224, 231, 255, 0.6),
                0 0 0 20px rgba(224, 231, 255, 0.4);
    text-decoration: none;
}

.contact .section-tag::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50px;
    background: rgba(224, 231, 255, 0.4);
    z-index: -1;
    animation: bubble-pulse 2s ease-in-out infinite;
}

@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bubble-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

.contact-form-container {
    background: var(--bg-secondary);
    padding: 0rem 1.0rem 1.0rem 1.0rem;
    border-radius: 20px;
    box-shadow: none;
    animation: fade-in-right 0.8s ease;
}

.contact-greeting {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 1.67rem;
    color: var(--text-primary);
    font-weight: 600;
    animation: greeting-fade-in 1s ease;
    cursor: default;
}

.wave-emoji {
    display: inline-block;
    animation: wave-hand 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
    font-size: 1.5em;
}

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

@keyframes greeting-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-greeting:hover {
    /* Color change removed - keeping original color */
}

.contact-greeting:hover .wave-emoji {
    animation: wave-hand 0.8s ease-in-out infinite;
    transform: scale(1.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.form-input {
    transition: all 0.3s ease;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
}

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-rainbow);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-shift 3s ease infinite;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) rotate(360deg) scale(1.2);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rainbow-border {
    0% { border-color: #667eea; }
    25% { border-color: #764ba2; }
    50% { border-color: #f093fb; }
    75% { border-color: #f5576c; }
    100% { border-color: #4facfe; }
}

@keyframes color-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Additional responsive breakpoints for better scaling */
@media (max-width: 1024px) {
    .container {
        padding: 0 18px;
    }
    
    .hero-content {
        padding: 1.5rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        will-change: auto;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .title-line {
        font-size: 1.2rem;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        will-change: auto;
        transform: translateZ(0);
    }

    .title-name {
        font-size: 2.5rem;
        line-height: 1.2;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        will-change: auto;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    .title-role {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 1rem 0 1rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .about-graphics {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .about-icon {
        width: 90px;
        height: 130px;
    }
    
    .about-icon {
        width: 100px;
        height: 130px;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .icon-pulse {
        width: 60px;
        height: 60px;
    }
    
    .icon-label {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
    
    .icon-tooltip {
        font-size: 0.75rem;
        padding: 0.8rem 1.2rem;
        white-space: normal;
        width: 180px;
        bottom: -100px;
    }
    
    .icon-tooltip strong {
        font-size: 0.9rem;
    }
    
    .hero-image {
        height: 350px;
        margin-top: 0.5rem;
        justify-content: center;
        padding-right: 0;
    }
    
    .hero-photo-container {
        width: 250px;
        height: 250px;
        right: 0;
        position: relative;
    }
    
    .hero-photo {
        border-width: 3px;
        border-radius: 50%;
    }
    
    .photo-frame {
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        border-radius: 50%;
    }
    
    .photo-placeholder {
        border-radius: 50%;
    }

    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    section {
        padding: 2.5rem 0;
    }

    /* About Section Mobile */
    .about-description {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    /* Experience Section Mobile */
    .timeline-content {
        padding: 1.25rem;
    }

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

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

    .timeline-date {
        font-size: 0.85rem;
    }

    .timeline-list {
        font-size: 0.9rem;
        line-height: 1.6;
        padding-left: 1.25rem;
    }

    .timeline-list li {
        margin-bottom: 0.75rem;
    }

    /* Projects Section Mobile */
    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 1rem 0;
    }

    .project-features {
        font-size: 0.85rem;
    }

    .project-features li {
        margin-bottom: 0.5rem;
    }

    .btn-case-study {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    /* Education Section Mobile */
    .education-card {
        padding: 1.5rem;
    }

    .education-degree {
        font-size: 1.2rem;
    }

    .education-university {
        font-size: 1rem;
    }

    /* Skills Section Mobile */
    .skills-category {
        margin-bottom: 1.5rem;
    }

    .category-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
        margin: 0.25rem;
    }

    /* Contact Section Mobile */
    .contact-greeting {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }

    .contact-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .contact-item h4 {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 0.9rem;
    }

    .form-input {
        font-size: 1rem;
        padding: 1rem;
        min-height: 48px;
    }

    .form-textarea {
        min-height: 80px;
        padding: 1rem;
        font-size: 1rem;
    }

    .contact .btn-primary {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.75rem;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        will-change: auto;
        transform: translateZ(0);
    }

    .title-line {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        will-change: auto;
        transform: translateZ(0);
    }

    .title-name {
        font-size: 2rem;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
        will-change: auto;
        transform: translateZ(0);
    }

    .title-role {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin: 0.75rem 0 0.75rem;
    }

    .hero-image {
        margin-top: 0.25rem;
        height: 300px;
    }

    .hero-photo-container {
        width: 220px;
        height: 220px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .skill-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .skill-name {
        min-width: auto;
    }

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

    .project-card {
        padding: 1.25rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .contact-greeting {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.875rem 1.25rem;
    }
}

/* Extra small devices (phones in portrait, less than 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

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

    .title-name {
        font-size: 1.75rem;
    }

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

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

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .hero-photo-container {
        width: 180px;
        height: 180px;
    }

    .hero-image {
        height: 280px;
    }
}

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }
}

/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all containers are flexible */
* {
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ============================================
   CERTIFICATION MODAL
   ============================================ */
.certification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.certification-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-body iframe {
    width: 100%;
    min-height: 600px;
    height: 80vh;
    max-height: 800px;
    border: none;
    border-radius: 8px;
}

.modal-body img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-body iframe {
        min-height: 400px;
        height: 70vh;
        max-height: 600px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}



