/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--md-sys-color-primary), var(--md-sys-color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.spinner-ring {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite, rainbow 3s ease-in-out infinite;
    position: relative;
}

.spinner-ring::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid transparent;
    border-top: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: spin 2s linear infinite reverse;
}

@keyframes rainbow {
    0%, 100% { border-top-color: #2fcaef; }
    25% { border-top-color: #66d8f3; }
    50% { border-top-color: #008dda; }
    75% { border-top-color: #00b6e9; }
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Custom Color Palette Design Tokens */
:root {
    /* Primary Colors */
    --md-sys-color-primary: #008dda;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-primary-container: #66d8f3;
    --md-sys-color-on-primary-container: #05224c;
    
    /* Secondary Colors */
    --md-sys-color-secondary: #0078d0;
    --md-sys-color-on-secondary: #ffffff;
    --md-sys-color-secondary-container: #2fcaef;
    --md-sys-color-on-secondary-container: #093760;
    
    /* Tertiary Colors */
    --md-sys-color-tertiary: #00b6e9;
    --md-sys-color-on-tertiary: #ffffff;
    --md-sys-color-tertiary-container: #35c9ee;
    --md-sys-color-on-tertiary-container: #05224c;
    
    /* Surface Colors */
    --md-sys-color-surface: #ffffff;
    --md-sys-color-on-surface: #05224c;
    --md-sys-color-surface-variant: #66d8f2;
    --md-sys-color-on-surface-variant: #093760;
    
    /* Accent Colors */
    --md-sys-color-accent: #009bde;
    --md-sys-color-accent-light: #12ade5;
    --md-sys-color-accent-lighter: #16a7e3;
    --md-sys-color-accent-lightest: #66d7f2;
    
    /* Outline Colors */
    --md-sys-color-outline: #0079d0;
    --md-sys-color-outline-variant: #66d8f2;
    
    /* Background Colors */
    --md-sys-color-background: #ffffff;
    --md-sys-color-on-background: #05224c;
    
    /* Material 3 Elevation */
    --md-sys-elevation-level0: 0px 0px 0px 0px rgba(5, 34, 76, 0.2), 0px 0px 0px 0px rgba(5, 34, 76, 0.14), 0px 0px 0px 0px rgba(5, 34, 76, 0.12);
    --md-sys-elevation-level1: 0px 2px 1px -1px rgba(5, 34, 76, 0.2), 0px 1px 1px 0px rgba(5, 34, 76, 0.14), 0px 1px 3px 0px rgba(5, 34, 76, 0.12);
    --md-sys-elevation-level2: 0px 3px 1px -2px rgba(5, 34, 76, 0.2), 0px 2px 2px 0px rgba(5, 34, 76, 0.14), 0px 1px 5px 0px rgba(5, 34, 76, 0.12);
    --md-sys-elevation-level3: 0px 3px 3px -2px rgba(5, 34, 76, 0.2), 0px 3px 4px 0px rgba(5, 34, 76, 0.14), 0px 1px 8px 0px rgba(5, 34, 76, 0.12);
    
    /* Material 3 Shape */
    --md-sys-shape-corner-none: 0px;
    --md-sys-shape-corner-extra-small: 4px;
    --md-sys-shape-corner-small: 8px;
    --md-sys-shape-corner-medium: 12px;
    --md-sys-shape-corner-large: 16px;
    --md-sys-shape-corner-extra-large: 28px;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface);
    background-color: var(--md-sys-color-surface);
    overflow-x: hidden;
}

/* Material 3 Typography Scale */
.display-large {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 57px;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: -0.25px;
}

.display-medium {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 52px;
    letter-spacing: 0px;
}

.display-small {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: 0px;
}

.headline-large {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0px;
}

.headline-medium {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 0px;
}

.headline-small {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0px;
}

.title-large {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0px;
}

.title-medium {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.15px;
}

.title-small {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.body-large {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
}

.body-medium {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0.25px;
}

.body-small {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: 0.4px;
}

.label-large {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
}

.label-medium {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.5px;
}

.label-small {
    font-family: 'Roboto', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: 0.5px;
}

/* Apply Material 3 Typography to Elements */
h1, .hero-title {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 57px;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: -0.25px;
}

h2, .section-title {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 52px;
    letter-spacing: 0px;
}

h3 {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
    letter-spacing: 0px;
}

h4 {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 40px;
    letter-spacing: 0px;
}

h5 {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: 0px;
}

h6 {
    font-family: 'Roboto Flex', 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0px;
}

p, .body-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
}

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

/* Navigation */
/* Material 3 Navigation - Hidden by default, shows on scroll */
.navbar {
    position: fixed;
    top: -80px; /* Hidden above viewport */
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 141, 218, 0.1);
}

.navbar.nav-visible {
    top: 0;
    transform: translateY(0);
    animation: navSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.nav-hidden {
    top: -80px;
    transform: translateY(-20px);
}

@keyframes navSlideDown {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.nav-logo h3 {
    color: var(--md-sys-color-primary);
    font-family: 'Roboto Flex', sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: 0px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--md-sys-color-on-surface);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 12px 16px;
    border-radius: var(--md-sys-shape-corner-small);
    min-height: 44px; /* Touch-friendly minimum size */
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-primary-container);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--md-sys-color-primary);
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--md-sys-color-on-surface);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
/* Material 3 Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 40px 40px; /* Removed top padding since navbar is hidden */
    background: linear-gradient(135deg, #2fcaef 0%, #66d8f3 25%, #008dda 50%, #00b6e9 75%, #2fcaef 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease-in-out infinite;
    color: var(--md-sys-color-on-primary);
    position: relative;
    overflow: hidden;
}

/* Artistic floating orbs */
.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 40%, transparent 70%);
    border-radius: 50%;
    top: -10%;
    left: -10%;
    animation: floatOrb1 15s ease-in-out infinite;
    filter: blur(1px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 50%, transparent 70%);
    border-radius: 50%;
    bottom: -5%;
    right: -5%;
    animation: floatOrb2 18s ease-in-out infinite;
    filter: blur(0.5px);
}

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

