:root {
    /* Color Palette - Navy & Black Focus */
    --bg-black: #050505;
    --navy-deep: #0a1128;
    --navy-glow: #1e3a8a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-blue: #3b82f6;

    /* Liquid Glass Tokens */
    --glass-bg: rgba(10, 17, 40, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8),
        inset 0 0 1px 1px rgba(255, 255, 255, 0.05);

    /* Animation Speeds */
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-base: 0.4s var(--ease-apple);

    --border-radius: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 1. Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/site/assets/noise.png'); /* 8-10% noise texture */
    opacity: 0.03;
    pointer-events: none;
    z-index: 999;
}
/* Epic Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Animated Grid Background */
.loader-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px);
    }
}

/* 3D Hypercube Core */
.loader-scene {
    width: 200px;
    height: 200px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.cube-container {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s linear infinite;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.cube.inner {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    animation: rotateCubeReverse 8s linear infinite;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.cube.inner .face {
    border: 1px solid var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.face.front {
    transform: rotateY(0deg) translateZ(50px);
}

.face.back {
    transform: rotateY(180deg) translateZ(50px);
}

.face.right {
    transform: rotateY(90deg) translateZ(50px);
}

.face.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.face.top {
    transform: rotateX(90deg) translateZ(50px);
}

.face.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

.cube.inner .face.front {
    transform: rotateY(0deg) translateZ(30px);
}

.cube.inner .face.back {
    transform: rotateY(180deg) translateZ(30px);
}

.cube.inner .face.right {
    transform: rotateY(90deg) translateZ(30px);
}

.cube.inner .face.left {
    transform: rotateY(-90deg) translateZ(30px);
}

.cube.inner .face.top {
    transform: rotateX(90deg) translateZ(30px);
}

.cube.inner .face.bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes rotateCubeReverse {
    0% {
        transform: rotateX(0) rotateY(0) rotateZ(0);
    }

    100% {
        transform: rotateX(-360deg) rotateY(-360deg) rotateZ(-360deg);
    }
}

/* Content & Logo */
.loader-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

/* Refined Logo Text - Liquid Glass */
.loader-logo-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
    padding: 0 20px;
}

.loader-logo-text {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.4) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    animation: shineText 4s linear infinite;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
    text-transform: uppercase;
}

@keyframes shineText {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.loader-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.5em;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    opacity: 0.9;
    font-weight: 300;
}

/* Elegant Corner Decorations */
.loader-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    opacity: 0.6;
    transition: all 0.5s ease;
}

.loader-corner::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Positioning */
.corner-tl {
    top: 40px;
    left: 40px;
    border-right: none;
    border-bottom: none;
}

.corner-tl::after {
    top: -4px;
    left: -4px;
}

.corner-tr {
    top: 40px;
    right: 40px;
    border-left: none;
    border-bottom: none;
}

.corner-tr::after {
    top: -4px;
    right: -4px;
}

.corner-bl {
    bottom: 40px;
    left: 40px;
    border-right: none;
    border-top: none;
}

.corner-bl::after {
    bottom: -4px;
    left: -4px;
}



.corner-br {
    bottom: 40px;
    right: 40px;
    border-left: none;
    border-top: none;
}

.corner-br::after {
    bottom: -4px;
    right: -4px;
}


.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-bottom: 40px;
}

.loader-letter {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, #ffffff, var(--accent-blue), #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: letterReveal 0.6s var(--ease-apple) forwards, shimmer 3s ease-in-out infinite;
    opacity: 0;
    transform: translateY(30px);
}

.loader-letter:nth-child(1) {
    animation-delay: 0.1s, 0.9s;
}

.loader-letter:nth-child(2) {
    animation-delay: 0.15s, 0.95s;
}

.loader-letter:nth-child(3) {
    animation-delay: 0.2s, 1s;
}

.loader-letter:nth-child(4) {
    animation-delay: 0.25s, 1.05s;
}

