/* CSS Variables */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #3498db;
    --text-color: #333;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.scroll-animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

.scroll-animate-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.scroll-animate-fade.animate-in {
    opacity: 1;
}

body.dark-mode {
    --text-color: #ffffff;
    --bg-color: #1a202c;
    --card-bg: #2d3748;
}

/* Update existing styles to use theme variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    transition: background-color 0.5s ease, color 0.5s ease;
    background: 
        linear-gradient(135deg, #000428 0%, #004e92 100%),
        linear-gradient(225deg, #1a5490 0%, #000428 100%);
    background-blend-mode: overlay;
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%, 100% 50%;
    }
    50% {
        background-position: 100% 50%, 0% 50%;
    }
    100% {
        background-position: 0% 50%, 100% 50%;
    }
}

/* Dark mode styles */
body.dark-mode {
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%),
        linear-gradient(225deg, #16213e 0%, #0a0a0a 100%);
    background-blend-mode: overlay;
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: #fff;
}

body.dark-mode::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.18) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(100, 149, 237, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(30, 144, 255, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(100, 149, 237, 0.15) 0%, transparent 35%);
}

body.dark-mode::after {
    opacity: 0.2;
}

body.dark-mode .card {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode .card-back {
    background: #2d2d2d;
    border-color: #444;
}

body.dark-mode .student-name,
body.dark-mode .student-info,
body.dark-mode .card-back p {
    color: #fff;
}

/* Theme toggle button */
.theme-toggle {
    position: relative;
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 15px;
    z-index: 1000;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.theme-toggle:hover::before {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.15);
}

.theme-toggle:active::before {
    transform: scale(0.9);
}

.theme-icon {
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg) scale(1.1);
}

/* Dark mode styles for theme toggle */
body.dark-mode .theme-toggle::before {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .theme-toggle:hover::before {
    background: rgba(255, 255, 255, 0.1);
}

/* Add smooth transition for theme change */
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Update dark mode background */
body.dark-mode {
    background: linear-gradient(
        45deg,
        #1a1a1a 0%,
        #2d2d2d 50%,
        #1a1a1a 100%
    );
    color: #fff;
}

/* Add animated background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(41, 128, 185, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(30, 144, 255, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 20%, rgba(100, 149, 237, 0.2) 0%, transparent 35%);
    animation: backgroundPulse 25s ease-in-out infinite, backgroundRotate 40s linear infinite;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, rgba(74, 144, 226, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(74, 144, 226, 0.05) 87.5%, rgba(74, 144, 226, 0.05)),
        linear-gradient(150deg, rgba(74, 144, 226, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(74, 144, 226, 0.05) 87.5%, rgba(74, 144, 226, 0.05)),
        linear-gradient(30deg, rgba(74, 144, 226, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(74, 144, 226, 0.05) 87.5%, rgba(74, 144, 226, 0.05)),
        linear-gradient(150deg, rgba(74, 144, 226, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(74, 144, 226, 0.05) 87.5%, rgba(74, 144, 226, 0.05));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: meshMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    33% {
        opacity: 0.8;
        transform: scale(1.1) translateY(-20px);
    }
    66% {
        opacity: 0.9;
        transform: scale(0.95) translateY(20px);
    }
}

@keyframes backgroundRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes meshMove {
    0% {
        background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    }
    100% {
        background-position: 80px 140px, 80px 140px, 120px 210px, 120px 210px;
    }
}

/* Add floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2a3a4a, #4a90e2);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background: rgba(42, 58, 74, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav {
    background: linear-gradient(135deg, #2a3a4a, #4a90e2);
    padding: 12px 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding: 8px 18px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.logo i {
    font-size: 32px;
    color: #fff;
    transition: transform 0.3s ease;
}

.logo:hover i {
    transform: rotate(15deg);
}

.logo span {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

.logo .highlight {
    color: #ffd700;
    font-weight: 800;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
}

.logo:hover .highlight {
    animation: glow 2s infinite;
}

.logo span:last-child {
    color: #ffd700;
    font-weight: 700;
    font-style: italic;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.logo:hover span:last-child {
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.7);
}

.logo-image {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 1);
}

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

.nav-links a {
    color: #fffcfc;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 1;
    font-size: 15px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #87baf5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0.1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), #87baf5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    color: #4a90e2;
    background-color: #f0f7ff;
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Add active state for current section */
.nav-links a.active {
    color: white;
    background: linear-gradient(45deg, var(--primary-color), #87baf5);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.nav-links a.active::before,
.nav-links a.active::after {
    display: none;
}

/* Add ripple effect */
.nav-links a span {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: ripple 0.6s linear;
    z-index: -1;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, #2a3a4a, #4a90e2);
        flex-direction: column;
        padding: 70px 20px;
        transition: 0.5s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px;
        margin: 10px 0;
    }

    /* Menu toggle animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

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

    /* Overlay when menu is open */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }
}

/* Enhanced Home section with Animated Particles */
#home {
    margin-top: 65px;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(135deg, rgba(0, 4, 40, 0.05) 0%, rgba(0, 78, 146, 0.08) 100%),
        linear-gradient(225deg, rgba(26, 84, 144, 0.05) 0%, rgba(0, 4, 40, 0.08) 100%);
}

/* Animated gradient background layer */
#home::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(74, 144, 226, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(52, 152, 219, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(100, 149, 237, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 20% 20%, rgba(30, 144, 255, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(100, 149, 237, 0.1) 0%, transparent 28%);
    animation: orbitRotate 40s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Grid pattern overlay */
#home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(74, 144, 226, 0.02) 2px,
            rgba(74, 144, 226, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(74, 144, 226, 0.02) 2px,
            rgba(74, 144, 226, 0.02) 4px
        );
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* Particle container for home section */
.home-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Individual particle styles */
.home-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.8) 0%, rgba(74, 144, 226, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat var(--duration) linear infinite;
    opacity: 0;
    box-shadow: 
        0 0 10px rgba(74, 144, 226, 0.5),
        0 0 20px rgba(74, 144, 226, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
    filter: blur(0);
    transition: filter 0.3s ease;
}

/* Particle floating animation */
@keyframes particleFloat {
    0% {
        transform: translate(var(--start-x), 100vh) rotate(0deg) scale(0);
        opacity: 0;
        filter: blur(0);
    }
    5% {
        opacity: var(--opacity);
        transform: translate(var(--start-x), 95vh) rotate(20deg) scale(1);
        filter: blur(0);
    }
    25% {
        filter: blur(2px);
    }
    50% {
        opacity: var(--opacity);
        transform: translate(var(--mid-x), 50vh) rotate(180deg) scale(var(--scale));
        filter: blur(0);
    }
    75% {
        filter: blur(2px);
    }
    95% {
        opacity: var(--opacity);
        transform: translate(var(--end-x), 5vh) rotate(340deg) scale(1);
        filter: blur(0);
    }
    100% {
        transform: translate(var(--end-x), -10vh) rotate(360deg) scale(0);
        opacity: 0;
        filter: blur(0);
    }
}

/* Particle glow pulse animation */
@keyframes particleGlow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(74, 144, 226, 0.3),
            0 0 10px rgba(74, 144, 226, 0.2);
        filter: brightness(1);
    }
    50% {
        box-shadow: 
            0 0 20px rgba(74, 144, 226, 0.8), 
            0 0 30px rgba(74, 144, 226, 0.4),
            0 0 40px rgba(74, 144, 226, 0.2);
        filter: brightness(1.5);
    }
}

@keyframes mouseParticleFade {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-30px);
    }
}

@keyframes orbitRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 50px 50px, 50px 50px;
    }
}

/* Dark mode particles */
body.dark-mode .home-particle {
    background: radial-gradient(circle, rgba(100, 149, 237, 0.9) 0%, rgba(74, 144, 226, 0.5) 50%, transparent 100%);
    box-shadow: 0 0 15px rgba(100, 149, 237, 0.6);
}

