@import url('https://fonts.cdnfonts.com/css/valorant');

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

:root {
    --bg-dark: #07090e;
    --accent-cyan: #00f0ff;
    --accent-cyan-glow: rgba(0, 240, 255, 0.45);
    --accent-blue: #0284c7;
    --accent-sky: #38bdf8;
    --text-white: #ffffff;
    --grid-color: rgba(255, 255, 255, 0.06);

    /* Full backward-compatibility aliases */
    --accent-purple: var(--accent-cyan);
    --accent-purple-glow: var(--accent-cyan-glow);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.cursor-outline.hovered {
    width: 60px;
    height: 60px;
    border-color: var(--accent-purple);
    background-color: rgba(0, 240, 255, 0.08);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, var(--accent-purple), #38bdf8);
    box-shadow: 0 0 10px var(--accent-purple), 0 0 20px rgba(0, 240, 255, 0.3);
    z-index: 100000;
    transition: width 0.05s linear;
    border-radius: 0 2px 2px 0;
}

/* Background Canvas & Grid */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -15;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

/* ── Floating Navbar ── */
.site-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.site-nav.nav-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(15, 15, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.nav-indicator {
    position: absolute;
    height: calc(100% - 12px);
    top: 6px;
    left: 10px;
    width: 40px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(2, 132, 199, 0.2));
    border: 1px solid rgba(0, 240, 255, 0.4);
    border-radius: 50px;
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 8px rgba(0, 240, 255, 0.15);
    z-index: 0;
    pointer-events: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 50px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.nav-link .nav-icon {
    font-size: 0.8rem;
    display: none;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

.nav-link.active {
    color: #fff;
    font-weight: 600;
}

/* ── Preloader: Boot Sequence ── */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1), filter 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

.preloader.loaded {
    opacity: 0;
    transform: scale(1.15);
    filter: blur(20px);
    visibility: hidden;
    pointer-events: none;
}

.preloader-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.preloader-particle {
    position: absolute;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    15% {
        opacity: 0.8;
        transform: translateY(-15vh) scale(1.2);
    }
    85% {
        opacity: 0.4;
        transform: translateY(-85vh) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-120vh) scale(0.5);
    }
}

.preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    animation: preloaderFadeIn 0.8s ease 0.2s forwards;
}

.preloader-brand-main {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
}

.preloader-brand-name {
    color: #fff;
}

.preloader-brand-accent {
    font-family: 'VALORANT', sans-serif;
    color: var(--accent-purple);
    font-weight: 400;
    margin-left: 8px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.preloader-brand-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 4px;
    text-transform: uppercase;
}

.subtitle-line {
    width: 30px;
    height: 1px;
    background: rgba(0, 240, 255, 0.5);
}

.preloader-sleek-track {
    width: 280px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    z-index: 3;
    opacity: 0;
    animation: preloaderFadeIn 0.8s ease 0.4s forwards;
    margin: 15px 0;
}

.preloader-sleek-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-purple);
    border-radius: 4px;
    box-shadow: 0 0 12px var(--accent-purple), 0 0 24px rgba(0, 240, 255, 0.5);
    transition: width 0.08s linear;
}

.preloader-tagline {
    display: flex;
    gap: 20px;
    z-index: 2;
    opacity: 0;
    animation: preloaderFadeIn 0.8s ease 0.8s forwards;
}

.tagline-word {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    animation: taglineCycle 3.2s ease-in-out infinite;
    animation-delay: calc(var(--w) * 0.8s);
}

@keyframes taglineCycle {
    0%, 100% {
        color: rgba(255, 255, 255, 0.2);
        text-shadow: none;
    }
    25% {
        color: var(--accent-purple);
        text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    }
    50% {
        color: rgba(255, 255, 255, 0.2);
        text-shadow: none;
    }
}

@keyframes preloaderFadeIn {
    to {
        opacity: 1;
    }
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.sub-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin: 12px 0;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 1.3em;
    text-align: center;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.purple-text,
.cyan-text,
.accent-text {
    color: var(--accent-purple);
    font-family: 'VALORANT', sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
}

.year {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-top: 15px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-resume {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #fff;
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.btn-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-15deg);
    animation: glowLine 3s infinite linear;
}

.btn-resume:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    background: rgba(0, 240, 255, 0.1);
    color: #fff;
}