.loader-letter:nth-child(5) {
    animation-delay: 0.3s, 1.1s;
}

.loader-letter:nth-child(6) {
    animation-delay: 0.35s, 1.15s;
}

.loader-letter:nth-child(7) {
    animation-delay: 0.4s, 1.2s;
}

.loader-letter:nth-child(8) {
    animation-delay: 0.45s, 1.25s;
}

.loader-letter:nth-child(9) {
    animation-delay: 0.5s, 1.3s;
}

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

@keyframes shimmer {

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

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

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), #60a5fa, var(--accent-blue));
    background-size: 200% auto;
    border-radius: 10px;
    animation: loadProgress 2s var(--ease-apple) forwards, gradientMove 1s linear infinite;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

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

/* Body styles only - removed html overflow to fix hero scroll issue */

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    cursor: none;
    /* Hide default cursor */
}

/* Ensure no default cursor on any element */
*,
*::before,
*::after {
    cursor: none !important;
}

/* Hide cursor on touch devices */
@media (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body,
    input,
    textarea,
    button,
    a,
    * {
        cursor: none !important;
    }

    a,
    button,
    .btn {
        cursor: pointer !important;
    }
}

/* 3D Background */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
}

/* Custom Cursor - Liquid Blue Design */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-dot.pulsing {
    width: 12px;
    height: 12px;
    background-color: #fff;
    box-shadow: 0 0 20px #fff;
    animation: cursorPulse 1s infinite alternate;
}

/* Stop Pulse and Hide Outline in Text Mode */
.cursor-dot.text-mode {
    width: 3px;
    height: 28px;
    border-radius: 1px;
    background-color: #fff;
    box-shadow: 0 0 15px var(--accent-blue), 0 0 30px var(--accent-blue);
    animation: iBeamBlink 0.8s infinite step-end !important;
}

@keyframes iBeamBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor-dot.text-mode~.cursor-outline,
.cursor-outline.hidden {
    display: none !important;
}

* {
    cursor: none !important;
}

@keyframes cursorPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

.cursor-outline {
    width: 45px;
    height: 45px;
    border: 1.5px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

.cursor-outline.hidden {
    opacity: 0;
}

/* Custom Scrollbar - Navy Glass Style */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--navy-deep), var(--accent-blue));
    border-radius: 10px;
    border: 3px solid var(--bg-black);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Star Particles following cursor */
.star-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 10px white, 0 0 20px var(--accent-blue);
    animation: starFade 2s forwards;
}

@keyframes starFade {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }

    100% {
        transform: scale(0) translateY(50px);
        opacity: 0;
    }
}

/* Menu Trigger - Elite Icon Design */
.menu-trigger {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.5s var(--ease-apple);
    cursor: none;
}

.menu-trigger:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.menu-icon-container {
    width: 25px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.line {
    height: 2px;
    background: var(--text-primary);
    transition: all 0.4s var(--ease-apple);
    border-radius: 2px;
}

.line-1 {
    width: 100%;
}

.line-2 {
    width: 60%;
}

.line-3 {
    width: 80%;
}

.menu-trigger.active .line-1 {
    transform: translateY(8px) rotate(45deg);
    width: 100%;
}

.menu-trigger.active .line-2 {
    opacity: 0;
}

.menu-trigger.active .line-3 {
    transform: translateY(-8px) rotate(-45deg);
    width: 100%;
}

/* Fullscreen Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-apple);
}

.menu-overlay.active {
    transform: translateY(0);
}

.overlay-nav ul {
    list-style: none;
    text-align: center;
}

.overlay-links a {
    display: inline-block;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: all 0.5s var(--ease-apple);
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
}

.menu-overlay.active .overlay-links a {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.overlay-links a:hover {
    color: var(--accent-blue);
}

.overlay-footer {
    margin-top: 4rem;
    text-align: center;
}

.social-links-minimal i {
    font-size: 24px;
    margin: 0 15px;
    color: var(--text-secondary);
    transition: color 0.3s var(--ease-apple);
}

.social-links-minimal a:hover i {
    color: var(--accent-blue);
}

/* Liquid Glass Cards */
.glass-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius);
    padding: 3rem;
    transition: transform 0.3s var(--ease-apple), border-color 0.3s;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Main Layout Positioning */