body.dark-mode #home::before {
    background: 
        radial-gradient(circle at 30% 40%, rgba(100, 149, 237, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(74, 144, 226, 0.18) 0%, transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(135, 186, 245, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 20% 20%, rgba(65, 105, 225, 0.12) 0%, transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(100, 149, 237, 0.15) 0%, transparent 28%);
}

/* Responsive particle adjustments */
@media (max-width: 768px) {
    .home-particle {
        animation-duration: calc(var(--duration) * 0.8) !important;
    }
    
    #home::before {
        animation-duration: 30s;
    }
}

@media (max-width: 576px) {
    .home-particle {
        animation-duration: calc(var(--duration) * 0.6) !important;
    }
    
    #home::before {
        animation-duration: 25s;
    }
}

.home-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.home-text {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
    padding-left: 20px;
    padding-right: 10px;
}

.home-text h2 {
    font-size: 2.8rem;
    font-weight: 400;
    color: #4a90e2;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    position: relative;
}

.home-text h2::after {
    content: '👋';
    display: inline-block;
    margin-left: 10px;
    animation: wave 2s ease-in-out infinite;
}

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

.home-text h1 {
    font-size: 4.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    font-family: 'Poppins', sans-serif;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #4a90e2 50%, #87baf5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.home-text h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(74, 144, 226, 0.1) 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
    z-index: -1;
}

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

.home-text p {
    font-size: 1.8rem;
    color: #666;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
}

/* Enhanced Dynamic Typing Animation */
.typing-container {
    display: inline-block;
    position: relative;
    perspective: 1000px;
    margin-left: 5px;
    padding: 2px 0;
}

