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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Ensure sections don't overlap */
section {
    position: relative;
    z-index: 1;
}

section:not(.hero) {
    margin-top: 0;
    padding-top: 80px;
}

/* CSS Variables */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    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);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.navbar.scrolled .nav-logo a,
.navbar.scrolled .nav-link {
    color: var(--text-dark) !important;
}

.navbar.scrolled .nav-toggle .bar {
    background: var(--text-dark) !important;
}

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

.nav-logo a {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(240, 147, 251, 0.5));
}

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

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: #f093fb;
    background: rgba(240, 147, 251, 0.1);
    backdrop-filter: blur(10px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Highlighted Resume button in navbar */
.nav-link.nav-resume {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.25));
    color: #d0d2ef;
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 0.35rem 0.8rem;
    /* compact to preserve nav height */
    border-radius: 999px;
    /* pill */
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.nav-link.nav-resume:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.35));
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

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

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION - COMPACT FOR DESKTOP ===== */
.hero {
    min-height: 90vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    padding: 70px 0 60px 0;
    margin: 0;
}

/* Subtle overlay to improve foreground contrast */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* push background under overlay */
}

/* Animated Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #00d4ff, #7b2cbf);
    border-radius: 50%;
    animation: particleFloat 8s linear infinite;
    opacity: 0;
}

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

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

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

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

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

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

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

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

/* Geometric Shapes */
.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.geo-shape {
    position: absolute;
    opacity: 0.06;
    /* slightly dim shapes */
    animation: geometricFloat 12s ease-in-out infinite;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 50px solid #00d4ff;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.geo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #7b2cbf, #a663cc);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.geo-hexagon {
    width: 60px;
    height: 34px;
    background: #00d4ff;
    position: relative;
    top: 10%;
    right: 10%;
    animation-delay: 4s;
}

.geo-hexagon:before,
.geo-hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.geo-hexagon:before {
    bottom: 100%;
    border-bottom: 17px solid #00d4ff;
}

.geo-hexagon:after {
    top: 100%;
    border-top: 17px solid #00d4ff;
}

.geo-square {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff006e, #fb8500);
    transform: rotate(45deg);
    bottom: 30%;
    left: 10%;
    animation-delay: 6s;
}

/* Hero Container - Compact for desktop */
.hero-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 30px 0.5rem 30px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hero Content - Prevent stretching */
.hero-content {
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 650px;
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.8s ease-out;
}

.badge-text {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 44, 191, 0.2));
    color: #00d4ff;
    padding: 0.4rem 0.9rem;
    border-radius: 25px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge-text:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 44, 191, 0.3));
    transform: scale(1.05);
}