main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

section {
    margin-bottom: 8rem;
    scroll-margin-top: 100px;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Status Badge - FIXED CORNER */
.status-badge-container {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1001;
}

.status-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #10b981;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

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

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    padding-top: clamp(150px, 32vh, 400px);
    /* Responsive vertical position */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    /* Consistent gap between title and subtitle */
}

#typewriter-text {
    display: inline;
    position: relative;
    background: linear-gradient(90deg, #fff 0%, #60a5fa 50%, #fff 100%);
    /* Stronger blue for visibility */
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    /* Add subtle glow to reduce 'transparent' look */
    animation: textShimmer 3s linear infinite;
}

@keyframes textShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

#typewriter-text::after {
    content: "|";
    position: relative;
    margin-left: 2px;
    color: var(--accent-blue);
    animation: blinkCursor 0.8s infinite;
    font-weight: 300;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1.25;
    /* Increased from 1.1 to prevent clipping of descenders and smoky effect */
    margin-bottom: 0;
    padding: 0;
    /* Remove padding here to align effect with text */
    font-weight: 800;
    letter-spacing: -0.05em;
    position: relative;
    display: inline-block;
    z-index: 20;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 25%, #ffffff 50%, #94a3b8 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidMetal 4s ease-in-out infinite alternate;
}

.liquid-text {
    position: relative;
    cursor: default;
}

/* Smoother Localized Smoky Liquid */
.liquid-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: inherit;
    /* Smoky Mist Effect: ULTRA High Visibility */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(224, 242, 254, 1) 50%,
            /* Full opacity for maximum punch */
            rgba(255, 255, 255, 0) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flowGradient 2s ease-in-out infinite, liquidMetal 3s ease-in-out infinite alternate;
    filter: url(#liquid-effect) blur(4px) brightness(3.5) contrast(2);
    mix-blend-mode: plus-lighter;
    transform: scale(1.05);
    /* Erupt from text */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s var(--ease-apple);

    /* Much softer radial mask for seamless merging */
    -webkit-mask-image: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            rgba(0, 0, 0, 0.6) 30%,
            rgba(0, 0, 0, 0.1) 60%,
            transparent 100%);
    mask-image: radial-gradient(circle 200px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            rgba(0, 0, 0, 0.6) 30%,
            rgba(0, 0, 0, 0.1) 60%,
            transparent 100%);
}