.typing-text {
    display: inline-block;
    font-weight: 600;
    color: #4a90e2;
    position: relative;
    min-width: 220px;
    text-align: left;
    background: linear-gradient(135deg, #4a90e2 0%, #3498db 50%, #87baf5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 2s ease-in-out infinite alternate;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
    transition: all 0.3s ease;
}

.typing-text::after {
    content: '|';
    display: inline-block;
    color: #4a90e2;
    animation: blink 1s infinite;
    margin-left: 3px;
    font-weight: 400;
    font-size: 1.9rem;
    text-shadow: 0 0 8px rgba(74, 144, 226, 0.5);
}

@keyframes textGlow {
    0% {
        filter: brightness(1);
        text-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
        transform: translateY(0);
    }
    100% {
        filter: brightness(1.2);
        text-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
        transform: translateY(-1px);
    }
}

@keyframes blink {
    0%, 50% { 
        opacity: 1; 
        transform: scaleY(1);
    }
    51%, 100% { 
        opacity: 0; 
        transform: scaleY(0.8);
    }
}

/* Typing animation states */
.typing-text.typing {
    animation: typeWriter 0.1s steps(1) infinite, textGlow 2s ease-in-out infinite alternate;
}

.typing-text.deleting {
    animation: typeWriter 0.05s steps(1) infinite, textGlow 2s ease-in-out infinite alternate;
}

@keyframes typeWriter {
    0% { 
        border-right: 2px solid #4a90e2; 
        transform: translateX(0);
    }
    100% { 
        border-right: 2px solid transparent; 
        transform: translateX(1px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .typing-text {
        font-size: 1.4rem;
        min-width: 180px;
        animation: 
            typing 3s steps(45, end) infinite;
    }
    
    .typing-text::after {
        font-size: 1.5rem;
    }
    
    .typing-container {
        margin-left: 3px;
    }
}

@media (max-width: 576px) {
    .typing-text {
        font-size: 1.2rem;
        min-width: 160px;
        animation: 
            typing 2.5s steps(45, end) infinite;
    }
    
    .typing-text::after {
        font-size: 1.3rem;
    }
    
    .typing-container {
        margin-left: 2px;
    }
}

.home-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease 0.8s forwards;
    padding: 40px;
    overflow: visible;
    min-height: 400px;
}

/* ID Card Container - Attached to header */
.id-card-container {
    position: relative;
    perspective: 1000px;
    animation: cardFall 2s ease-out 1.2s forwards;
    transform: translateY(-100vh) rotateZ(-15deg);
    opacity: 0;
    overflow: visible;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -80px;
}

/* ID Lanyard/Lace - BSIT Student Style - Connected to Header */
.id-lanyard {
    position: relative;
    width: 18px;
    height: 280px;
    background: linear-gradient(180deg, 
        #1e3a8a 0%, 
        #2563eb 20%, 
        #3b82f6 40%, 
        #2563eb 60%, 
        #1e3a8a 100%);
    border-radius: 4px;
    z-index: 10;
    opacity: 1;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.25),
        inset 2px 0 0 rgba(255, 255, 255, 0.3),
        inset -2px 0 0 rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(30, 58, 138, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    margin-top: -20px;
}

.id-lanyard:hover {
    transform: scale(1.02);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 2px 0 0 rgba(255, 255, 255, 0.4),
        inset -2px 0 0 rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Add connection to header */
.id-lanyard::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, rgba(42, 58, 74, 0.8) 0%, #1e3a8a 100%);
    border-radius: 2px;
    z-index: 11;
}

/* BSIT STUDENT text - vertical - Enhanced */
.id-lanyard::before {
    content: 'BSIT STUDENT';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.6),
        0 0 4px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    z-index: 3;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
}

/* Remove horizontal neck strap - keeping only vertical lanyard */

/* Metal ring at top - REMOVED */

/* ID Card Styling - Official LSPU Design - Fixed Connection */
.id-card {
    width: 300px !important;
    height: 380px !important;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #f8f9fa 30%, 
        #ffffff 70%, 
        #f1f3f4 100%) !important;
    border-radius: 16px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 35px rgba(74, 144, 226, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    margin-top: 0;
}

/* Add subtle texture overlay */
.id-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.02) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Lanyard attachment hole - Enhanced */
.lanyard-hole {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #64748b;
    border-radius: 50%;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    z-index: 2;
}

/* Remove the connection wire - not needed anymore */
.id-card::after {
    display: none;
}

/* University Header - Republic of the Philippines - Enhanced */
.university-header {
    position: absolute !important;
    top: 25px !important;
    left: 0;
    right: 0;
    text-align: center !important;
    color: #64748b !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    z-index: 2 !important;
    text-transform: uppercase;
    font-family: 'Arial', sans-serif;
}

/* University Logo - Enhanced */
.university-logo {
    position: absolute !important;
    top: 45px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 55px !important;
    height: 55px !important;
    background: radial-gradient(circle, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%) !important;
    border-radius: 50%;
    border: 3px solid #1e3a8a;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 10px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.university-logo:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.university-logo::after {
    content: 'LSPU';
    color: white;
    font-weight: 800;
    font-size: 9px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* University Name - Enhanced */
.university-name {
    position: absolute !important;
    top: 110px !important;
    left: 20px !important;
    right: 20px;
    color: #1e3a8a !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.university-subtitle {
    position: absolute !important;
    top: 155px !important;
    left: 20px !important;
    right: 20px;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600;
    text-align: center !important;
    letter-spacing: 0.5px;
    z-index: 2;
    font-family: 'Arial', sans-serif;
}

/* Remove blue header background - REMOVED CONFLICTING RULE */

/* ID Card Content - Enhanced */
.id-card-content {
    padding: 185px 25px 25px !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 18px !important;
    position: relative;
    z-index: 2;
}

.id-photo {
    width: 130px !important;
    height: 130px !important;
    border-radius: 10px;
    object-fit: cover;
    border: 4px solid #1e3a8a !important;
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.id-photo:hover {
    transform: scale(1.02);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.id-info {
    text-align: center !important;
    width: 100%;
}

.id-name {
    font-size: 17px !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    color: #1e3a8a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.id-title {
    font-size: 13px !important;
    color: #64748b !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    font-family: 'Arial', sans-serif;
}

.id-number {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 12px !important;
    color: #64748b !important;
    font-family: 'Courier New', monospace !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    background: rgba(248, 250, 252, 0.8);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Card Fall Animation */
@keyframes cardFall {
    0% {
        transform: translateY(-100vh) rotateZ(-15deg);
        opacity: 0;
    }
    60% {
        transform: translateY(20px) rotateZ(5deg);
        opacity: 1;
    }
    80% {
        transform: translateY(-10px) rotateZ(-2deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
}

/* Lanyard appear animation - removed since lanyard is always visible */

/* Hover Effects - Enhanced */
.id-card:hover {
    transform: translateY(-15px) rotateX(8deg) rotateY(8deg);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.2),
        0 20px 40px rgba(74, 144, 226, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(74, 144, 226, 0.1);
}

.id-card:hover::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
}

/* Floating Animation after landing */
.id-card-container.landed {
    animation: idFloat 6s ease-in-out infinite;
    opacity: 1;
    transform: translateY(0) rotateZ(0deg);
}

.id-card-container.landed .id-lanyard {
    animation: lanyardFloat 6s ease-in-out infinite;
}

@keyframes idFloat {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
    }
    25% {
        transform: translateY(-8px) rotateZ(1deg);
    }
    50% {
        transform: translateY(0) rotateZ(0deg);
    }
    75% {
        transform: translateY(8px) rotateZ(-1deg);
    }
}

@keyframes lanyardFloat {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
    }
    25% {
        transform: translateY(-2px) rotateZ(-1deg);
    }
    50% {
        transform: translateY(0) rotateZ(0deg);
    }
    75% {
        transform: translateY(2px) rotateZ(1deg);
    }
}

/* Dark mode styles for ID card - Enhanced */
body.dark-mode .id-card {
    background: linear-gradient(135deg, 
        #2d3748 0%, 
        #1a202c 30%, 
        #2d3748 70%, 
        #1a202c 100%);
    border-color: #4a5568;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 15px 35px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

body.dark-mode .id-card::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
}

body.dark-mode .lanyard-hole {
    background: #475569;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.6),
        0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .university-header {
    color: #e2e8f0;
}

body.dark-mode .university-name {
    color: #3b82f6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .university-subtitle {
    color: #a0aec0;
}

body.dark-mode .id-name {
    color: #3b82f6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-mode .id-title {
    color: #a0aec0;
}

body.dark-mode .id-number {
    color: #718096;
    background: rgba(26, 32, 44, 0.8);
    border-color: rgba(100, 116, 139, 0.3);
}

body.dark-mode .id-card:hover {
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(74, 144, 226, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(74, 144, 226, 0.2);
}

body.dark-mode .id-lanyard {
    background: linear-gradient(180deg, #1e3a8a 0%, #2563eb 50%, #1e3a8a 100%);
    border-color: rgba(30, 58, 138, 0.5);
}

body.dark-mode .id-lanyard::before {
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

body.dark-mode .id-lanyard::after {
    background: linear-gradient(180deg, rgba(45, 55, 72, 0.8) 0%, #1e3a8a 100%);
}

body.dark-mode .id-card::after {
    display: none;
}

/* Enhanced decorative elements for home image - removed for ID card */

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) translateZ(0);
    }
    25% {
        transform: translateY(-15px) rotate(3deg) translateZ(15px);
    }
    50% {
        transform: translateY(0) rotate(0deg) translateZ(0);
    }
    75% {
        transform: translateY(15px) rotate(-3deg) translateZ(-15px);
    }
}

/* Social Links Animation */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    color: #4a90e2;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.social-links a:hover::before {
    opacity: 1;
}

/* Responsive Typography */
@media (max-width: 992px) {
    .home-text {
        padding-left: 15px;
        padding-right: 8px;
    }
    
    .home-text h2 {
        font-size: 2rem;
    }
    
    .home-text h1 {
        font-size: 3.5rem;
    }
    
    .home-text p {
        font-size: 1.5rem;
    }
}

/* Responsive styles for ID card */
@media (max-width: 768px) {
    .id-card {
        width: 260px !important;
        height: 330px !important;
    }
    
    .lanyard-hole {
        width: 8px;
        height: 8px;
        top: 10px;
    }
    
    .id-card::after {
        width: 2px;
        height: 16px;
        top: -6px;
    }
    
    .university-header {
        font-size: 8px !important;
        top: 20px !important;
    }
    
    .university-logo {
        width: 45px !important;
        height: 45px !important;
        top: 35px !important;
    }
    
    .university-logo::after {
        font-size: 7px;
    }
    
    .university-name {
        font-size: 14px !important;
        top: 90px !important;
        left: 15px !important;
        right: 15px;
    }
    
    .university-subtitle {
        font-size: 10px !important;
        top: 125px !important;
        left: 15px !important;
        right: 15px;
    }
    
    .id-card-content {
        padding: 150px 15px 15px !important;
        gap: 12px !important;
    }
    
    .id-photo {
        width: 110px !important;
        height: 110px !important;
    }
    
    .id-name {
        font-size: 14px !important;
    }
    
    .id-title {
        font-size: 11px !important;
    }
    
    .id-number {
        font-size: 10px !important;
        bottom: 12px !important;
    }
    
    .id-card-container {
        margin-top: -60px;
    }
    
    .id-lanyard {
        height: 220px;
        width: 16px;
        margin-bottom: -2px;
        margin-top: -15px;
    }
    
    .id-lanyard::before {
        font-size: 8px;
    }
    
    .id-lanyard::after {
        top: -15px;
        height: 15px;
        width: 2px;
    }
    
    .id-card::after {
        width: 2px;
        height: 18px;
        top: -8px;
    }
        height: 16px;
    }
    
    .home-image {
        padding: 30px;
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .id-card {
        width: 240px !important;
        height: 310px !important;
    }
    
    .lanyard-hole {
        width: 6px;
        height: 6px;
        top: 8px;
    }
    
    .id-card::after {
        width: 2px;
        height: 16px;
        top: -6px;
    }
    
    .university-header {
        font-size: 7px !important;
        top: 10px !important;
    }
    
    .university-logo {
        width: 35px !important;
        height: 35px !important;
        top: 25px !important;
    }
    
    .university-logo::after {
        font-size: 6px;
    }
    
    .university-name {
        font-size: 13px !important;
        top: 70px !important;
        left: 12px !important;
        right: 12px;
    }
    
    .university-subtitle {
        font-size: 9px !important;
        top: 105px !important;
        left: 12px !important;
        right: 12px;
    }
    
    .id-card-content {
        padding: 130px 12px 12px !important;
        gap: 10px !important;
    }
    
    .id-photo {
        width: 90px !important;
        height: 90px !important;
    }
    
    .id-name {
        font-size: 13px !important;
    }
    
    .id-title {
        font-size: 10px !important;
    }
    
    .id-number {
        font-size: 9px !important;
        bottom: 10px !important;
    }
    
    .id-card-container {
        margin-top: -50px;
    }
    
    .id-lanyard {
        height: 200px;
        width: 14px;
        margin-bottom: -2px;
        margin-top: -12px;
    }
    
    .id-lanyard::before {
        font-size: 7px;
    }
    
    .id-lanyard::after {
        top: -12px;
        height: 12px;
        width: 2px;
    }
    
    .id-lanyard::after {
        top: -50px;
        width: 200px;
        height: 14px;
    }
    
    .home-image {
        padding: 20px;
        min-height: 350px;
    }
}

/* About section */
#about {
    padding: 100px 40px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.about-header h1 {
    font-size: 52px;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50 0%, #4a90e2 50%, #3498db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-header h1 span {
    background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-header h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: fadeIn 1s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-image {
    flex: 1;
    position: relative;
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 30px;
    box-shadow: 
        0 25px 50px rgba(74, 144, 226, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    border: 6px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #4a90e2, #3498db, #87baf5) border-box;
    filter: brightness(1.05) contrast(1.1);
}

.about-image:hover img {
    transform: translateY(-20px) scale(1.03) rotateY(5deg);
    box-shadow: 
        0 40px 80px rgba(74, 144, 226, 0.35),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    filter: brightness(1.1) contrast(1.15) saturate(1.1);
}

/* Enhanced decorative elements with multiple layers */
.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 60px;
    bottom: 60px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #4a90e2, #3498db, #87baf5) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    border-radius: 30px;
    z-index: 1;
    transition: all 0.6s ease;
    opacity: 0.7;
    filter: blur(0.5px);
}

.about-image::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #4a90e2 0%, #87baf5 30%, #3498db 60%, #2980b9 100%);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    z-index: 1;
    opacity: 0.12;
    animation: pulse 4s ease-in-out infinite;
    filter: blur(1px);
}

/* Add additional decorative elements */
.about-image .decoration-1 {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #3498db, #87baf5);
    border-radius: 50%;
    top: -20px;
    left: -20px;
    z-index: 1;
    opacity: 0.08;
    animation: float 6s ease-in-out infinite reverse;
}

.about-image .decoration-2 {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(225deg, #4a90e2, #2980b9);
    border-radius: 50%;
    bottom: -15px;
    left: 30px;
    z-index: 1;
    opacity: 0.1;
    animation: float 5s ease-in-out infinite;
}

.about-image .decoration-3 {
    position: absolute;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    bottom: 20px;
    right: -30px;
    z-index: 1;
    opacity: 0.3;
    border-radius: 2px;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0);
    }
    50% {
        opacity: 0.6;
        transform: translateX(10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.12;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.2;
    }
}

.about-image:hover::before {
    top: 40px;
    left: 40px;
    opacity: 0.9;
    transform: rotate(3deg);
    filter: blur(0px);
}

.about-image:hover::after {
    transform: scale(1.2);
    opacity: 0.18;
}

/* Add floating animation with enhanced effects */
@keyframes float {
    0% {
        transform: translateY(0px) rotateZ(0deg);
    }
    33% {
        transform: translateY(-12px) rotateZ(1deg);
    }
    66% {
        transform: translateY(8px) rotateZ(-1deg);
    }
    100% {
        transform: translateY(0px) rotateZ(0deg);
    }
}

.about-image img {
    animation: float 6s ease-in-out infinite;
}

/* Add a subtle glow effect on hover */
.about-image:hover img {
    box-shadow: 
        0 40px 80px rgba(74, 144, 226, 0.35),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 30px rgba(74, 144, 226, 0.3);
}

/* Add reflection effect */
.about-image .image-reflection {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
    width: 80%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(74, 144, 226, 0.1) 0%, transparent 100%);
    border-radius: 30px;
    z-index: 0;
    opacity: 0.3;
    filter: blur(2px);
    transition: all 0.6s ease;
}

.about-image:hover .image-reflection {
    opacity: 0.5;
    transform: translateX(-50%) scaleY(-1) translateY(5px);
}

.about-text {
    flex: 1.2;
    position: relative;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 25px;
    text-align: justify;
    font-weight: 400;
    position: relative;
    padding-left: 20px;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #4a90e2, #3498db);
    border-radius: 2px;
    opacity: 0.7;
}

.about-text span {
    color: #2c3e50;
    font-weight: 600;
    background: linear-gradient(135deg, #4a90e2, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-stats {
    display: flex;
    gap: 25px;
    margin-top: 50px;
}

.stat-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4a90e2, #3498db);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4a90e2, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode specific styles for about section */
body.dark-mode #about {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
}

body.dark-mode #about::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.08) 0%, transparent 50%);
}

body.dark-mode .about-content {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .about-header h1 {
    background: linear-gradient(135deg, #e2e8f0 0%, #4a90e2 50%, #3498db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .about-text p {
    color: #cbd5e0;
}

body.dark-mode .about-text span {
    background: linear-gradient(135deg, #4a90e2, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .stat-item {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.9), rgba(26, 32, 44, 0.9));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .stat-item:hover {
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
}

body.dark-mode .stat-number {
    background: linear-gradient(135deg, #4a90e2, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-mode .stat-label {
    color: #a0aec0;
}

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

/* Enhanced responsive design for about section */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        padding: 40px;
    }

    .about-header h1 {
        font-size: 44px;
    }

    .about-image {
        padding: 30px;
    }

    .about-image img {
        width: 320px;
        height: 320px;
    }

    .about-image::after {
        width: 100px;
        height: 100px;
        top: -25px;
        right: -25px;
    }

    .about-image .decoration-1 {
        width: 60px;
        height: 60px;
        top: -15px;
        left: -15px;
    }

    .about-image .decoration-2 {
        width: 45px;
        height: 45px;
        bottom: -10px;
        left: 20px;
    }

    .about-image .decoration-3 {
        width: 80px;
        right: -20px;
    }

    .about-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    #about {
        padding: 80px 20px;
    }

    .about-content {
        padding: 30px 20px;
        gap: 40px;
    }

    .about-header h1 {
        font-size: 36px;
    }

    .about-image {
        padding: 20px;
    }

    .about-image img {
        width: 280px;
        height: 280px;
    }

    .about-image::after {
        width: 80px;
        height: 80px;
        top: -20px;
        right: -20px;
    }

    .about-image .decoration-1 {
        width: 50px;
        height: 50px;
        top: -10px;
        left: -10px;
    }

    .about-image .decoration-2 {
        width: 35px;
        height: 35px;
        bottom: -8px;
        left: 15px;
    }

    .about-image .decoration-3 {
        width: 60px;
        right: -15px;
    }

    .about-text p {
        font-size: 16px;
        padding-left: 15px;
    }

    .about-stats {
        flex-direction: column;
        gap: 15px;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .about-image img {
        width: 240px;
        height: 240px;
    }

    .about-image::after {
        width: 60px;
        height: 60px;
        top: -15px;
        right: -15px;
    }

    .about-image .decoration-1 {
        width: 40px;
        height: 40px;
        top: -8px;
        left: -8px;
    }

    .about-image .decoration-2 {
        width: 30px;
        height: 30px;
        bottom: -6px;
        left: 12px;
    }

    .about-image .decoration-3 {
        width: 50px;
        right: -12px;
    }
}

/* Skills section */
#skills {
    padding: 80px 40px;
    min-height: 90vh;
    position: relative;
    background: transparent;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(52, 152, 219, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(100, 149, 237, 0.05) 0%, transparent 35%);
    z-index: 0;
    pointer-events: none;
}

.skills-container {
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.skills-header {
    text-align: center;
    margin-bottom: 50px;
}

.skills-header h1 {
    font-size: 48px;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 20px rgba(74, 144, 226, 0.5);
}

.skills-header h1 span {
    color: #4a90e2;
    text-shadow: 0 2px 20px rgba(74, 144, 226, 0.8);
}

.skills-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    border-radius: 2px;
    box-shadow: 0 2px 15px rgba(74, 144, 226, 0.6);
}

/* Dark mode for skills header */
body.dark-mode .skills-header h1 {
    color: #e2e8f0;
}

body.dark-mode .skills-header h1 span {
    color: #4a90e2;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.skill-category {
    perspective: 1000px;
}

.skill-card {
    position: relative;
    width: 100%;
    min-height: 450px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Skill card header */
.skill-card-header {
    font-size: 1.8rem;
    color: #ffffff;
    text-align: center;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.3);
    text-shadow: 0 2px 10px rgba(74, 144, 226, 0.5);
}

.skill-card-header i {
    font-size: 2rem;
    color: #4a90e2;
    filter: drop-shadow(0 2px 8px rgba(74, 144, 226, 0.6));
}

/* Dark mode for skill card */
body.dark-mode .skill-card {
    background: rgba(45, 55, 72, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .skill-card:hover {
    background: rgba(45, 55, 72, 0.5);
    box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3);
    border-color: rgba(74, 144, 226, 0.4);
}

body.dark-mode .skill-card-header {
    color: #e2e8f0;
    border-bottom-color: rgba(74, 144, 226, 0.4);
}

body.dark-mode .skill-card-header i {
    color: #4a90e2;
}

/* Carousel wrapper */
.skill-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex: 1;
    padding: 20px 0;
    min-height: 250px;
}

/* Carousel container */
.skill-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

/* Skill items container for carousel */
.skill-carousel .skill-items-container {
    display: flex;
    position: relative;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

/* Individual skill item in carousel */
.skill-carousel .skill-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%) scale(0.7);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.skill-carousel .skill-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

.skill-carousel .skill-item.prev {
    opacity: 0;
    transform: translateX(-100%) scale(0.7);
    z-index: 0;
}

.skill-carousel .skill-item.next {
    opacity: 0;
    transform: translateX(100%) scale(0.7);
    z-index: 0;
}

/* Skill info styling for carousel */
.skill-carousel .skill-info {
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 40, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    width: 100%;
    max-width: 280px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(74, 144, 226, 0.3);
}

.skill-carousel .skill-item.active .skill-info {
    animation: skillPulse 2s ease-in-out infinite;
}

@keyframes skillPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.3),
            0 0 40px rgba(74, 144, 226, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 15px 40px rgba(0, 0, 0, 0.35),
            0 0 60px rgba(74, 144, 226, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

.skill-carousel .skill-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.skill-carousel .skill-name i {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

/* Brand Colors for Each Technology Icon */

/* HTML5 - Orange */
.skill-carousel .fa-html5 {
    color: #E34F26;
}

/* CSS3 - Blue */
.skill-carousel .fa-css3-alt {
    color: #1572B6;
}

/* JavaScript - Yellow */
.skill-carousel .fa-js {
    color: #F7DF1E;
    background: #000000;
    padding: 8px;
    border-radius: 8px;
}

/* Python - Blue and Yellow */
.skill-carousel .fa-python {
    color: #3776AB;
}

/* Java - Red/Orange */
.skill-carousel .fa-java {
    color: #007396;
}

/* PHP - Purple */
.skill-carousel .fa-php {
    color: #777BB4;
}

/* MySQL/Database - Blue/Orange */
.skill-carousel .fa-database {
    color: #00758F;
}

/* VS Code - Blue */
.skill-carousel .fa-code {
    color: #007ACC;
}

/* Figma - Multicolor (using red as primary) */
.skill-carousel .fa-figma {
    color: #F24E1E;
}

/* Canva - Cyan/Blue */
.skill-carousel .fa-palette {
    color: #00C4CC;
}

/* GitHub - White/Black */
.skill-carousel .fa-github {
    color: #FFFFFF;
}

/* Android Studio - Green */
.skill-carousel .fa-android {
    color: #3DDC84;
}

/* Soft Skills Icons - Keep white or themed colors */
.skill-carousel .fa-clock {
    color: #4A90E2;
}

.skill-carousel .fa-comments {
    color: #52C41A;
}

.skill-carousel .fa-tasks {
    color: #FA8C16;
}

.skill-carousel .fa-paint-brush {
    color: #EB2F96;
}

/* Add glow effect matching icon color on hover */
.skill-carousel .skill-item.active .fa-html5 {
    filter: drop-shadow(0 4px 12px rgba(227, 79, 38, 0.6));
}

.skill-carousel .skill-item.active .fa-css3-alt {
    filter: drop-shadow(0 4px 12px rgba(21, 114, 182, 0.6));
}

.skill-carousel .skill-item.active .fa-js {
    filter: drop-shadow(0 4px 12px rgba(247, 223, 30, 0.6));
}

.skill-carousel .skill-item.active .fa-python {
    filter: drop-shadow(0 4px 12px rgba(55, 118, 171, 0.6));
}

.skill-carousel .skill-item.active .fa-java {
    filter: drop-shadow(0 4px 12px rgba(0, 115, 150, 0.6));
}

.skill-carousel .skill-item.active .fa-php {
    filter: drop-shadow(0 4px 12px rgba(119, 123, 180, 0.6));
}

.skill-carousel .skill-item.active .fa-database {
    filter: drop-shadow(0 4px 12px rgba(0, 117, 143, 0.6));
}

.skill-carousel .skill-item.active .fa-code {
    filter: drop-shadow(0 4px 12px rgba(0, 122, 204, 0.6));
}

.skill-carousel .skill-item.active .fa-figma {
    filter: drop-shadow(0 4px 12px rgba(242, 78, 30, 0.6));
}

.skill-carousel .skill-item.active .fa-palette {
    filter: drop-shadow(0 4px 12px rgba(0, 196, 204, 0.6));
}

.skill-carousel .skill-item.active .fa-github {
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.6));
}

.skill-carousel .skill-item.active .fa-android {
    filter: drop-shadow(0 4px 12px rgba(61, 220, 132, 0.6));
}

.skill-carousel .skill-item.active .fa-clock {
    filter: drop-shadow(0 4px 12px rgba(74, 144, 226, 0.6));
}

.skill-carousel .skill-item.active .fa-comments {
    filter: drop-shadow(0 4px 12px rgba(82, 196, 26, 0.6));
}

.skill-carousel .skill-item.active .fa-tasks {
    filter: drop-shadow(0 4px 12px rgba(250, 140, 22, 0.6));
}

.skill-carousel .skill-item.active .fa-paint-brush {
    filter: drop-shadow(0 4px 12px rgba(235, 47, 150, 0.6));
}

/* Carousel navigation buttons */
.carousel-btn {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(52, 152, 219, 0.9));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(74, 144, 226, 0.4),
        0 0 20px rgba(74, 144, 226, 0.2);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(74, 144, 226, 1), rgba(52, 152, 219, 1));
    box-shadow: 
        0 6px 20px rgba(74, 144, 226, 0.6),
        0 0 30px rgba(74, 144, 226, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn i {
    pointer-events: none;
}

/* Carousel indicators */
.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
}

.carousel-indicator:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}







/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        min-height: 420px;
    }
    
    .skill-card-header {
        font-size: 1.5rem;
        gap: 10px;
    }
    
    .skill-card-header i {
        font-size: 1.7rem;
    }
    
    .skill-carousel-wrapper {
        min-height: 220px;
    }
    
    .skill-carousel {
        height: 200px;
    }
    
    .skill-carousel .skill-info {
        padding: 30px 20px;
        max-width: 220px;
        min-height: 160px;
    }
    
    .skill-carousel .skill-name {
        font-size: 1.1rem;
        gap: 10px;
    }
    
    .skill-carousel .skill-name i {
        font-size: 2.8rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .skill-card {
        min-height: 380px;
        padding: 25px 20px;
    }
    
    .skill-card-header {
        font-size: 1.3rem;
        gap: 8px;
        padding-bottom: 15px;
    }
    
    .skill-card-header i {
        font-size: 1.5rem;
    }
    
    .skill-carousel-wrapper {
        min-height: 200px;
        padding: 15px 0;
    }
    
    .skill-carousel {
        height: 180px;
    }
    
    .skill-carousel .skill-info {
        padding: 25px 15px;
        max-width: 200px;
        min-height: 140px;
    }
    
    .skill-carousel .skill-name {
        font-size: 1rem;
        gap: 8px;
    }
    
    .skill-carousel .skill-name i {
        font-size: 2.3rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .skill-carousel-wrapper {
        gap: 10px;
    }
}

/* Projects section */
#projects {
    padding: 80px 60px;
    min-height: 90vh;
}

.projects-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
}

.projects-header h1 {
    font-size: 48px;
    color: #7baddf;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.projects-header h1 span {
    color: #4a90e2;
}

.projects-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4a90e2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 40px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.project-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.15);
}