@keyframes floatOrb1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, -60px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(-40px, -20px) rotate(270deg) scale(1.05);
    }
}

@keyframes floatOrb2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-25px, 35px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(40px, -25px) rotate(240deg) scale(0.85);
    }
}

/* Artistic Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 40%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
}

.particle-1 {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 10%;
    animation: particleFloat1 8s linear infinite;
}

.particle-2 {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation: particleFloat2 12s linear infinite;
}

.particle-3 {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 60%;
    animation: particleFloat3 10s linear infinite;
}

.particle-4 {
    width: 5px;
    height: 5px;
    top: 70%;
    left: 20%;
    animation: particleFloat4 15s linear infinite;
}

.particle-5 {
    width: 4px;
    height: 4px;
    top: 30%;
    left: 90%;
    animation: particleFloat5 9s linear infinite;
}

.particle-6 {
    width: 7px;
    height: 7px;
    top: 80%;
    left: 50%;
    animation: particleFloat6 11s linear infinite;
}

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

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

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

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

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

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

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    opacity: 0;
    animation: typewriterEffect 2s ease-out 0.5s forwards;
}

.highlight {
    background: linear-gradient(135deg, #2fcaef, #16a7e3, #35c9ee, #66d7f2);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease-in-out infinite;
}

.hero-name {
    color: #000000;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #e5e7eb;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: slideInUp 1.5s ease-out 1s forwards;
}

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

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

@keyframes glow {
    0% {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }
    100% {
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.5);
    }
}

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

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

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.hero-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #f3f4f6;
    line-height: 1.8;
}

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

/* Material 3 Buttons */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--md-sys-shape-corner-extra-large);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 40px;
}

.btn-primary {
    background: #ffffff;
    color: #008dda;
    box-shadow: var(--md-sys-elevation-level2);
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background: #008dda;
    color: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 141, 218, 0.4);
    transform: translateY(-3px) scale(1.02);
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
    transition-duration: 0.1s;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ffffff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #ffffff;
    color: #008dda;
    border-color: #ffffff;
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.02);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(1.01);
    transition-duration: 0.1s;
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

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

/* Sections */
.section {
    padding: 120px 0;
    scroll-margin-top: 20px; /* Reduced offset since navbar is now dynamic */
}

.bg-light {
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(47, 202, 239, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(0, 141, 218, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 75% 25%, rgba(102, 216, 243, 0.02) 0%, transparent 25%);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: backgroundFloat 20s ease-in-out infinite;
}

.bg-dark {
    background-color: #05224c;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(47, 202, 239, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 80% 20%, rgba(0, 155, 222, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 40% 40%, rgba(102, 215, 242, 0.03) 0%, transparent 25%);
    background-size: 120px 120px, 180px 180px, 250px 250px;
    color: #ffffff;
    animation: backgroundFloat 25s ease-in-out infinite reverse;
}

@keyframes backgroundFloat {
    0%, 100% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 20px 20px, -10px 30px, 15px -25px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1f2937;
    letter-spacing: -1px;
    line-height: 1.2;
}

.bg-dark .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.3px;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 3rem;
}