/* Hero Title - Compact sizing */
.hero-title {
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-line {
    display: block;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: #b0b0b0;
    font-weight: 400;
    margin-bottom: 0.4rem;
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.title-name {
    display: block;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 50%, #ff006e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    line-height: 1.1;
}

.title-tagline {
    display: block;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    color: #a663cc;
    font-weight: 500;
    animation: slideInRight 0.6s ease-out 0.6s both;
}

/* Hero Subtitle - Compact sizing */
.hero-subtitle-container {
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0;
}

.rotating-text {
    color: #00d4ff;
    font-weight: 600;
    position: relative;
    display: inline-block;
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* Hero Description - Compact sizing */
.hero-description {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    max-width: 550px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

/* The Individual Lines */
.hero-description p {
    position: relative;
    padding: 0.6rem 1rem;
    margin: 0;

    /* Typography */
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1.8vw, 1.05rem);
    font-weight: 200;
    line-height: 1.4;
    letter-spacing: 0.02em;

    /* The "Glass" Look */
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    /* Subtle border */
    border-radius: 0 8px 8px 0;
    /* Rounded on right side only */
    backdrop-filter: blur(5px);
    /* Blurs background behind text */

    /* Smooth Animation Setup */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    /* or pointer if clickable */
}

/* The "Impact" Hover Effect */
.hero-description p:hover {
    background: rgba(255, 255, 255, 0.08);
    /* Brighter background */
    border-left-color: #00d4ff;
    /* CHANGE THIS to your brand color (e.g., cyan, gold, purple) */
    transform: translateX(10px);
    /* Slides to the right */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Adds depth */
    color: #ffffff;
    /* Pure white text */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    /* Subtle text glow */
}

/* Optional: Make the Emojis stand out more */
.hero-description p::first-letter {
    font-size: 0.8em;
    /* Makes emoji slightly larger than text */
    margin-right: 0.2rem;
}

/* Hero Stats - Compact sizing */
.hero-stats {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 1.2s both;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0.8rem 1.2rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 0 1 auto;
    min-width: 90px;
}

.stat-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.stat-number {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 800;
    color: #00d4ff;
    display: block;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: clamp(0.75rem, 1.3vw, 0.85rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Hero Buttons - Compact sizing */
.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 1.4s both;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.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.6s;
}

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

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    color: white;
    position: relative;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover .btn-glow {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

/* Hero Visual - Compact sizing */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 0.8s ease-out 1s both;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-glow {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(25px);
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: -1;
}

.profile-frame {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(0, 212, 255, 0.5);
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.4),
        0 0 80px rgba(123, 44, 191, 0.3),
        0 0 120px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
    margin: 0 auto;
    transform: translateY(-30px);
}

.profile-frame:hover {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow:
        0 0 50px rgba(0, 212, 255, 0.6),
        0 0 100px rgba(123, 44, 191, 0.4),
        0 0 150px rgba(0, 212, 255, 0.2);
    transform: translateY(-30px) scale(1.03);
}

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

.profile-frame:hover .profile-image {
    transform: scale(1.05);
}

/* Horizontal Social Icons - Fixed positioning */
.profile-social-icons {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    backdrop-filter: blur(15px);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    z-index: 15;
    border: 1px solid rgba(0, 0, 0, 0.05);
    white-space: nowrap;
}

.profile-social-link {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 14px;
}

.profile-social-link:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

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

.frame-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf, #ff006e);
    animation: rotateBorder 6s linear infinite;
    z-index: -1;
    opacity: 0.7;
}

/* Profile actions (Download CV) below social icons */
.profile-actions {
    position: absolute;
    bottom: -85px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.btn-cv i {
    color: #00d4ff;
}

.btn-cv:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* Mobile adjustments to avoid overlap */
/* Removed duplicate media query - consolidated below */

/* Floating Tech Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: iconFloat 4s ease-in-out infinite;
    animation-delay: var(--delay);
    transform: translate(var(--x), var(--y));
}

.tech-icon:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translate(var(--x), var(--y)) scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 55px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out 2s both;
    z-index: 100;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #00d4ff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== ANIMATIONS ===== */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes geometricFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }

    to {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translate(var(--x), var(--y)) translateY(0);
    }

    50% {
        transform: translate(var(--x), var(--y)) translateY(-10px);
    }
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0.5;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes profileFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-10px) rotate(1deg);
    }

    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

@keyframes borderPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 5rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    z-index: 1;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.about-text.animate p:nth-child(2) {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.about-text.animate p:nth-child(3) {
    animation: fadeInUp 0.8s ease 0.5s both;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.about-text.animate .stat {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.about-text.animate .stat:nth-child(1) {
    transition-delay: 0.7s;
}

.about-text.animate .stat:nth-child(2) {
    transition-delay: 0.9s;
}

.about-text.animate .stat:nth-child(3) {
    transition-delay: 1.1s;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.about-image {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image-container {
    position: relative;
}

.profile-image-frame {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 30px;
    padding: 8px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 50%, #ff006e 100%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: profileFloat 6s ease-in-out infinite;
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.profile-image-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 212, 255, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.about-profile {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    border-radius: 25px;
}

.about-profile-img {
    border: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.image-border {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 35px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    animation: borderRotate 30s linear infinite reverse;
}

.about-border {
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.about-border::before {
    border: 1px solid rgba(6, 182, 212, 0.2);
}

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

.skill-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skill-card p {
    color: var(--text-light);
}

/* --- Education Layout --- */
.education {
    padding: 100px 0;
    background: var(--bg-light);
}

.education-content {
    max-width: 900px; /* Keeps the cards readable and centered */
    margin: 0 auto;
}

/* --- The Vertical Timeline Flow --- */
.education-timeline {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 5rem;
}

/* The vertical line */
.education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* The Dots */
.timeline-dot {
    position: absolute;
    left: -58px; /* Centers the dot exactly on the line */
    top: 25px;
    width: 20px;
    height: 20px;
    background: var(--bg-white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 15px var(--primary-color);
}

/* --- Education Cards --- */
.education-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.education-gpa {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.education-highlights {
    list-style: none;
    padding-top: 1rem;
}

.education-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.education-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Achievements Grid (Bottom Section) --- */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.achievement-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.achievement-year {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 1rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .education-timeline {
        padding-left: 2rem;
    }
    
    .timeline-dot {
        left: -42px;
        width: 16px;
        height: 16px;
    }
    
    .education-card {
        padding: 1.5rem;
    }
}
/* Projects Section */
.projects {
    background: var(--bg-light);
}

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

.project-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dark);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(107, 114, 128, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

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

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* ===== UNIQUE PREMIUM FOOTER ===== */
.footer {
    position: relative;
    background: #0a0a0a;
    color: #ffffff;
    padding: 0;
    overflow: hidden;
    margin-top: 100px;
}

/* Animated Waves */
.footer-waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: block;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.f-social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.f-social-link:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.footer-grid h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-grid h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #00d4ff;
}

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

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

.footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #00d4ff;
    transform: translateX(5px);
}

.footer-contact p {
    color: #a0a0a0;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: #00d4ff;
}

.footer-cta {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2cbf 100%);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.2);
}

.footer-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #707070;
    font-size: 0.9rem;
}

.highlight {
    color: #00d4ff;
    font-weight: 600;
}

.heart-pulse i {
    color: #ff4d4d;
    animation: heartBeat 1.5s ease infinite;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

.coffee-steam i {
    color: #6f4e37;
    position: relative;
}

/* Giant Background Text */
.footer-bg-text {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 1;
    letter-spacing: 2vw;
}

/* Responsive Footer */
@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-grid h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-tagline {
        margin: 0 auto 2rem;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bg-text {
        font-size: 25vw;
        bottom: -20px;
    }
}

/* ===========================================
   RESPONSIVE BREAKPOINTS - CLEAN IMPLEMENTATION
   Following modern responsive design principles
   =========================================== */

/* ===================================
   PRO TABLET & LAPTOP LAYOUT (iPad Pro, Surface, Zenbook, Zenbook Fold)
   Optimized for 850px to 1366px
   =================================== */
@media screen and (max-width: 1366px) and (min-width: 850px) {

    /* Compact Navigation for Fold/Pro */
    .nav-container {
        height: 50px !important;
        /* Smaller height */
    }

    .nav-logo a {
        font-size: 1.2rem !important;
        /* Smaller logo */
        background: none !important;
        -webkit-text-fill-color: #ffffff !important;
        color: #ffffff !important;
    }

    .nav-link {
        font-size: 0.85rem !important;
        /* Smaller links */
        padding: 6px 12px !important;
    }

    .hero {
        padding: 80px 0 !important;
        /* Reduced top padding to account for smaller nav */
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-container {
        grid-template-columns: 1.1fr 0.9fr !important;
        gap: 3rem !important;
        align-items: center !important;
        text-align: left !important;
        padding: 0 40px !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
    }

    .hero-content {
        max-width: 100% !important;
        order: 1 !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hero-visual {
        order: 2 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .hero-image-wrapper {
        width: clamp(320px, 35vw, 420px) !important;
        /* Responsive sizing for Fold devices */
        height: auto !important;
        margin: 0 0 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding-bottom: 0 !important;
    }

    .profile-frame {
        width: 100% !important;
        aspect-ratio: 1/1 !important;
        height: auto !important;
        max-width: 380px !important;
        margin-bottom: 25px !important;
    }

    .profile-social-icons {
        position: relative !important;
        margin: 0 auto 15px auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .profile-actions {
        position: relative !important;
        margin: 0 auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .hero-stats,
    .hero-buttons {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .hero-description {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ===================================
   PRO PORTRAIT TABLET (Surface Pro, iPad Portrait)
   Optimized for 849px and below
   =================================== */
@media screen and (max-width: 849px) {
    .hero {
        padding: 120px 20px 60px 20px !important;
    }

    .hero-container {
        grid-template-columns: 1fr !important;
        /* Elegant Stack */
        text-align: center !important;
        gap: 60px !important;
        padding: 0 30px !important;
    }

    .hero-content {
        order: 2 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-visual {
        order: 1 !important;
        width: 100% !important;
    }

    .hero-image-wrapper {
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .profile-frame {
        width: 320px !important;
        height: 320px !important;
        margin-bottom: 30px !important;
    }

    .profile-social-icons {
        position: relative !important;
        margin: 0 auto 20px auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .profile-actions {
        position: relative !important;
        margin: 0 auto !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
    }

    .hero-stats,
    .hero-buttons {
        justify-content: center !important;
    }

    .hero-description {
        margin: 0 auto 2rem auto !important;
    }
}

/* ===================================
   Mobile: 768px and below
   =================================== */
@media screen and (max-width: 768px) {

    /* Container adjustments */
    .container {
        padding: 0 20px;
    }

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

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }

    .navbar.scrolled .nav-logo a {
        color: var(--text-dark) !important;
    }

    .navbar.scrolled .nav-toggle .bar {
        background: var(--text-dark) !important;
    }

    /* Navigation - Mobile menu */
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 60px 20px;
        gap: 25px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    /* White menu background when navbar is scrolled */
    .navbar.scrolled .nav-menu {
        background-color: rgba(255, 255, 255, 0.98);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

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

    .nav-link {
        font-size: 20px;
        padding: 12px 24px;
        color: white !important;
    }

    /* Dark links when navbar is scrolled */
    .navbar.scrolled .nav-link {
        color: var(--text-dark) !important;
    }

    .navbar.scrolled .nav-link:hover,
    .navbar.scrolled .nav-link.active {
        color: var(--primary-color) !important;
        background: rgba(99, 102, 241, 0.1);
    }

    .nav-toggle {
        display: flex !important;
        z-index: 1001;
    }

    .nav-toggle .bar {
        background: #ffffff !important;
        /* Make bars white so they are visible on dark hero */
        width: 28px;
        height: 3px;
        margin: 3px 0;
        border-radius: 3px;
    }

    /* When scrolled, make bars dark to match white navbar */
    .navbar.scrolled .nav-toggle .bar {
        background: var(--text-dark) !important;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: #ffffff !important;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: #ffffff !important;
    }


    /* ============================================
       🔥 ULTRA PREMIUM MOBILE - NEVER SEEN BEFORE
       Inspired by Apple, Awwwards, and Luxury Brands
       ============================================ */

    /* ========== HERO SECTION - CINEMATIC PREMIUM ========== */
    .hero {
        min-height: 100vh !important;
        height: auto !important;
        padding: 90px 20px 60px 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: radial-gradient(ellipse at top, #0f172a 0%, #020617 50%, #000000 100%) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Ambient Light Effect */
    .hero::after {
        content: '' !important;
        position: absolute !important;
        top: -50% !important;
        left: -50% !important;
        width: 200% !important;
        height: 200% !important;
        background: radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
            radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%) !important;
        animation: ambientShift 15s ease-in-out infinite !important;
        pointer-events: none !important;
        z-index: 0 !important;
    }

    @keyframes ambientShift {

        0%,
        100% {
            transform: translate(0, 0) rotate(0deg);
        }

        33% {
            transform: translate(2%, 2%) rotate(1deg);
        }

        66% {
            transform: translate(-2%, -1%) rotate(-1deg);
        }
    }

    .hero-container {
        gap: 0 !important;
        padding: 0 15px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        grid-template-columns: 1fr !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* ========== PROFILE VISUAL - SIGNATURE PREMIUM ========== */
    .hero-visual {
        margin-top: 10px !important;
        order: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto 35px auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }

    .hero-image-wrapper {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
        margin: 0 auto !important;
        position: relative !important;
        padding-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    /* ========== AI SCANNER PROFILE - FUTURISTIC ML DESIGN ========== */
    .profile-frame {
        position: relative !important;
        width: 220px !important;
        max-width: 220px !important;
        height: 220px !important;
        border-radius: 50% !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
        margin: 0 auto 25px auto !important;
        transform: none !important;
        background: transparent !important;
        padding: 0 !important;
        aspect-ratio: auto !important;
    }

    /* AI Hexagonal Grid Background */
    .profile-frame::before {
        content: '' !important;
        position: absolute !important;
        top: -35px !important;
        left: -35px !important;
        right: -35px !important;
        bottom: -35px !important;
        border-radius: 50% !important;
        background:
            radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 212, 255, 0.03) 100%),
            repeating-conic-gradient(from 0deg,
                transparent 0deg 30deg,
                rgba(0, 212, 255, 0.02) 30deg 60deg) !important;
        border: 1px solid rgba(0, 212, 255, 0.15) !important;
        animation: aiGridRotate 20s linear infinite !important;
        z-index: -1 !important;
    }

    /* Scanning Ring - Outer */
    .profile-frame::after {
        content: '' !important;
        position: absolute !important;
        top: -20px !important;
        left: -20px !important;
        right: -20px !important;
        bottom: -20px !important;
        border-radius: 50% !important;
        border: 2px solid transparent !important;
        border-top: 2px solid #00d4ff !important;
        border-right: 2px solid rgba(0, 212, 255, 0.5) !important;
        animation: scannerRotate 2s linear infinite !important;
        z-index: 10 !important;
        filter: drop-shadow(0 0 8px #00d4ff) !important;
    }

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

        to {
            transform: rotate(360deg);
        }
    }

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

        to {
            transform: rotate(360deg);
        }
    }

    /* The Profile Image with AI Effect - Blur to Clear */
    .profile-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        border-radius: 50% !important;
        border: 3px solid rgba(0, 212, 255, 0.4) !important;

        box-shadow:
            0 0 30px rgba(0, 212, 255, 0.3),
            0 0 60px rgba(0, 212, 255, 0.1),
            inset 0 0 30px rgba(0, 212, 255, 0.1) !important;
    }

    .profile-frame::after {
        content: '' !important;
        position: absolute !important;
        top: -20px !important;
        left: -20px !important;
        right: -20px !important;
        bottom: -20px !important;
        border-radius: 50% !important;
        border: 2px solid transparent !important;
        border-top: 2px solid #00d4ff !important;
        border-right: 2px solid rgba(0, 212, 255, 0.5) !important;
        animation: scannerRotate 2s linear infinite !important;
        z-index: 10 !important;
        filter: drop-shadow(0 0 8px #00d4ff) !important;
    }

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

        to {
            transform: rotate(360deg);
        }
    }

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

        to {
            transform: rotate(360deg);
        }
    }

    /* The Profile Image with AI Effect - Blur to Clear */
    .profile-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        border-radius: 50% !important;
        border: 3px solid rgba(0, 212, 255, 0.4) !important;
        box-shadow:
            0 0 30px rgba(0, 212, 255, 0.3),
            0 0 60px rgba(0, 212, 255, 0.1),
            inset 0 0 30px rgba(0, 212, 255, 0.1) !important;
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
        animation: scanReveal 15s ease-in-out forwards !important;
    }

    @keyframes scanReveal {
        0% {
            filter: blur(12px) brightness(0.5);
            box-shadow:
                0 0 30px rgba(0, 212, 255, 0.2),
                0 0 60px rgba(0, 212, 255, 0.1),
                inset 0 0 30px rgba(0, 212, 255, 0.1);
        }

        30% {
            filter: blur(8px) brightness(0.65);
        }

        60% {
            filter: blur(4px) brightness(0.8);
        }

        85% {
            filter: blur(1px) brightness(0.95);
        }

        100% {
            filter: blur(0px) brightness(1);
            box-shadow:
                0 0 40px rgba(0, 212, 255, 0.5),
                0 0 80px rgba(0, 212, 255, 0.2),
                inset 0 0 40px rgba(0, 212, 255, 0.15);
        }
    }

    .profile-frame:hover .profile-image {
        transform: scale(1.02) !important;
        border-color: rgba(0, 212, 255, 0.8) !important;
    }

    /* AI Scanning Line Effect */
    .image-glow {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 4px !important;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(0, 212, 255, 0.3) 20%,
                #00d4ff 50%,
                rgba(0, 212, 255, 0.3) 80%,
                transparent 100%) !important;
        border-radius: 50% !important;
        filter: blur(0px) !important;
        animation: scanLine 15s ease-in-out forwards !important;
        z-index: 15 !important;
        opacity: 1 !important;
        box-shadow:
            0 0 20px #00d4ff,
            0 0 40px rgba(0, 212, 255, 0.5) !important;
    }

    @keyframes scanLine {
        0% {
            top: 0;
            opacity: 0;
        }

        5% {
            opacity: 1;
        }

        95% {
            opacity: 1;
        }

        100% {
            top: calc(100% - 4px);
            opacity: 0;
        }
    }

    /* Circuit Lines - Left */
    .frame-border {
        display: block !important;
        position: absolute !important;
        top: 50% !important;
        left: -45px !important;
        width: 35px !important;
        height: 2px !important;
        background: linear-gradient(90deg, transparent, #00d4ff) !important;
        transform: translateY(-50%) !important;
        border-radius: 0 !important;
        z-index: 5 !important;
        animation: circuitPulse 2s ease-in-out infinite !important;
    }

    .frame-border::before {
        content: '' !important;
        position: absolute !important;
        left: -8px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 8px !important;
        height: 8px !important;
        background: #00d4ff !important;
        border-radius: 50% !important;
        box-shadow: 0 0 10px #00d4ff, 0 0 20px rgba(0, 212, 255, 0.5) !important;
        animation: nodePulse 1.5s ease-in-out infinite !important;
    }

    .frame-border::after {
        content: '' !important;
        position: absolute !important;
        right: -220px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 35px !important;
        height: 2px !important;
        background: linear-gradient(90deg, #00d4ff, transparent) !important;
    }

    @keyframes circuitPulse {

        0%,
        100% {
            opacity: 0.5;
        }

        50% {
            opacity: 1;
        }
    }

    @keyframes nodePulse {

        0%,
        100% {
            transform: translateY(-50%) scale(1);
            box-shadow: 0 0 10px #00d4ff, 0 0 20px rgba(0, 212, 255, 0.5);
        }

        50% {
            transform: translateY(-50%) scale(1.3);
            box-shadow: 0 0 15px #00d4ff, 0 0 30px rgba(0, 212, 255, 0.7);
        }
    }

    /* AI Badge - Removed */
    .hero-image-wrapper::before {
        display: none !important;
    }

    /* AI Status Text - Handled by JavaScript */
    .hero-image-wrapper::after {
        display: none !important;
    }

    /* Navigation Logo - Gradient */
    .nav-logo a {
        font-size: 1.3rem !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #00d4ff 0%, #a855f7 50%, #ec4899 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        letter-spacing: -0.5px !important;
    }

    /* ========== SOCIAL ICONS - FLOATING GLASS BAR ========== */
    .profile-social-icons {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        padding: 10px 16px !important;
        border-radius: 50px !important;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1) !important;
        z-index: 15 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 0 !important;
        width: fit-content !important;
        white-space: nowrap !important;
        margin-top: 20px !important;
    }

    .profile-social-link {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        position: relative !important;
        font-size: 14px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    }

    .profile-social-link:hover {
        background: linear-gradient(135deg, #00d4ff, #a855f7) !important;
        color: #ffffff !important;
        border-color: transparent !important;
        transform: translateY(-4px) scale(1.1) !important;
        box-shadow:
            0 10px 25px rgba(0, 212, 255, 0.4),
            0 0 20px rgba(0, 212, 255, 0.3) !important;
    }

    /* ========== DOWNLOAD CV BUTTON - PREMIUM GLASS ========== */
    .profile-actions {
        position: relative !important;
        margin-top: 20px !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        z-index: 15 !important;
    }

    .btn-cv {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 14px 28px !important;
        border-radius: 50px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        color: #ffffff !important;
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(168, 85, 247, 0.2)) !important;
        border: 1px solid rgba(0, 212, 255, 0.4) !important;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        text-transform: none !important;
        letter-spacing: 0.5px !important;
        backdrop-filter: blur(10px) !important;
    }

    .btn-cv i {
        color: #00d4ff !important;
        font-size: 1rem !important;
        transition: transform 0.3s ease !important;
    }

    .btn-cv:hover {
        background: linear-gradient(135deg, #00d4ff, #a855f7) !important;
        border-color: transparent !important;
        transform: translateY(-3px) !important;
        box-shadow:
            0 15px 40px rgba(0, 212, 255, 0.4),
            0 0 30px rgba(0, 212, 255, 0.2) !important;
        color: #ffffff !important;
    }

    .btn-cv:hover i {
        color: #ffffff !important;
        transform: translateY(-2px) !important;
    }

    /* ========== HERO CONTENT - PREMIUM TYPOGRAPHY ========== */
    .hero-content {
        order: 2 !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 15px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Badge - Floating Glass Chip */
    .hero-badge {
        margin-bottom: 1rem !important;
        display: flex !important;
        justify-content: center !important;
    }

    .badge-text {
        background: rgba(0, 212, 255, 0.1) !important;
        color: #00d4ff !important;
        padding: 8px 18px !important;
        border-radius: 50px !important;
        border: 1px solid rgba(0, 212, 255, 0.3) !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        backdrop-filter: blur(10px) !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        box-shadow:
            0 4px 15px rgba(0, 212, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }

    /* Typography - Cinematic Headlines */
    .hero-title {
        margin-bottom: 1rem !important;
    }

    .title-line {
        display: block !important;
        font-size: 0.8rem !important;
        color: rgba(255, 255, 255, 0.5) !important;
        font-weight: 400 !important;
        margin-bottom: 8px !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        opacity: 1 !important;
    }

    .title-name {
        display: block !important;
        font-size: clamp(2.5rem, 10vw, 3.2rem) !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg,
                #ffffff 0%,
                #00d4ff 25%,
                #a855f7 50%,
                #ec4899 75%,
                #ffffff 100%) !important;
        background-size: 200% 200% !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        margin-bottom: 8px !important;
        animation: gradientFlow 4s ease-in-out infinite !important;
        line-height: 1.1 !important;
        letter-spacing: -1px !important;
        text-shadow: none !important;
    }

    @keyframes gradientFlow {

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

        50% {
            background-position: 100% 50%;
        }
    }

    .title-tagline {
        display: block !important;
        font-size: 0.95rem !important;
        color: #a855f7 !important;
        font-weight: 500 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
    }

    /* Subtitle - Elegant */
    .hero-subtitle-container {
        margin-bottom: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        font-weight: 400 !important;
    }

    .rotating-text {
        color: #00d4ff !important;
        font-weight: 600 !important;
        position: relative !important;
    }

    .rotating-text::after {
        content: '' !important;
        position: absolute !important;
        bottom: -2px !important;
        left: 0 !important;
        width: 100% !important;
        height: 2px !important;
        background: linear-gradient(90deg, #00d4ff, #a855f7) !important;
        border-radius: 2px !important;
    }

    /* Description - Premium Glass Cards */
    .hero-description {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 1.8rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-description p {
        position: relative !important;
        padding: 14px 18px !important;
        margin: 0 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 0.85rem !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        letter-spacing: 0.3px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-left: 3px solid !important;
        border-left-color: #00d4ff !important;
        border-radius: 0 16px 16px 0 !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        cursor: default !important;
        text-align: left !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .hero-description p:nth-child(2) {
        border-left-color: #a855f7 !important;
    }

    .hero-description p:nth-child(3) {
        border-left-color: #ec4899 !important;
    }

    .hero-description p:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        border-color: rgba(255, 255, 255, 0.15) !important;
        transform: translateX(8px) scale(1.02) !important;
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(0, 212, 255, 0.1) !important;
        color: #ffffff !important;
    }

    /* Stats - Floating Glass Cards */
    .hero-stats {
        display: flex !important;
        gap: 10px !important;
        margin-bottom: 1.8rem !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
    }

    .stat-item {
        text-align: center !important;
        padding: 16px 14px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(10px) !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        cursor: pointer !important;
        flex: 1 !important;
        min-width: 90px !important;
        max-width: 110px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
    }

    .stat-item:hover {
        background: rgba(0, 212, 255, 0.1) !important;
        border-color: rgba(0, 212, 255, 0.3) !important;
        transform: translateY(-5px) scale(1.05) !important;
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(0, 212, 255, 0.2) !important;
    }

    .stat-number {
        font-size: 1.6rem !important;
        font-weight: 800 !important;
        background: linear-gradient(135deg, #00d4ff, #a855f7) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        display: block !important;
        margin-bottom: 4px !important;
        letter-spacing: -1px !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
        color: rgba(255, 255, 255, 0.6) !important;
        font-weight: 500 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
    }

    /* Action Buttons - Premium Gradient */
    .hero-buttons {
        display: flex !important;
        gap: 12px !important;
        margin-bottom: 0 !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: row !important;
        margin: 0 auto !important;
    }

    .btn {
        position: relative !important;
        padding: 14px 24px !important;
        border-radius: 50px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        font-size: 0.85rem !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: hidden !important;
        border: none !important;
        cursor: pointer !important;
        white-space: nowrap !important;
        width: auto !important;
        letter-spacing: 0.5px !important;
        text-transform: none !important;
        justify-content: center !important;
    }

    .btn-primary {
        background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%) !important;
        color: white !important;
        position: relative !important;
        box-shadow:
            0 8px 25px rgba(0, 212, 255, 0.3),
            0 0 40px rgba(0, 212, 255, 0.1) !important;
    }

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

    .btn-primary:hover::before {
        left: 100% !important;
    }

    .btn-primary:hover {
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow:
            0 15px 40px rgba(0, 212, 255, 0.4),
            0 0 50px rgba(0, 212, 255, 0.2) !important;
        background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%) !important;
    }

    .btn-primary .btn-text,
    .btn-primary i {
        color: white !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #00d4ff !important;
        border: 1.5px solid rgba(0, 212, 255, 0.4) !important;
        backdrop-filter: blur(10px) !important;
    }

    .btn-secondary:hover {
        background: rgba(0, 212, 255, 0.15) !important;
        border-color: #00d4ff !important;
        transform: translateY(-3px) scale(1.02) !important;
        box-shadow:
            0 10px 30px rgba(0, 212, 255, 0.2),
            0 0 20px rgba(0, 212, 255, 0.1) !important;
        color: #00d4ff !important;
    }

    .btn-secondary .btn-text,
    .btn-secondary i {
        color: inherit !important;
    }

    /* Hide decorative elements on mobile for performance */
    .geometric-shapes,
    .particles,
    .floating-icons,
    .scroll-indicator {
        display: none !important;
    }

    /* Keep glow visible */
    .image-glow {
        display: block !important;
    }

    .frame-border {
        display: none !important;
    }

    /* Background handled in hero */
    .hero-bg {
        background: none !important;
    }

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

    .section-subtitle {
        font-size: 16px;
    }

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

    .skill-card {
        padding: 25px;
    }

    /* Projects grid */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-image {
        height: 200px;
    }

    /* Education timeline */
    .education-timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -38px;
    }

    /* Contact form */
    .contact-form {
        padding: 30px 20px;
    }

    .social-links {
        justify-content: center;
    }

    /* About content */
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* ========== ABOUT SECTION IMAGE - PREMIUM TECH FRAME ========== */
    .about-image-container {
        position: relative !important;
        width: 280px !important;
        height: 280px !important;
        margin: 50px auto !important;
        border-radius: 24px !important;
        padding: 0 !important;
        background: transparent !important;
        display: block !important;
    }

    /* THE PRECISION BORDER - Enhanced Rotating Light */
    .about-image-container::before {
        content: '' !important;
        position: absolute !important;
        inset: -3px !important;
        background: conic-gradient(from var(--angle, 0deg),
                transparent 0%,
                transparent 70%,
                #00d4ff 80%,
                #ffffff 90%,
                #00d4ff 95%,
                transparent 100%) !important;
        border-radius: 26px !important;
        -webkit-mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0) !important;
        mask:
            linear-gradient(#fff 0 0) content-box,
            linear-gradient(#fff 0 0) !important;
        -webkit-mask-composite: xor !important;
        mask-composite: exclude !important;
        padding: 2px !important;
        animation: rotateAngle 3s linear infinite !important;
        display: block !important;
        z-index: 3 !important;
    }

    /* THE NEURAL AMBIENT GLOW */
    .about-image-container::after {
        content: '' !important;
        position: absolute !important;
        inset: -25px !important;
        background: radial-gradient(ellipse at 50% 50%,
                rgba(0, 212, 255, 0.2) 0%,
                rgba(0, 212, 255, 0.08) 40%,
                transparent 70%) !important;
        filter: blur(15px) !important;
        z-index: -1 !important;
        animation: pulseGlow 4s ease-in-out infinite alternate !important;
        display: block !important;
    }

    /* CSS Houdini Property for smooth rotation */
    @property --angle {
        syntax: '<angle>';
        initial-value: 0deg;
        inherits: false;
    }

    @keyframes rotateAngle {
        to {
            --angle: 360deg;
        }
    }

    @keyframes pulseGlow {
        0% {
            transform: scale(0.95);
            opacity: 0.5;
        }

        100% {
            transform: scale(1.08);
            opacity: 0.9;
        }
    }

    .profile-image-frame {
        position: relative !important;
        width: 280px !important;
        height: 280px !important;
        border-radius: 22px !important;
        padding: 0 !important;
        background: #0a0a0a !important;
        box-shadow:
            0 25px 60px rgba(0, 0, 0, 0.7),
            0 0 50px rgba(0, 212, 255, 0.12),
            inset 0 0 0 1px rgba(0, 212, 255, 0.25) !important;
        display: block !important;
        z-index: 2 !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        overflow: hidden !important;
        transform: none !important;
    }

    /* Scanning Light Effect */
    .profile-image-frame::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: -100% !important;
        width: 50% !important;
        height: 100% !important;
        background: linear-gradient(90deg,
                transparent 0%,
                rgba(0, 212, 255, 0.05) 30%,
                rgba(0, 212, 255, 0.12) 50%,
                rgba(0, 212, 255, 0.05) 70%,
                transparent 100%) !important;
        animation: techScanGlow 5s ease-in-out infinite !important;
        z-index: 10 !important;
        border-radius: 22px !important;
        display: block !important;
    }

    @keyframes techScanGlow {
        0% {
            left: -50%;
        }

        100% {
            left: 150%;
        }
    }

    /* Inner Border Accent */
    .profile-image-frame::after {
        content: '' !important;
        position: absolute !important;
        top: 4px !important;
        left: 4px !important;
        right: 4px !important;
        bottom: 4px !important;
        border-radius: 18px !important;
        border: 1px solid rgba(0, 212, 255, 0.15) !important;
        pointer-events: none !important;
        z-index: 5 !important;
        display: block !important;
    }

    .profile-image-frame:hover {
        transform: scale(1.03) !important;
        box-shadow:
            0 30px 80px rgba(0, 0, 0, 0.8),
            0 0 70px rgba(0, 212, 255, 0.2),
            inset 0 0 0 1px rgba(0, 212, 255, 0.4) !important;
    }

    .about-profile {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        border-radius: 22px !important;
        overflow: hidden !important;
        z-index: 1 !important;
    }

    .about-profile-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 22px !important;
        border: none !important;
        filter: contrast(1.02) saturate(1.05) brightness(1.02) !important;
        transition: all 0.4s ease !important;
    }

    .profile-image-frame:hover .about-profile-img {
        filter: contrast(1.05) saturate(1.1) brightness(1.05) !important;
    }

    /* Tech Corner Brackets */
    .image-border {
        display: none !important;
    }

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

        to {
            transform: rotate(360deg);
        }
    }

    .image-border::before {
        content: '' !important;
        position: absolute !important;
        top: -12px !important;
        left: -12px !important;
        right: -12px !important;
        bottom: -12px !important;
        border-radius: 35px !important;
        border: 1px dotted rgba(168, 85, 247, 0.3) !important;
        animation: premiumRingRotate 20s linear infinite !important;
        display: block !important;
    }

    .about-border {
        display: none !important;
    }

    .about-border::before,
    .about-border::after {
        display: none !important;
    }

    /* ========== ABOUT STATS - HORIZONTAL PREMIUM LAYOUT ========== */
    .about-stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-top: 2.5rem !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .about-text .stat {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        flex: 1 !important;
        padding: 18px 8px !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        backdrop-filter: blur(15px) !important;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
        opacity: 1 !important;
        transform: none !important;
        position: relative !important;
        overflow: hidden !important;
        gap: 0 !important;
    }

    /* Top accent line */
    .about-text .stat::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 20% !important;
        right: 20% !important;
        width: auto !important;
        height: 2px !important;
        background: linear-gradient(90deg, transparent, #00d4ff, transparent) !important;
        border-radius: 0 0 4px 4px !important;
        opacity: 1 !important;
        transition: all 0.3s ease !important;
    }

        .about-text .stat-number {
            min-width: 56px !important;
            height: 56px !important;
            font-size: 1.35rem !important;
            font-weight: 800 !important;
            background: rgba(0,212,255,0.08) !important;
            border-radius: 10px !important;
            color: #111 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin-bottom: 0 !important;
            margin-right: 10px !important;
            border: 1px solid rgba(0,212,255,0.18) !important;
        }

    .about-text .stat:hover {
        transform: translateY(-5px) !important;
        background: rgba(0, 212, 255, 0.05) !important;
        border-color: rgba(0, 212, 255, 0.2) !important;
        box-shadow:
            0 15px 40px rgba(0, 0, 0, 0.4),
            0 0 25px rgba(0, 212, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    }

    .about-text .stat:hover::before {
        left: 10% !important;
        right: 10% !important;
        box-shadow: 0 0 10px currentColor !important;
    }

    .about-text .stat-number {
        display: block !important;
        font-size: 1.8rem !important;
        font-weight: 800 !important;
        color: #00d4ff !important;
        -webkit-text-fill-color: #00d4ff !important;
        margin-bottom: 6px !important;
        letter-spacing: -1px !important;
        min-width: auto !important;
        height: auto !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
    }

    .about-text .stat:nth-child(1) .stat-number {
        color: #00d4ff !important;
        -webkit-text-fill-color: #00d4ff !important;
        background: transparent !important;
    }

    .about-text .stat:nth-child(2) .stat-number {
        color: #a855f7 !important;
        -webkit-text-fill-color: #a855f7 !important;
        background: transparent !important;
    }

    .about-text .stat:nth-child(3) .stat-number {
        color: #ec4899 !important;
        -webkit-text-fill-color: #ec4899 !important;
        background: transparent !important;
    }

    .about-text .stat-label {
        font-size: 0.65rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-weight: 500 !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        line-height: 1.3 !important;
    }

    /* Education content */
    .education-content {
        grid-template-columns: 1fr;
    }

    /* Contact content */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }


    /* ===================================
   Small Mobile: 480px and below
   ULTRA PREMIUM - SCALED DOWN
   =================================== */
    @media screen and (max-width: 480px) {

        /* Extra compact hero */
        .hero {
            padding: 120px 12px 50px 12px !important;
        }

        .hero-container {
            padding: 0 8px !important;
            gap: 15px !important;
            max-width: 100% !important;
        }

        /* Profile - Premium Scaled */
        .hero-visual {
            margin-top: 10px !important;
            margin-bottom: 20px !important;
        }

        .hero-image-wrapper {
            max-width: 200px !important;
        }

        .profile-frame {
            width: 180px !important;
            max-width: 180px !important;
            height: 180px !important;
            margin-bottom: 20px !important;
            border-width: 3px !important;
        }

        .image-glow {
            top: -15px !important;
            left: -15px !important;
            right: -15px !important;
            bottom: -15px !important;
            filter: blur(15px) !important;
        }

        /* Social Icons - Premium Compact */
        .profile-social-icons {
            padding: 8px 14px !important;
            gap: 10px !important;
        }

        .profile-social-link {
            width: 30px !important;
            height: 30px !important;
            font-size: 12px !important;
        }

        /* CV Button - Premium Compact */
        .profile-actions {
            margin-top: 12px !important;
        }

        .btn-cv {
            padding: 10px 22px !important;
            font-size: 0.75rem !important;
        }

        /* Typography - Premium Compact */
        .hero-content {
            margin-top: 12px !important;
        }

        .badge-text {
            padding: 6px 14px !important;
            font-size: 0.65rem !important;
        }

        .title-line {
            font-size: 0.7rem !important;
            letter-spacing: 2px !important;
        }

        .title-name {
            font-size: clamp(2rem, 9vw, 2.5rem) !important;
        }

        .title-tagline {
            font-size: 0.85rem !important;

            /* About Stats - Vertical, Detailed for Mobile */
            .about-stats {
                display: flex !important;
                flex-direction: column !important;
                gap: 16px !important;
                margin-top: 2.2rem !important;
                width: 100% !important;
                padding: 0 2px !important;
            }

            .about-text .stat {
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: flex-start !important;
                text-align: left !important;
                padding: 16px 14px !important;
                background: rgba(255, 255, 255, 0.03) !important;
                border-radius: 14px !important;
                border: 1px solid rgba(0, 212, 255, 0.10) !important;
                box-shadow: 0 4px 18px rgba(0, 212, 255, 0.07) !important;
                gap: 18px !important;
                position: relative !important;
                overflow: hidden !important;
            }

            .about-text .stat-number {
                min-width: 56px !important;
                height: 56px !important;
                font-size: 1.35rem !important;
                font-weight: 800 !important;
                background: rgba(0, 212, 255, 0.08) !important;
                border-radius: 10px !important;
                color: #00d4ff !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                margin-bottom: 0 !important;
                margin-right: 10px !important;
                border: 1px solid rgba(0, 212, 255, 0.18) !important;
            }

            .about-text .stat-label {
                font-size: 0.92rem !important;
                color: rgba(255, 255, 255, 0.85) !important;
                font-weight: 500 !important;
                letter-spacing: 0.2px !important;
                text-transform: none !important;
                line-height: 1.4 !important;
            }

            .about-text .stat:nth-child(1) .stat-number {
                background: rgba(0, 212, 255, 0.13) !important;
                color: #00d4ff !important;
                border-color: #00d4ff !important;
            }

            .about-text .stat:nth-child(2) .stat-number {
                background: rgba(168, 85, 247, 0.13) !important;
                color: #a855f7 !important;
                border-color: #a855f7 !important;
            }

            .about-text .stat:nth-child(3) .stat-number {
                background: rgba(236, 72, 153, 0.13) !important;
                color: #ec4899 !important;
                border-color: #ec4899 !important;
            }
        }

        .hero-subtitle {
            font-size: 0.8rem !important;
        }

        /* Description Cards - Premium Compact */
        .hero-description {
            gap: 8px !important;
        }

        .hero-description p {
            font-size: 0.78rem !important;
            padding: 12px 14px !important;
            border-left-width: 2px !important;
            border-radius: 0 12px 12px 0 !important;
        }

        /* Stats - Premium Compact */
        .hero-stats {
            gap: 8px !important;
        }

        .stat-item {
            min-width: 85px !important;
            max-width: 100px !important;
            padding: 12px 10px !important;
            border-radius: 16px !important;
        }

        .stat-number {
            font-size: 1.4rem !important;
        }

        .stat-label {
            font-size: 0.6rem !important;
        }

        /* Buttons - Premium Compact */
        .hero-buttons {
            gap: 10px !important;
        }

        .btn {
            padding: 12px 20px !important;
            font-size: 0.78rem !important;
        }

        /* Container padding */
        .container {
            padding: 0 12px !important;
        }

        .nav-container {
            padding: 0 12px !important;
        }

        /* Sections */
        .section-title {
            font-size: 1.8rem !important;
        }

        /* About Section - Premium Scaled */
        .about-image-container {
            width: 220px !important;
            height: 220px !important;
            margin: 40px auto !important;
        }

        .about-image-container::before {
            top: -30px !important;
            left: -30px !important;
            right: -30px !important;
            bottom: -30px !important;
            filter: blur(15px) !important;
        }

        .about-image-container::after {
            top: -20px !important;
            left: -20px !important;
            right: -20px !important;
            bottom: -20px !important;
        }

        .profile-image-frame {
            width: 220px !important;
            height: 220px !important;
            padding: 4px !important;
        }

        .image-border {
            top: -25px !important;
            left: -25px !important;
            right: -25px !important;
            bottom: -25px !important;
        }

        .image-border::before {
            top: -10px !important;
            left: -10px !important;
            right: -10px !important;
            bottom: -10px !important;
        }

        /* About Stats - Premium Stack */
        .about-stats {
            grid-template-columns: 1fr !important;
            gap: 10px !important;
        }

        .about-text .stat {
            padding: 16px 12px !important;
            border-radius: 16px !important;
        }

        .about-text .stat-number {
            font-size: 1.6rem !important;
        }

        .about-text .stat-label {
            font-size: 0.92rem !important;
            color: #111 !important;
            font-weight: 500 !important;
            letter-spacing: 0.2px !important;
            text-transform: none !important;
            line-height: 1.4 !important;
        }
    }
}