/* Project image carousel */
.project-image-carousel {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.project-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-images .project-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    z-index: 0;
}

.project-images .project-image.active {
    display: block;
    z-index: 2;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.project-images .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

/* Project carousel buttons - HIDDEN but functional */
.project-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 144, 226, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.project-prev {
    left: 10px;
}

.project-next {
    right: 10px;
}

.project-carousel-btn:hover {
    background: rgba(74, 144, 226, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.5);
}

.project-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Project carousel dots - HIDDEN but functional */
.project-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.project-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.project-carousel-dot.active {
    background: rgba(74, 144, 226, 1);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.6);
}

.project-carousel-dot:hover {
    background: rgba(74, 144, 226, 0.8);
    transform: scale(1.2);
}

/* Update project placeholder for carousel */
.project-image .project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(52, 152, 219, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-image .project-placeholder i {
    font-size: 3rem;
    animation: pulse 2s ease-in-out infinite;
}

.project-card:hover .project-image.active .project-placeholder {
    opacity: 1;
}

.project-card:hover .project-image.active img {
    transform: scale(1.05);
    filter: blur(2px);
}

.project-content {
    padding: 35px;
}

.project-title {
    color: #2c3e50;
    font-size: 26px;
    margin-bottom: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.project-description {
    color: #666;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.project-tag {
    background: rgba(74, 144, 226, 0.1);
    color: #3498db;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}
    color: #3498db;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #2c3e50;
}

.project-link i {
    font-size: 18px;
}

/* Dark mode styles for project cards */
body.dark-mode .project-card {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-card:hover {
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}

body.dark-mode .project-title {
    color: #e0e0e0;
}

body.dark-mode .project-description {
    color: #b0b0b0;
}

body.dark-mode .project-tag {
    background: rgba(74, 144, 226, 0.2);
    color: #87baf5;
}

/* Responsive design for projects section */
@media (max-width: 1800px) {
    .projects-grid {
        max-width: 1600px;
        gap: 45px;
    }
}

@media (max-width: 1600px) {
    .projects-grid {
        max-width: 1400px;
        gap: 40px;
    }
}

@media (max-width: 1400px) {
    .projects-grid {
        max-width: 1200px;
        gap: 35px;
        padding: 0 30px;
    }
    
    #projects {
        padding: 80px 40px;
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        gap: 30px;
        padding: 0 20px;
    }
    
    .project-image-carousel {
        height: 280px;
    }
}

@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .project-image-carousel {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 15px;
    }
    
    #projects {
        padding: 80px 20px;
    }
    
    .project-image-carousel {
        height: 250px;
    }
    
    .project-content {
        padding: 30px;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-description {
        font-size: 16px;
    }
    
    /* Carousel buttons stay hidden on mobile */
    .project-carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        background: rgba(74, 144, 226, 0.95);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .project-prev {
        left: 8px;
    }
    
    .project-next {
        right: 8px;
    }
    
    .project-carousel-dots {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@media (max-width: 576px) {
    .project-content {
        padding: 25px;
    }
    
    .project-title {
        font-size: 22px;
    }
    
    .project-description {
        font-size: 15px;
    }
    
    /* Carousel buttons stay hidden on small screens */
    .project-carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .project-prev {
        left: 5px;
    }
    
    .project-next {
        right: 5px;
    }
}

/* Education section */
#education {
    padding: 80px 40px;
    min-height: 90vh;
}

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

.education-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.education-header.animate {
    opacity: 1;
    transform: translateY(0);
}

.education-header h1 {
    font-size: 48px;
    color: #7baddf;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    animation: textShimmer 3s ease-in-out infinite;
}

.education-header h1 span {
    color: #4a90e2;
}

.education-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 3px;
    background: #4a90e2;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.education-header.animate h1::after {
    transform: translateX(-50%) scaleX(1);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, #4a90e2 10%, #4a90e2 90%, transparent 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.timeline.animate::after {
    transform: translateX(-50%) scaleY(1);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(1).animate {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(2).animate {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(3).animate {
    transition-delay: 0.6s;
}

.timeline-item:nth-child(4).animate {
    transition-delay: 0.8s;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(odd):not(.animate) {
    transform: translateX(-100px) translateY(50px);
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even):not(.animate) {
    transform: translateX(100px) translateY(50px);
}

.timeline-content {
    padding: 30px;
    background: rgba(248, 249, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
    border-color: rgba(74, 144, 226, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    top: 50%;
    transform: rotate(45deg) translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #4a90e2, #3498db);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0);
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2), 0 0 20px rgba(74, 144, 226, 0.4);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.timeline-item.animate .timeline-dot {
    transform: translateY(-50%) scale(1);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2), 0 0 20px rgba(74, 144, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(74, 144, 226, 0.3), 0 0 30px rgba(74, 144, 226, 0.6);
    }
}

@keyframes ripple {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -55px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -55px;
}

.timeline-date {
    color: #3498db;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.timeline-item.animate .timeline-date {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.timeline-title {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.timeline-item.animate .timeline-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.timeline-school {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.timeline-item.animate .timeline-school {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

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

/* Responsive design for education section */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd):not(.animate),
    .timeline-item:nth-child(even):not(.animate) {
        transform: translateX(-50px) translateY(50px);
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 15px;
    }

    .timeline-content::after {
        left: -10px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after {
        right: auto;
        left: -10px;
    }
}

/* Certificates Section */
#certificates {
    padding: 80px 40px;
    min-height: 90vh;
}

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

.certificates-header {
    text-align: center;
    margin-bottom: 60px;
}

.certificates-header h1 {
    font-size: 48px;
    color: #7baddf;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.certificates-header h1 span {
    color: #4a90e2;
}

.certificates-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4a90e2;
}

.certificates-header p {
    color: #666;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(45deg, #4a90e2, #87baf5);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.15);
}

.certificate-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.1);
}

.certificate-content {
    padding: 25px;
}

.certificate-title {
    color: #2c3e50;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.certificate-issuer {
    color: #4a90e2;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.certificate-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.certificate-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.certificate-card:hover .skill-badge {
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.05);
}

/* Dark mode styles for certificates section */
body.dark-mode .certificate-card {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .certificate-card:hover {
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}

body.dark-mode .certificate-title {
    color: #e0e0e0;
}

body.dark-mode .certificate-issuer {
    color: #87baf5;
}

body.dark-mode .certificate-date {
    color: #b0b0b0;
}

body.dark-mode .skill-badge {
    background: rgba(74, 144, 226, 0.2);
    color: #87baf5;
}

body.dark-mode .certificates-header p {
    color: #b0b0b0;
}

/* Responsive design for certificates section */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-image {
        height: 180px;
    }
    
    .certificate-content {
        padding: 20px;
    }
    
    .certificates-header h1 {
        font-size: 36px;
    }
    
    .certificates-header p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .certificate-image {
        height: 160px;
    }
    
    .certificate-content {
        padding: 15px;
    }
    
    .certificate-title {
        font-size: 20px;
    }
    
    .certificate-issuer {
        font-size: 15px;
    }
}

/* Contact Section Styles */
#contacts {
    padding: 80px 40px;
    min-height: 90vh;
    position: relative;
}

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

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