@keyframes flowGradient {
    0% {
        background-position: 0% 50%;
    }

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

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

.liquid-text:hover::after {
    opacity: 1;
}

.liquid-text:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ADVANCED LAYERING: Border split into Top (Behind) and Bottom (Over) */
.hero-title-wrapper {
    position: relative;
    display: inline-block;
    padding: 10px 40px;
    /* Moved from h1 to wrapper */
}

.hero-title-wrapper::before,
.hero-title-wrapper::after {
    content: "";
    position: absolute;
    inset: -2px;
    /* Slight offset to wrap h1 perfectly */
    padding: 2px;
    border-radius: 24px;
    background: conic-gradient(from var(--angle), transparent 0%, var(--accent-blue) 40%, white 50%, var(--accent-blue) 60%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotateAngle 3s linear infinite;
    pointer-events: none;
}

/* Top half border - goes behind the profile image */
.hero-title-wrapper::before {
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

/* Bottom half border - stays above the profile image */
.hero-title-wrapper::after {
    z-index: 15;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

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

@keyframes liquidMetal {
    0% {
        background-position: 0% 50%;
        transform: scale(1);
    }

    100% {
        background-position: 100% 50%;
        transform: scale(1.02);
    }
}

.hero-content .subtitle {
    position: relative;
    z-index: 20;
    /* Above icons (12) */
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-primary);
    max-width: 950px;
    margin: 0;
    margin-bottom: -1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    min-height: 1.5em;
    display: block;
}

/* Layered Profile Effect */
.profile-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* Middle z-index for layering */
    pointer-events: none;
    transform: translateY(-120px);
}

.hero-profile-img {
    width: clamp(300px, 60vw, 820px);
    /* Reduced from 950px/65vw to make it smaller as requested */
    max-width: 100%;
    height: auto;
    z-index: 1;
    border-radius: 120px;
    object-fit: cover;
    mask-image: radial-gradient(circle at center, black 35%, transparent 75%);
    transition: width 0.3s ease;
    /* Smooth scaling */
}

/* Height-based scaling for short screens (e.g., 16:9) */
@media (max-height: 900px) and (min-width: 769px) {
    .hero-content h1 {
        font-size: clamp(3rem, 9vw, 7rem) !important;
        max-width: 950px;
        /* Constrain width on shorter screens */
        margin: 0 auto;
    }

    .hero-profile-img {
        width: clamp(400px, 85vh, 920px) !important;
    }

    .hero-content {
        padding-top: 28vh !important;
        gap: 1.2rem !important;
    }
}

@media (max-height: 720px) and (min-width: 769px) {
    .hero-content h1 {
        font-size: clamp(2.5rem, 8.5vw, 6rem) !important;
        max-width: 750px;
        /* Further constrain width on very short screens */
    }

    .hero-profile-img {
        width: clamp(350px, 62vh, 880px) !important;
    }

    .profile-wrapper {
        transform: translateY(-60px) !important;
    }

    .scroll-indicator {
        transform: translateX(-50%) scale(0.85) !important;
        bottom: 15px !important;
    }
}

/* 3D Floating Objects - Middle Layer */
.floating-objects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 12;
    /* Above Image (10), but under Bottom Border (15) and Text (20) */
    /* Middle Layer - Between Image and Text */
    pointer-events: none;
    overflow: visible;
    /* Allow icons to spread outside without being cut */
}

.float-obj {
    position: absolute;
    width: 150px;
    height: auto;
    mix-blend-mode: screen;
    animation: objFloat 15s ease-in-out infinite;
    opacity: 1;
    z-index: 10;
}

/* Dynamic Blurry Repetitions for Hero Cluster */
.float-atm-blur {
    filter: blur(50px);
    opacity: 0.3;
    z-index: -3;
    animation-duration: 25s;
}

.float-atm-2 {
    top: 15%;
    right: 18%;
}

.float-atm-3 {
    top: 18%;
    left: 68%;
}

.float-atm-4 {
    top: 4%;
    right: 12%;
}

.float-atm-5 {
    top: 12%;
    right: 48%;
}

.float-atm-6 {
    top: 18%;
    left: 32%;
}

@keyframes objFloat {

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

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

.profile-glow {
    position: absolute;
    width: min(80vh, 100%);
    height: 80vh;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.45) 0%, transparent 70%);
    z-index: -1;
    filter: blur(120px);
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) scale(1.02);
    }

    50% {
        transform: translateY(-40px) scale(1);
    }
}

/* Expertise Grid - Restored */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.expertise-card {
    text-align: center;
    transition: transform 0.5s var(--ease-apple);
}

.expertise-card:hover {
    transform: translateY(-10px);
}

.expertise-card i {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* About Section Styles */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Projects Section Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-apple);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 17, 40, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s var(--ease-apple);
}

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

.project-link {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--bg-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-apple);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-info {
    padding: 2.5rem;
}

.project-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-tags span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Contact Form Enhancements */
.contact-card {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 20px 25px;
    border-radius: 18px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
    animation: inputTypingGlow 2s infinite alternate;
}