@keyframes glowLine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

/* Floating Tech Icons */
.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    animation: floatIcon 4s infinite ease-in-out;
}

.icon-top-left {
    top: 22%;
    left: 8%;
    color: #4ade80;
    opacity: 0;
}

.page-loaded .icon-top-left {
    animation: slideInTL 1.5s ease-out forwards, floatIcon 4s infinite ease-in-out 1.5s;
}

.icon-top-right {
    top: 22%;
    right: 8%;
    color: #fc8eac;
    opacity: 0;
}

.page-loaded .icon-top-right {
    animation: slideInTR 1.5s ease-out forwards, floatIcon 4s infinite ease-in-out 1.5s;
}

.icon-bottom-left {
    bottom: 22%;
    left: 8%;
    color: #38bdf8;
    opacity: 0;
}

.page-loaded .icon-bottom-left {
    animation: slideInBL 1.5s ease-out forwards, floatIcon 4s infinite ease-in-out 1.5s;
}

.icon-bottom-right {
    bottom: 22%;
    right: 8%;
    color: #fbbf24;
    opacity: 0;
}

.page-loaded .icon-bottom-right {
    animation: slideInBR 1.5s ease-out forwards, floatIcon 4s infinite ease-in-out 1.5s;
}

@keyframes slideInTL {
    0% { top: -20%; left: -20%; opacity: 0; }
    100% { top: 22%; left: 8%; opacity: 1; }
}

@keyframes slideInTR {
    0% { top: -20%; right: -20%; opacity: 0; }
    100% { top: 22%; right: 8%; opacity: 1; }
}

@keyframes slideInBL {
    0% { bottom: -20%; left: -20%; opacity: 0; }
    100% { bottom: 22%; left: 8%; opacity: 1; }
}

@keyframes slideInBR {
    0% { bottom: -20%; right: -20%; opacity: 0; }
    100% { bottom: 22%; right: 8%; opacity: 1; }
}

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

/* ── Section Commons ── */
section {
    padding: 80px 20px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: #fff;
    text-align: center;
    letter-spacing: -0.5px;
}

/* ── About Section ── */
.about-section {
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: transparent;
    z-index: 2;
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 60px;
    border-radius: 20px;
    max-width: 1100px;
    text-align: center;
    position: relative;
    transform: perspective(1000px) rotateX(20deg) translateY(50px) scale(0.9);
    opacity: 0;
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 30%, var(--accent-purple), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
    animation: rotateBorder 3s linear infinite;
}

.scroll-reveal.expanded {
    transform: perspective(1000px) rotateX(0deg) translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
}

.glass-card h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 24px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    position: relative;
    z-index: 2;
}

.scroll-reveal.expanded h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.glass-card p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.85;
    color: #d1d5db;
    max-width: 90ch;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
}

.scroll-reveal.expanded p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* ── Work Experience Timeline Section ── */
.projects-section {
    padding: 80px 20px;
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}

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

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 1;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--accent-purple));
    box-shadow: 0 0 15px var(--accent-purple);
    transition: height 0.4s ease-out;
}

.timeline-progress::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 17px;
    height: 17px;
    background: var(--accent-purple);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-purple), 0 0 40px var(--accent-purple);
    z-index: 3;
}