.contacts-header h1 {
    font-size: 3rem;
    color: #7baddf;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.contacts-header h1 span {
    color: #4a90e2;
}

.contacts-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.15);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.contact-info h2 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Dark mode styles for contact section */
body.dark-mode .contact-card {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .contact-card:hover {
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.25);
}

body.dark-mode .contact-icon {
    background: rgba(74, 144, 226, 0.2);
}

body.dark-mode .contact-icon i {
    color: #87baf5;
}

body.dark-mode .contact-info h2 {
    color: #e0e0e0;
}

body.dark-mode .contact-info p {
    color: #b0b0b0;
}

body.dark-mode .contact-form-container {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .contact-form-container h2 {
    color: #e0e0e0;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a90e2;
    background: white;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.field-error::before {
    content: '⚠️';
    font-size: 0.75rem;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    background: linear-gradient(45deg, #4a90e2, #87baf5);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Form status messages */
.form-status {
    margin-top: 2rem;
    text-align: center;
}

.success-message,
.error-message,
.loading-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading-message {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.success-message i {
    color: #28a745;
}

.error-message i {
    color: #dc3545;
}

.loading-message i {
    color: #17a2b8;
}

/* Dark mode styles for status messages */
body.dark-mode .success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(40, 167, 69, 0.1));
    color: #90ee90;
    border-color: rgba(40, 167, 69, 0.3);
}

body.dark-mode .error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    color: #ffb3b3;
    border-color: rgba(220, 53, 69, 0.3);
}

body.dark-mode .loading-message {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.2), rgba(23, 162, 184, 0.1));
    color: #87ceeb;
    border-color: rgba(23, 162, 184, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading .btn-text {
    opacity: 0.7;
}

.submit-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .contacts-header h1 {
        font-size: 2.5rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2a3a4a, #4a90e2);
    color: #fff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

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

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #87baf5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo p {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 0.95rem;
}

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

.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-social a:hover {
    transform: translateY(-3px);
    color: #87baf5;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: #87baf5;
    font-weight: 600;
}

/* Dark mode styles for footer section */
body.dark-mode footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
}

body.dark-mode .footer-logo p {
    color: #b0b0b0;
}

body.dark-mode .footer-social a {
    color: #e0e0e0;
}

body.dark-mode .timeline-school {
    color: #b0b0b0;
}

.resume-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Enhanced Resume Buttons */
.resume-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 10;
}