.bg-dark .section-subtitle {
    color: #d1d5db;
}

/* Artistic Section Dividers */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    background: transparent;
}

.divider-line {
    height: 2px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent 0%, var(--md-sys-color-primary) 50%, transparent 100%);
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

.divider-orb {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--md-sys-color-primary) 0%, var(--md-sys-color-secondary) 100%);
    border-radius: 50%;
    margin: 0 20px;
    animation: orbPulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 141, 218, 0.5);
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
}

/* Education Section */
.education-container {
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: var(--md-sys-color-surface);
    padding: 24px;
    margin: 0 20px;
    border-radius: var(--md-sys-shape-corner-medium);
    box-shadow: var(--md-sys-elevation-level1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--md-sys-color-outline-variant);
}

.education-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-level2);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.institution-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
}

.card-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.card-info h4 {
    font-size: 1.1rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.period {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.card-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--md-sys-color-primary);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--md-sys-color-primary);
    border-radius: 50%;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px var(--md-sys-color-outline-variant);
}

.experience-card {
    background: white;
    padding: 2.5rem;
    margin: 0 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.company-logo {
    width: auto;
    height: 65px;
    max-width: 100px;
    min-height: 65px;
    border-radius: var(--md-sys-shape-corner-small);
    object-fit: contain;
    padding: 6px;
    background: rgba(255, 255, 255, 0.1);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.no-projects {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 1.1rem;
}

.project-card {
    background: var(--md-sys-color-surface);
    border-radius: var(--md-sys-shape-corner-medium);
    overflow: hidden;
    box-shadow: var(--md-sys-elevation-level1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    height: fit-content;
    border: 1px solid transparent;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 20px 60px rgba(0, 141, 218, 0.3), 0 0 0 1px rgba(0, 141, 218, 0.2);
    border: 1px solid var(--md-sys-color-primary);
    filter: brightness(1.02);
}

.project-card:hover .project-image {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 12px 12px 0 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-image video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: opacity 0.3s ease;
    background-color: #ffffff;
    background-color: var(--md-sys-color-surface-variant);
    border-radius: 12px 12px 0 0;
}

/* Video optimization */
video {
    will-change: transform;
    transform: translateZ(0);
}

/* Special handling for different media types */
.project-image.wide-media {
    max-height: 250px;
    object-fit: cover;
}

.project-image.tall-media {
    max-height: 500px;
    object-fit: contain;
}

.project-image.normal-media {
    max-height: 350px;
    object-fit: contain;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    video {
        animation: none !important;
        transition: none !important;
    }
    
    .project-card {
        animation: none !important;
        transform: none !important;
    }
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: auto;
}

.tech-tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

/* Tech Tag Color Variations */
.tech-tag.programming {
    background: #2fcaef;
    color: #05224c;
}

.tech-tag.ai-ml {
    background: #008dda;
    color: #ffffff;
}

.tech-tag.robotics {
    background: #00b6e9;
    color: #ffffff;
}

.tech-tag.automation {
    background: #0078d0;
    color: #ffffff;
}

.tech-tag.design {
    background: #66d8f3;
    color: #05224c;
}

.tech-tag.systems {
    background: #009bde;
    color: #ffffff;
}

.tech-tag.analysis {
    background: #12ade5;
    color: #ffffff;
}

.tech-tag.web {
    background: #16a7e3;
    color: #ffffff;
}

.tech-tag.embedded {
    background: #35c9ee;
    color: #05224c;
}

.tech-tag.default {
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.project-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #1d4ed8;
}

.projects-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.page-info {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0 1rem;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--md-sys-color-secondary);
    transform: scale(1.1);
}

.nav-btn:disabled {
    background: var(--md-sys-color-outline-variant);
    cursor: not-allowed;
    transform: none;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 20px;
}

.skill-category {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px;
}

.skill-tag i {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: bold;
}

/* Skills Color Variations */
.skill-category:nth-child(1) .skill-tag:nth-child(odd) {
    background: #2fcaef;
    color: #05224c;
}

.skill-category:nth-child(1) .skill-tag:nth-child(even) {
    background: #008dda;
    color: #ffffff;
}

.skill-category:nth-child(2) .skill-tag:nth-child(odd) {
    background: #00b6e9;
    color: #ffffff;
}

.skill-category:nth-child(2) .skill-tag:nth-child(even) {
    background: #0078d0;
    color: #ffffff;
}

.skill-category:nth-child(3) .skill-tag:nth-child(odd) {
    background: #66d8f3;
    color: #05224c;
}

.skill-category:nth-child(3) .skill-tag:nth-child(even) {
    background: #009bde;
    color: #ffffff;
}

.skill-category:nth-child(4) .skill-tag:nth-child(odd) {
    background: #12ade5;
    color: #ffffff;
}

.skill-category:nth-child(4) .skill-tag:nth-child(even) {
    background: #16a7e3;
    color: #ffffff;
}

.skill-category:nth-child(5) .skill-tag:nth-child(odd) {
    background: #35c9ee;
    color: #05224c;
}

.skill-category:nth-child(5) .skill-tag:nth-child(even) {
    background: #0079d0;
    color: #ffffff;
}

.skill-tag:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 141, 218, 0.4);
    opacity: 1;
    filter: brightness(1.2) saturate(1.3);
    border-radius: 25px;
}