.timeline-item {
    padding: 80px 0;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.left {
    left: 0;
    padding-right: 80px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 80px;
    text-align: left;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    text-align: left;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.timeline-content:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.timeline-content p {
    color: #d1d5db;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.project-tag {
    background: rgba(0, 240, 255, 0.18);
    color: var(--accent-purple);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    margin-bottom: 16px;
    display: inline-block;
    width: max-content;
}

.timeline-number {
    position: absolute;
    top: 0;
    font-size: 5.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 240, 255, 0.4);
    line-height: 1;
    opacity: 0.8;
    z-index: 0;
    font-family: 'VALORANT', sans-serif;
}

.timeline-item.left .timeline-number {
    right: 20px;
    top: -20px;
}

.timeline-item.right .timeline-number {
    left: 20px;
    top: -20px;
}

.timeline-dot {
    position: absolute;
    top: 60px;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 3px solid var(--accent-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-dot.active {
    box-shadow: 0 0 20px var(--accent-purple);
    border-color: #fff;
    background: rgba(0, 240, 255, 0.3);
}

.timeline-item.left .timeline-dot {
    right: -10px;
}

.timeline-item.right .timeline-dot {
    left: -10px;
}

.timeline-date {
    position: absolute;
    top: 60px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-purple);
    font-family: 'VALORANT', sans-serif;
    letter-spacing: 1px;
    width: 220px;
}

.timeline-item.left .timeline-date {
    left: calc(100% + 50px);
    text-align: left;
}

.timeline-item.right .timeline-date {
    right: calc(100% + 50px);
    text-align: right;
}

/* ── Projects Showcase Grid ── */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 240, 255, 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-card > * {
    position: relative;
    z-index: 1;
}

.experience-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.35);
}

.experience-date {
    font-family: 'VALORANT', sans-serif;
    color: var(--accent-purple);
    font-size: 1.1rem;
    position: absolute;
    top: 40px;
    right: 40px;
    letter-spacing: 1px;
}

.experience-card h3 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.experience-card p {
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-links-wrapper {
    margin-top: auto;
    display: flex;
    gap: 15px;
    padding-top: 15px;
    flex-wrap: wrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-btn:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    background: rgba(0, 240, 255, 0.1);
    color: #fff;
}

.project-btn i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.project-btn.inactive-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #6b7280;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Technical Skills Section ── */
.skills-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.skills-filter,
.skill-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-purple), #0284c7);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
    border-radius: 50px;
}

.filter-btn:hover {
    border-color: rgba(0, 240, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.filter-btn.active {
    border-color: var(--accent-purple);
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(0, 240, 255, 0.15);
}

.filter-btn.active::before {
    opacity: 1;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-card {
    height: 130px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    color: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.skill-card.filter-hide {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none;
}

.skill-card.d-none {
    display: none !important;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: linear-gradient(180deg, var(--accent-purple), #4c1d95);
    border-radius: 45% 55% 40% 60% / 55% 60% 35% 45%;
    z-index: 1;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.95;
}

.skill-card:hover::before {
    top: -50%;
    animation: wave 5s infinite linear;
}

@keyframes wave {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--accent-purple);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0.7;
}

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

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.skill-card:hover::after {
    opacity: 1;
    box-shadow: 0 0 20px var(--accent-purple);
    filter: drop-shadow(0 0 5px var(--accent-purple));
}

.skill-card i {
    font-size: 2.3rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.skill-card:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}

.skill-card span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.85;
    transition: all 0.3s;
    z-index: 2;
    position: relative;
    text-align: center;
}

.skill-card:hover span {
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    color: #fff;
    transform: scale(1.05);
}

/* ── Certifications Section ── */
.certifications-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1150px;
    margin: 0 auto;
}

.cert-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cert-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-purple);
}

.cert-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 240, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cert-icon-fallback {
    font-size: 3.5rem;
    color: var(--accent-purple);
    opacity: 0.85;
}

.cert-item:hover .cert-img-wrapper img {
    transform: scale(1.05);
}

.cert-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.cert-item:hover .cert-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
}

.cert-info {
    padding: 22px;
    background: rgba(0, 0, 0, 0.25);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.cert-info h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.cert-info p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
}

.cert-overlay-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
}

.cert-overlay-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-15deg);
    animation: glowLine 3s infinite linear;
}

.cert-item:hover .cert-overlay-link {
    transform: translateY(0);
    opacity: 1;
}

.cert-overlay-link:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-purple);
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.05) translateY(0);
    color: #fff;
}

/* ── Profiles Section ── */
.profiles-section {
    padding: 80px 20px 120px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    gap: 18px;
}

.profile-img-main {
    width: 135px;
    height: 135px;
    border-radius: 50%;
    position: relative;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatProfile 6s infinite ease-in-out;
}