.resume-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4a90e2 0%, #3498db 50%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: none;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    opacity: 1;
    z-index: 10;
}

@keyframes buttonReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    }
    50% {
        box-shadow: 0 8px 35px rgba(74, 144, 226, 0.5), 0 0 20px rgba(74, 144, 226, 0.3);
    }
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.resume-btn:hover::before {
    left: 100%;
}

.resume-btn i:first-child {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.resume-btn .btn-text {
    transition: transform 0.3s ease;
    font-weight: 600;
}

.resume-btn .btn-icon {
    position: absolute;
    right: -25px;
    opacity: 0;
    transition: all 0.4s ease;
    font-size: 1.1rem;
}

.resume-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5), 0 0 30px rgba(74, 144, 226, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    animation: none;
}

/* Prevent About Me button from being affected by CV button hover */
.resume-btn:not(.about-btn):hover {
    transform: translateY(-8px) scale(1.05);
}

.about-btn:hover {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #f8f9fa 100%);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4), 0 0 30px rgba(74, 144, 226, 0.2);
    border-color: #3498db;
}

.about-btn:active {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
}

.resume-btn:active {
    transform: translateY(-3px) scale(1.02);
}

.resume-btn:not(.about-btn):hover .btn-text {
    transform: translateX(-8px);
}