@keyframes inputTypingGlow {
    0% {
        border-color: rgba(59, 130, 246, 0.4);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.1);
    }

    100% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.3);
    }
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-item i {
    color: var(--accent-blue);
    width: 24px;
    height: 24px;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--accent-blue);
}

.expertise-card {
    text-align: center;
}

.expertise-card i {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* AI Tools Showcase */
.tools-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tool-tag {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s var(--ease-apple);
}

.tool-tag:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    padding: 18px 45px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.5s var(--ease-apple);
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: none !important;
}

.cta-buttons {
    position: relative;
    z-index: 20;
    /* Ensure buttons are above icons */
}

a,
button,
.cta-buttons a {
    cursor: none !important;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
}

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

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

.btn:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.15);
}

/* Entrance Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--ease-apple);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.glass-footer {
    padding: 6rem 2rem 3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: linear-gradient(to top, rgba(10, 17, 40, 0.5), transparent);
    border-top: 1px solid var(--glass-border);
}

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

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* Footer Social Icons */
.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-apple);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Floating Back to Top Button - Liquid Glass */
.floating-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(var(--glass-blur));
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-apple);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    /* Clip the sweeping effect inside the circle */
}

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

.floating-back-to-top::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
    border-radius: 50%;
}

.floating-back-to-top:hover::before {
    left: 100%;
}

.floating-back-to-top:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-5px);
}

.floating-back-to-top.clicked {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transform: translateY(0);
}

.floating-back-to-top.hide-near-footer {
    opacity: 0;
    visibility: hidden;
}

/* Scroll Indicator - Modern Mouse Style */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    /* Moved down from 50px */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.mouse {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-blue);
}

.scroll-text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--text-primary);
    opacity: 0.7;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(18px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .menu-trigger {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .status-badge-container {
        top: 20px;
        left: 20px;
        transform: scale(0.8);
        transform-origin: top left;
    }

    .hero-content {
        padding-top: 100px;
        /* Lower text more on mobile */
    }

    .hero-section {
        height: 100svh;
        min-height: auto;
        justify-content: flex-start;
        padding-top: 20vh;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-content .subtitle {
        font-size: clamp(0.75rem, 3vw, 1rem);
    }

    /* Modern Touch-Style Scroll Indicator */
    .scroll-indicator {
        bottom: 150px;
        /* Raise it up on mobile */
    }

    .mouse {
        display: none;
    }

    .scroll-indicator::after {
        content: "";
        width: 30px;
        height: 30px;
        border-bottom: 2px solid var(--accent-blue);
        border-right: 2px solid var(--accent-blue);
        transform: rotate(45deg);
        animation: touchScrollPulse 2s infinite;
        margin-top: -10px;
    }

    @keyframes touchScrollPulse {
        0% {
            transform: rotate(45deg) translate(0, 0);
            opacity: 0.3;
        }

        50% {
            transform: rotate(45deg) translate(5px, 5px);
            opacity: 1;
        }

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

    /* MOBILE IMAGE LIFT */
    .profile-wrapper {
        transform: translate(2%, -425px);
        /* Move right and up */
    }

    .floating-objects {
        top: -10vh;
    }

    .hero-profile-img {
        width: 100%;
        max-width: 100%;
        mask-image: radial-gradient(circle at center, black 45%, transparent 80%);
    }

    main {
        padding-top: 100px;
    }

    [class*="float-atm-"],
    .float-obj {
        width: 80px;
        opacity: 0.8 !important;
    }

    /* Maximize top gap for ribbon - extreme layering for mobile */
    .hero-title-wrapper::before {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 85%);
        /* Behind the image for 85% of height */
    }

    .hero-title-wrapper::after {
        clip-path: polygon(0 85%, 100% 85%, 100% 100%, 0 100%);
        /* Front of the image only for bottom 15% */
    }
}