@keyframes floatProfile {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
        box-shadow: 0 15px 40px rgba(0, 240, 255, 0.45);
    }
}

.profile-img-main::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from var(--angle), transparent 20%, var(--accent-purple), transparent 80%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    animation: rotateBorder 4s linear infinite;
}

.profile-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 3;
}

.profile-img-main:hover img {
    transform: scale(1.08) rotate(3deg);
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.profile-text p {
    font-family: 'VALORANT', sans-serif;
    font-size: 1.25rem;
    color: var(--accent-purple);
    letter-spacing: 2px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    padding: 24px 16px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    gap: 12px;
    text-align: center;
}

.profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: conic-gradient(from var(--angle), transparent 40%, var(--accent-purple), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    animation: rotateBorder 3s linear infinite;
    transition: opacity 0.4s ease;
}

.profile-card:hover {
    transform: translateY(-8px) !important;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(0, 240, 255, 0.4);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-icon {
    font-size: 2.2rem;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s ease;
}

.profile-card .fa-linkedin {
    color: #0077b5;
    filter: drop-shadow(0 0 10px rgba(0, 119, 181, 0.3));
}

.profile-card .fa-github {
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.profile-card .fa-instagram {
    color: #e1306c;
    filter: drop-shadow(0 0 10px rgba(225, 48, 108, 0.3));
}

.profile-card .fa-hackerrank {
    color: #2ec866;
    filter: drop-shadow(0 0 10px rgba(46, 200, 102, 0.3));
}

.profile-card:hover .profile-icon {
    transform: scale(1.2) rotateY(360deg);
    transition: transform 1.1s ease;
}

.profile-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 700;
}

.profile-info p {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: all 0.3s;
}

.profile-card:hover .profile-info p {
    color: var(--accent-purple);
    opacity: 1;
}

.profile-note {
    text-align: center;
    margin-top: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    background: linear-gradient(to right, #9ca3af 40%, #ffffff 50%, #9ca3af 60%);
    background-size: 200% auto;
    color: #9ca3af;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ── Contact Section ── */
.contact-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.contact-card {
    background: #0f0f0f;
    padding: 50px;
    border-radius: 20px;
    width: 100%;
    max-width: 750px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 240, 255, 0.1);
    border: 1px solid #1f1f1f;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(45deg, var(--accent-purple), #4c1d95, #0f0f0f, #0f0f0f, var(--accent-purple));
    background-size: 400%;
    z-index: -1;
    animation: neonGlow 10s linear infinite;
    opacity: 0.8;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: #0b0b0b;
    border-radius: 23px;
    z-index: -1;
}

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

.contact-note {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(to right, #9ca3af 40%, #ffffff 50%, #9ca3af 60%);
    background-size: 200% auto;
    color: #9ca3af;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    opacity: 1;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 38px;
    width: 100%;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    font-size: 1.05rem;
    color: #fff;
    background: transparent;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    transition: border-color 0.4s ease;
    font-family: 'Inter', sans-serif;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-bottom-color: var(--accent-purple);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1.05rem;
    color: #6b7280;
    pointer-events: none;
    transition: all 0.4s ease;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -20px;
    font-size: 0.85rem;
    color: var(--accent-purple);
    font-family: 'VALORANT', sans-serif;
    letter-spacing: 1px;
}

.input-icon {
    position: absolute;
    right: 0;
    top: 15px;
    font-size: 1.2rem;
    color: #444;
    transition: all 0.4s ease;
}

.form-group input:focus ~ .input-icon,
.form-group textarea:focus ~ .input-icon {
    color: var(--accent-purple);
    transform: translateY(-5px);
}

.btn-submit {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.5);
    color: #fff;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 10px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-15deg);
    animation: glowLine 3s infinite linear;
}

.btn-submit:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), 0 0 15px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    background: rgba(0, 240, 255, 0.1);
}

/* ── Footer ── */
.footer {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 10;
    margin-top: 60px;
    padding: 40px 20px 25px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
    opacity: 0.6;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 5px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-tagline {
    color: #9ca3af;
    font-size: 0.95rem;
    background: linear-gradient(to right, #9ca3af 40%, #ffffff 50%, #9ca3af 60%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    opacity: 0.9;
}

.footer-nav-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav-links li a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px;
    position: relative;
}

.footer-nav-links li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.footer-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 1px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

.footer-nav-links li a:hover::after {
    width: 80%;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: transparent;
}

.social-link.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.4);
}