.resume-btn:not(.about-btn):hover .btn-icon {
    right: 18px;
    opacity: 1;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4a90e2 0%, #3498db 50%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.download-btn:hover::before {
    transform: scale(1);
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-btn i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.download-btn:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* Dark mode styles for resume buttons */
body.dark-mode .resume-btn {
    background: linear-gradient(45deg, #87baf5, #4a90e2);
    box-shadow: 0 4px 15px rgba(135, 186, 245, 0.3);
}

body.dark-mode .resume-btn:hover {
    box-shadow: 0 6px 20px rgba(135, 186, 245, 0.4);
}

body.dark-mode .download-btn {
    background: linear-gradient(45deg, #87baf5, #4a90e2);
    box-shadow: 0 4px 15px rgba(135, 186, 245, 0.3);
}

/* About Me Button Specific Styles */
.about-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
    color: #4a90e2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #4a90e2;
    overflow: visible !important;
    z-index: 15 !important;
    pointer-events: auto !important;
    opacity: 1;
    transition: none;
}

@keyframes aboutButtonPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 8px 35px rgba(74, 144, 226, 0.3), 0 0 20px rgba(74, 144, 226, 0.2);
    }
}

/* Fix About Me button - prevent text shift and icon overlap */
.about-btn .btn-text {
    transform: translateX(0) !important;
}

.about-btn:hover .btn-text {
    transform: translateX(0) !important;
}

.about-btn .btn-icon {
    position: relative !important;
    right: 0 !important;
    opacity: 1 !important;
    margin-left: 0.3rem;
}

.about-btn:hover .btn-icon {
    right: 0 !important;
    opacity: 1 !important;
    transform: translateX(3px);
}

body.dark-mode .about-btn {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #171923 100%);
    color: #87baf5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid #87baf5;
    overflow: visible !important;
}