.skill-tag:hover i {
    opacity: 1;
    transform: scale(1.3) rotate(-10deg);
    color: inherit;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.skill-tag:active {
    transform: translateY(-3px) scale(1.02);
    transition-duration: 0.1s;
}

/* Artistic pulsing effect on hover */
.skill-tag:hover::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: inherit;
    border-radius: inherit;
    opacity: 0.3;
    z-index: -1;
    animation: skillPulse 1s ease-out infinite;
}

@keyframes skillPulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Add subtle animation delay for staggered effect */
.skill-tag:nth-child(1) { transition-delay: 0ms; }
.skill-tag:nth-child(2) { transition-delay: 50ms; }
.skill-tag:nth-child(3) { transition-delay: 100ms; }
.skill-tag:nth-child(4) { transition-delay: 150ms; }
.skill-tag:nth-child(5) { transition-delay: 200ms; }

/* Specific styling for technology-branded skill tags */
.skill-tag.python { border-color: #3776ab; }
.skill-tag.python:hover { box-shadow: 0 15px 40px rgba(55, 118, 171, 0.4); }

.skill-tag.c-lang { border-color: #00599c; }
.skill-tag.c-lang:hover { box-shadow: 0 15px 40px rgba(0, 89, 156, 0.4); }

.skill-tag.dart { border-color: #0175c2; }
.skill-tag.dart:hover { box-shadow: 0 15px 40px rgba(1, 117, 194, 0.4); }

.skill-tag.flutter { border-color: #02569b; }
.skill-tag.flutter:hover { box-shadow: 0 15px 40px rgba(2, 86, 155, 0.4); }

.skill-tag.tensorflow { border-color: #ff6f00; }
.skill-tag.tensorflow:hover { box-shadow: 0 15px 40px rgba(255, 111, 0, 0.4); }

.skill-tag.opencv { border-color: #5c3ee8; }
.skill-tag.opencv:hover { box-shadow: 0 15px 40px rgba(92, 62, 232, 0.4); }

.skill-tag.arduino { border-color: #00979d; }
.skill-tag.arduino:hover { box-shadow: 0 15px 40px rgba(0, 151, 157, 0.4); }

.skill-tag.postgresql { border-color: #336791; }
.skill-tag.postgresql:hover { box-shadow: 0 15px 40px rgba(51, 103, 145, 0.4); }

.skill-tag.firebase { border-color: #ffca28; }
.skill-tag.firebase:hover { box-shadow: 0 15px 40px rgba(255, 202, 40, 0.4); }

.skill-tag.git { border-color: #f05032; }
.skill-tag.git:hover { box-shadow: 0 15px 40px rgba(240, 80, 50, 0.4); }

.skill-tag.linux { border-color: #fcc624; }
.skill-tag.linux:hover { box-shadow: 0 15px 40px rgba(252, 198, 36, 0.4); }

.skill-tag.vscode { border-color: #007acc; }
.skill-tag.vscode:hover { box-shadow: 0 15px 40px rgba(0, 122, 204, 0.4); }

.skill-tag.jupyter { border-color: #f37726; }
.skill-tag.jupyter:hover { box-shadow: 0 15px 40px rgba(243, 119, 38, 0.4); }

.skill-tag.rstudio { border-color: #75aadb; }
.skill-tag.rstudio:hover { box-shadow: 0 15px 40px rgba(117, 170, 219, 0.4); }

.skill-tag.matlab { border-color: #0076a8; }
.skill-tag.matlab:hover { box-shadow: 0 15px 40px rgba(0, 118, 168, 0.4); }

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 20px;
}

.certification-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.certification-card.subcourse {
    opacity: 0.9;
    transform: scale(0.95);
    border-left: 4px solid #2563eb;
}

.certification-card.subcourse:hover {
    opacity: 1;
    transform: scale(0.95) translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.certification-card.subcourse .cert-content h3 {
    font-size: 1rem;
    color: #374151;
}

.certification-card.subcourse .cert-content p {
    font-size: 0.9rem;
}

.cert-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cert-content {
    padding: 2rem;
}

.cert-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.cert-content p {
    color: #6b7280;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #d1d5db;
}

/* Material 3 Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group input,
.form-group textarea {
    padding: 16px;
    border: 1px solid var(--md-sys-color-outline);
    border-radius: var(--md-sys-shape-corner-extra-small);
    background: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(0, 141, 218, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--md-sys-color-on-surface-variant);
}

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

/* Form validation styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    font-weight: 400;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "⚠";
    font-size: 16px;
}

.success-message {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    animation: slideInDown 0.5s ease-out;
}

.form-error-message {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    animation: slideInDown 0.5s ease-out;
}

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

/* Enhanced button loading states */
.contact-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-loading.show {
    display: inline-flex;
}

.btn-text.hide {
    display: none;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

.contact-form button[type="submit"]:disabled:hover {
    transform: none !important;
    box-shadow: var(--md-sys-elevation-level1) !important;
}

/* Loading state for submit button */
.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form button[type="submit"] .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Footer */
/* Footer */
.footer {
    background: var(--md-sys-color-on-surface);
    color: var(--md-sys-color-surface);
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2563eb;
}

.footer-left p {
    color: #d1d5db;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 20px 0;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--md-sys-elevation-level2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--md-sys-color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--md-sys-elevation-level3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        max-width: 800px;
        padding: 2rem 20px;
    }
}

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

    .nav-container {
        padding: 0 30px;
    }

    .hero {
        padding: 0 20px 40px; /* Removed top padding for mobile too */
    }

    .hero-container {
        max-width: 100%;
        padding: 0 10px;
    }

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

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

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
        padding: 0 10px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        padding: 0 10px;
        gap: 2rem;
    }

    .project-image,
    .project-image video {
        max-height: 280px !important;
    }

    .project-image.tall-media {
        max-height: 400px !important;
    }

    .skills-container {
        padding: 0 10px;
    }

    .certifications-grid {
        padding: 0 10px;
    }

    .contact-container {
        padding: 0 10px;
    }

    .education-card,
    .experience-card {
        margin: 0 10px;
        padding: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0.5rem;
    }

    .nav-menu .nav-link {
        padding: 16px 24px;
        margin: 4px 20px;
        min-height: 48px; /* Enhanced touch target */
        font-size: 16px; /* Larger text for mobile */
        border-radius: var(--md-sys-shape-corner-medium);
        background: rgba(255, 255, 255, 0.1);
    }

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

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

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

    .profile-image {
        width: 250px;
        height: 320px;
    }

    .image-decoration {
        width: 320px;
        height: 320px;
    }

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

    .btn {
        width: 200px;
        text-align: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 5px;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .nav-container {
        padding: 0 20px;
    }

    .hero {
        padding: 70px 20px 40px;
    }

    .section {
        padding: 60px 0;
    }

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

    .section-header {
        padding: 0 10px;
    }

    .projects-grid {
        padding: 0 5px;
    }

    .skills-container {
        padding: 0 5px;
    }

    .certifications-grid {
        padding: 0 5px;
    }

    .contact-container {
        padding: 0 5px;
    }

    .education-card,
    .experience-card {
        margin: 0 5px;
        padding: 1.5rem;
    }

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

    .profile-image {
        width: 200px;
        height: 280px;
    }

    .image-decoration {
        width: 270px;
        height: 270px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 10px;
    }

    .project-card {
        margin: 0 10px;
    }

    .project-image,
    .project-image video {
        max-height: 300px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1d4ed8;
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Success Notification Styles */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out forwards;
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    position: relative;
}

.notification-icon i {
    font-size: 24px;
    color: white;
    margin-top: 2px;
}

.notification-text {
    flex: 1;
}

.notification-text h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.notification-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.notification-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

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

@media (max-width: 768px) {
    .success-notification {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(-100px);
        animation: slideInDown 0.3s ease-out forwards;
    }
    
    .success-notification.show {
        transform: translateY(0);
    }
    
    @keyframes slideInDown {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}