.social-link.github:hover {
    background: #333;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.social-link.instagram:hover {
    background: #e1306c;
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4);
}

.social-link.email:hover {
    background: #ea4335;
    box-shadow: 0 5px 20px rgba(234, 67, 53, 0.4);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280;
    font-size: 0.85rem;
    position: relative;
}

.back-to-top {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-purple);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: absolute;
    right: 0;
    cursor: pointer;
}

.back-to-top:hover {
    background: var(--accent-purple);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    border-color: transparent;
}

.back-to-top.bounce {
    animation: bounce 2s infinite;
}

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


/* ── Resume Document Viewer ── */
.resume-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 18px;
    padding-right: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

.resume-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-resume.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.resume-viewer-container {
    width: 100%;
    height: 72vh;
    min-height: 480px;
    border-radius: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(10, 15, 26, 0.8);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    scroll-behavior: smooth;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.6);
}

.resume-page-wrapper {
    position: relative;
    max-width: 820px;
    width: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 240, 255, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.resume-page-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(7, 9, 14, 0.85);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    backdrop-filter: blur(6px);
    z-index: 2;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.resume-page-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Resume Modal ── */
.resume-modal {
    display: none;
    position: fixed;
    z-index: 99998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resume-modal.show {
    display: flex;
    opacity: 1;
}

.resume-modal-content {
    position: relative;
    width: 90%;
    max-width: 950px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resume-modal.show .resume-modal-content {
    transform: scale(1) !important;
    opacity: 1 !important;
    filter: blur(0) !important;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.close-modal:hover {
    color: var(--accent-purple);
}

.resume-iframe-container {
    width: 100%;
    height: 70vh;
    min-height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Screen Reader Utility ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Media Queries ── */
@media (hover: none) or (pointer: coarse) or (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 900px;
        margin: 0 auto;
    }

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

    .timeline-date {
        font-size: 1.1rem;
        width: 180px;
    }

    .timeline-item.left .timeline-date {
        left: calc(100% + 25px);
    }

    .timeline-item.right .timeline-date {
        right: calc(100% + 25px);
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    section {
        padding: 50px 16px !important;
        overflow-x: hidden;
    }

    /* Hero Responsive */
    .hero {
        padding: 85px 16px 40px !important;
        min-height: auto;
    }

    .main-title {
        font-size: clamp(1.4rem, 6.5vw, 2.2rem) !important;
        line-height: 1.2;
        word-break: break-word;
        flex-wrap: wrap;
        margin: 10px 0;
    }

    .sub-title {
        font-size: 1rem;
        padding: 0 5px;
    }

    .year {
        font-size: 1.1rem;
        margin-top: 10px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        gap: 12px;
        width: 100%;
    }

    .btn-resume {
        padding: 10px 22px;
        font-size: 0.82rem;
        letter-spacing: 0.5px;
    }

    .floating-icon {
        display: none;
    }

    /* About Section */
    .glass-card {
        padding: 28px 16px;
        margin: 0 auto;
        max-width: 100%;
        border-radius: 16px;
    }

    .glass-card h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .glass-card p {
        font-size: 0.95rem;
        line-height: 1.65;
        text-align: left;
    }

    /* Mobile Timeline */
    .timeline {
        padding: 10px 0;
    }

    .timeline-line {
        left: 20px;
        transform: translateX(0);
    }

    .timeline-item {
        width: 100% !important;
        padding-left: 55px !important;
        padding-right: 10px !important;
        text-align: left !important;
        margin-bottom: 25px;
        transform: none !important;
        opacity: 1 !important;
        box-sizing: border-box;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0 !important;
        text-align: left !important;
        padding-left: 55px !important;
        padding-right: 10px !important;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 11px !important;
        right: auto !important;
        top: 25px;
    }

    .timeline-item.left .timeline-number,
    .timeline-item.right .timeline-number {
        right: 15px !important;
        left: auto !important;
        top: 10px !important;
        font-size: 2.8rem;
        opacity: 0.25;
    }

    .timeline-date {
        position: static !important;
        inset: auto !important;
        text-align: left !important;
        margin-bottom: 8px;
        display: inline-block;
        font-size: 0.95rem;
        width: auto !important;
    }

    .timeline-content {
        padding: 20px 16px;
        min-height: auto;
    }

    .timeline-content h3 {
        font-size: 1.25rem;
    }

    .timeline-content p {
        font-size: 0.92rem;
    }

    /* Projects Showcase Single Column on Mobile */
    .experience-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        max-width: 100%;
        padding: 0 4px;
    }

    .experience-card {
        padding: 26px 18px;
        border-radius: 16px;
    }

    .experience-card h3 {
        font-size: 1.3rem;
    }

    .experience-card p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .experience-date {
        position: static;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    /* Skills Filters & Grid */
    .skill-filters,
    .skills-filter {
        gap: 8px;
        margin-bottom: 25px;
        justify-content: center;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }

    .skill-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .skill-card {
        height: 105px;
        padding: 10px 6px;
        border-radius: 14px;
    }

    .skill-card i {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }

    .skill-card span {
        font-size: 0.72rem;
    }

    /* Certifications */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    /* Profiles */
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .profile-card {
        padding: 16px 12px;
        border-radius: 14px;
    }

    /* Contact Card */
    .contact-card {
        padding: 28px 16px;
        border-radius: 16px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* Footer & Safe Area */
    .footer {
        padding: 40px 16px 95px !important; /* Space for bottom floating navbar */
    }

    .footer-container {
        gap: 25px;
    }

    .footer-nav-links {
        gap: 10px 18px;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        gap: 16px;
        text-align: center;
    }

    .back-to-top {
        position: static;
        margin: 10px auto 0;
    }

    /* Mobile Floating App Bar */
    .site-nav {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(100px);
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .site-nav.nav-visible {
        transform: translateY(0) !important;
    }

    .nav-pill {
        border-radius: 18px 18px 0 0 !important;
        padding: 6px 4px calc(env(safe-area-inset-bottom, 0px) + 6px) !important;
        gap: 0 !important;
        justify-content: space-around !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        background: rgba(7, 9, 14, 0.96) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(0, 240, 255, 0.2) !important;
        width: 100% !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6) !important;
    }

    .nav-indicator {
        display: none !important;
    }

    .nav-link {
        flex-direction: column;
        padding: 6px 4px;
        gap: 0;
        min-width: 34px;
        border-radius: 10px;
        transition: color 0.2s ease, background 0.2s ease;
    }

    .nav-link .nav-icon {
        display: block;
        font-size: 1.15rem;
    }

    .nav-link .nav-label {
        display: none !important; /* Hide verbose labels to prevent mobile overflow */
    }

    .nav-link.active .nav-icon {
        color: var(--accent-cyan) !important;
        filter: drop-shadow(0 0 8px var(--accent-cyan));
    }

    .nav-link.active {
        background: rgba(0, 240, 255, 0.08);
    }

    /* Mobile Resume Modal */
    .resume-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 22px 14px !important;
        max-height: 92vh !important;
        border-radius: 16px !important;
    }

    .resume-modal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-right: 30px;
        margin-bottom: 14px;
    }

    .resume-modal-header h2 {
        font-size: 1.25rem !important;
    }

    .resume-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .resume-viewer-container {
        height: 65vh !important;
        min-height: 320px !important;
        padding: 12px 6px !important;
        gap: 16px !important;
    }

    .close-modal {
        top: 10px;
        right: 12px;
        font-size: 26px;
    }

    .preloader-tagline {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 15px;
    }

    .tagline-word {
        font-size: 0.68rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .skill-card {
        height: 95px;
        padding: 8px;
    }

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

    .main-title {
        font-size: 1.35rem !important;
    }
}