body.dark-mode .about-btn:hover {
    background: linear-gradient(135deg, #2d3748 0%, #2d3748 50%, #1a202c 100%);
    box-shadow: 0 15px 40px rgba(135, 186, 245, 0.4), 0 0 30px rgba(135, 186, 245, 0.2);
    border-color: #4a90e2;
}

body.dark-mode .about-btn:active {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 50%, #171923 100%);
}
body.dark-mode .download-btn:hover {
    box-shadow: 0 6px 20px rgba(135, 186, 245, 0.4);
}

/* Responsive styles for resume buttons */
@media (max-width: 768px) {
    .resume-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .resume-btn,
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Additional responsive adjustments */
@media (max-width: 992px) {
    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .home-image {
        order: -1;
    }

    .home-image img {
        max-width: 300px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image {
        margin-bottom: 30px;
    }

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

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .home-text h1 {
        font-size: 2.5rem;
    }

    .home-text h2 {
        font-size: 1.5rem;
    }

    .home-text p {
        font-size: 1.1rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form-container {
        padding: 20px;
    }
}

/* Image Hover Modal Styles with Carousel */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    cursor: default;
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.modal-image-container {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-modal img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-image-info {
    background: rgba(74, 144, 226, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.image-modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.image-modal-close:active {
    transform: scale(0.95);
}

/* Modal carousel buttons */
.modal-carousel-btn {
    background: rgba(74, 144, 226, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.modal-carousel-btn:hover {
    background: rgba(74, 144, 226, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.modal-carousel-btn:active {
    transform: scale(0.95);
}

.modal-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal-carousel-btn:disabled:hover {
    transform: scale(1);
    background: rgba(74, 144, 226, 0.9);
}

/* Hover effect for images */
.hoverable-image {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hoverable-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hoverable-image:hover::after {
    opacity: 1;
}

.hoverable-image:hover {
    transform: scale(1.05);
    filter: brightness(0.8);
}

/* Apply hover effect to project and certificate images only */
.project-image img,
.certificate-image img {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-image,
.certificate-image {
    position: relative;
    cursor: pointer;
}

.project-image::after,
.certificate-image::after {
    content: '🔍 Click to view';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.project-image:hover::after,
.certificate-image:hover::after {
    opacity: 1;
}

.project-image:hover img,
.certificate-image:hover img {
    filter: brightness(0.7);
    transform: scale(1.02);
}

/* Mobile responsive adjustments for image modal */
@media (max-width: 768px) {
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 20px;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 95%;
        margin: 20px;
    }
    
    .image-modal img {
        border-radius: 5px;
    }
    
    .project-image::after,
    .certificate-image::after {
        content: '👆 Tap to view';
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .image-modal-close {
        top: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .project-image::after,
    .certificate-image::after {
        content: '👆';
        padding: 8px;
        font-size: 16px;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    #home, #about, #skills, #projects, #education, #contacts {
        padding: 60px 20px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    #home, #about, #skills, #projects, #education, #contacts {
        padding: 40px 15px;
    }
}

/* New Centered Home Section Layout - Magazine Style */
#home {
    overflow-x: hidden;
}

#home .home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 40px;
    position: relative;
    padding: 0;
    margin: 0;
}

.home-hero-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 600px;
    padding: 0;
    margin: 0;
    animation: heroEntrance 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.name-background {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 1;
    text-align: left;
    width: 100vw;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.name-background-bottom {
    position: absolute;
    top: 45%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
    text-align: left;
    width: 100vw;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.hero-name {
    font-size: 10vw;
    font-weight: 900;
    color: rgba(74, 144, 226, 0.12);
    line-height: 1;
    letter-spacing: 0.1em;
    margin: 0;
    padding: 0 10px 0 20px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    animation: nameReveal 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-indent: 0;
    position: relative;
}

.hero-name::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgba(74, 144, 226, 0.3);
    filter: blur(10px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

.hero-name-top {
    font-size: 6vw;
    animation-delay: 0.3s;
    transform-origin: left center;
}

.hero-name-bottom {
    font-size: 13vw;
    letter-spacing: 0.15em;
    animation-delay: 0.6s;
    transform-origin: left center;
}

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.8) rotateY(-20deg);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: translateX(10px) scale(1.05) rotateY(5deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1) rotateY(0deg);
        filter: blur(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    width: 550px;
    max-width: 90%;
    height: auto;
    opacity: 0;
    animation: photoReveal 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
    margin-top: 20px;
    filter: drop-shadow(0 20px 40px rgba(74, 144, 226, 0.3));
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, transparent 70%);
    animation: photoGlow 3s ease-in-out infinite;
    z-index: -1;
    border-radius: 50%;
}

@keyframes photoReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(50px) rotateZ(-10deg);
        filter: drop-shadow(0 0 0 rgba(74, 144, 226, 0)) blur(20px);
    }
    60% {
        opacity: 0.9;
        transform: scale(1.1) translateY(-10px) rotateZ(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateZ(0deg);
        filter: drop-shadow(0 20px 40px rgba(74, 144, 226, 0.3)) blur(0);
    }
}

@keyframes photoGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.hero-photo {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: photoFloat 6s ease-in-out infinite;
}

@keyframes photoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.hero-image-wrapper:hover .hero-photo {
    transform: scale(1.08) rotateZ(2deg);
    filter: brightness(1.1);
}

.typing-info-left {
    position: absolute;
    top: 62%;
    left: 50px;
    z-index: 20;
    text-align: left;
    opacity: 0;
    animation: slideInLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
    pointer-events: auto;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-80px) scale(0.9);
        filter: blur(10px);
    }
    60% {
        opacity: 0.9;
        transform: translateX(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.typing-info-left p {
    font-size: 2rem;
    color: #e0e0e0;
    margin: 0 0 20px 0;
    opacity: 0;
    animation: textSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s forwards;
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

.typing-info-left .social-links {
    display: flex;
    gap: 1rem;
    opacity: 1;
    animation: none;
    margin-bottom: 20px;
}

.typing-info-left .social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    color: #4a90e2;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: socialIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.typing-info-left .social-links a:nth-child(1) { animation-delay: 1.4s; }
.typing-info-left .social-links a:nth-child(2) { animation-delay: 1.5s; }
.typing-info-left .social-links a:nth-child(3) { animation-delay: 1.6s; }
.typing-info-left .social-links a:nth-child(4) { animation-delay: 1.7s; }
.typing-info-left .social-links a:nth-child(5) { animation-delay: 1.8s; }

@keyframes socialIconPop {
    0% {
        opacity: 0;
        transform: scale(0) rotateZ(-180deg);
    }
    70% {
        transform: scale(1.2) rotateZ(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateZ(0deg);
    }
}

.typing-info-left .social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    color: #4a90e2;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.typing-info-left .social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.typing-info-left .social-links a:hover::before {
    width: 100px;
    height: 100px;
}

.typing-info-left .social-links a:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-8px) scale(1.15) rotateZ(5deg);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.typing-info-left .social-links a:active {
    transform: translateY(-5px) scale(1.05);
}

.typing-info-left .resume-buttons {
    display: flex;
    gap: 1rem;
    opacity: 1;
    animation: none;
    position: relative;
    z-index: 25;
    pointer-events: auto;
}
.hero-info {
    position: relative;
    z-index: 3;
    text-align: center;
    margin-top: 30px;
    max-width: 700px;
    padding: 0 20px;
}

.hero-info h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-info p {
    font-size: 1.1rem;
    color: #b0b0b0;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.home-bottom-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0 20px;
}

.home-bottom-section .social-links {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.4s forwards;
}

.home-bottom-section .social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    color: #4a90e2;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.home-bottom-section .social-links a:hover {
    background: #4a90e2;
    color: white;
    transform: translateY(-3px);
}

.home-bottom-section .resume-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.6s forwards;
}

/* Dark mode adjustments */
body.dark-mode .hero-name {
    color: rgba(74, 144, 226, 0.15);
}

body.dark-mode .hero-info h2 {
    color: #e0e0e0;
}

/* Responsive adjustments for new layout */
@media (max-width: 1200px) {
    .hero-name {
        font-size: 9vw;
    }
    
    .hero-name-bottom {
        font-size: 12vw;
    }
    
    .hero-image-wrapper {
        width: 500px;
    }
    
    .name-background {
        top: 40px;
    }
    
    .typing-info-left {
        top: 60%;
    }
}

@media (max-width: 992px) {
    .hero-name {
        font-size: 8vw;
    }
    
    .hero-name-bottom {
        font-size: 11vw;
    }
    
    .hero-image-wrapper {
        width: 450px;
    }
    
    .hero-info h2 {
        font-size: 1.8rem;
    }
    
    .hero-info p {
        font-size: 1.2rem;
    }
    
    .name-background {
        top: 35px;
    }
    
    .typing-info-left {
        top: 59%;
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 12vw;
        letter-spacing: 0.05em;
    }
    
    .hero-name-top {
        font-size: 8vw;
    }
    
    .hero-name-bottom {
        font-size: 15vw;
        letter-spacing: 0.1em;
    }
    
    .hero-image-wrapper {
        width: 380px;
    }
    
    .hero-info h2 {
        font-size: 1.5rem;
    }
    
    .hero-info p {
        font-size: 1.1rem;
    }
    
    .hero-info .hero-description {
        font-size: 1rem;
    }
    
    .name-background {
        top: 30px;
    }
    
    .typing-info-left {
        top: 58%;
    }
    
    .typing-info-left p {
        font-size: 1.6rem;
    }
    
    .home-hero-center {
        min-height: 500px;
    }
}

@media (max-width: 576px) {
    .home-hero-center {
        min-height: 450px;
    }
    
    .hero-name {
        font-size: 14vw;
        letter-spacing: 0.02em;
    }
    
    .hero-name-top {
        font-size: 9vw;
    }
    
    .hero-name-bottom {
        font-size: 17vw;
        letter-spacing: 0.05em;
    }
    
    .hero-image-wrapper {
        width: 320px;
    }
    
    .hero-info h2 {
        font-size: 1.3rem;
    }
    
    .hero-info p {
        font-size: 1rem;
    }
    
    .hero-info .hero-description {
        font-size: 0.95rem;
    }
    
    .home-bottom-section .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .name-background {
        top: 25px;
    }
    
    .typing-info-left {
        top: 57%;
    }
    
    .typing-info-left p {
        font-size: 1.3rem;
    }
}
