/* ==================== FUTURISTIC PORTFOLIO ==================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* Variables */
:root {
    --primary: #00f0ff;
    --secondary: #ff006e;
    --accent: #8338ec;
    --dark: #0a0e27;
    --darker: #050812;
    --light: #e0e0e0;
    --glow: 0 0 20px rgba(0, 240, 255, 0.5);
    --glow-pink: 0 0 20px rgba(255, 0, 110, 0.5);
}

html[data-theme="light"] {
    --primary: #0088ff;
    --secondary: #ff0066;
    --accent: #7c3aed;
    --dark: #f5f5f5;
    --darker: #ffffff;
    --light: #0a0a0a;
    --glow: 0 0 20px rgba(0, 136, 255, 0.3);
    --glow-pink: 0 0 20px rgba(255, 0, 102, 0.3);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--darker);
    background-image:
        radial-gradient(circle at top, rgba(0, 240, 255, 0.08), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 0, 110, 0.08), transparent 30%);
    color: var(--light);
    overflow-x: hidden;
    transition: background 0.5s ease;
}

html[data-theme="light"] body {
    background-image:
        radial-gradient(circle at top, rgba(0, 136, 255, 0.07), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 0, 102, 0.06), transparent 30%);
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Background Elements */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.stars::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--light);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(5, 8, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 8, 18, 0.95);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--light);
    letter-spacing: 2px;
    font-family: 'Space Mono', monospace;
}

.neon-text {
    color: var(--primary);
    text-shadow: var(--glow);
    font-weight: 900;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.theme-btn,
.menu-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: none;
    will-change: background, box-shadow;
}

.theme-btn:hover,
.menu-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: var(--glow);
}

.menu-btn {
    display: none !important;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(5, 8, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateX(0);
}

/* Main */
main {
    margin-top: 70px;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

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

.hero-text {
    animation: slideInLeft 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-title .word {
    display: inline-block;
    margin-right: 0.3em;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title .word:nth-child(2) { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) { animation-delay: 0.4s; }

.hero-title .neon {
    color: var(--primary);
    text-shadow: var(--glow);
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-desc {
    font-size: 1rem;
    color: rgba(224, 224, 224, 0.7);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

html[data-theme="light"] .hero-desc {
    color: rgba(10, 10, 10, 0.6);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.7s forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    will-change: transform, box-shadow;
}

a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.3), 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.btn[data-ripple]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    will-change: width, height, opacity;
    pointer-events: none;
}

.btn[data-ripple].ripple-active::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    animation: slideInRight 0.8s ease;
    height: 400px;
}

.floating-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateX 20s infinite linear, floatCube 4s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--primary);
    border: 2px solid rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateX {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes floatCube {
    0%, 100% { transform: translateY(0px) rotateX(0) rotateY(0); }
    50% { transform: translateY(-30px) rotateX(0) rotateY(0); }
}

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

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator span {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    color: var(--primary);
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

.section-title .neon-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about .container {
    max-width: 1200px;
}

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

.about-card {
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }

.card-glass {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    backdrop-filter: blur(10px);
}

.about-card:hover {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--glow);
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: var(--glow);
}

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

.about-card p {
    color: rgba(224, 224, 224, 0.8);
    line-height: 1.6;
}

html[data-theme="light"] .about-card p {
    color: rgba(10, 10, 10, 0.7);
}

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

.service-card {
    padding: 2rem;
    border-radius: 12px;
    background: rgba(131, 56, 236, 0.05);
    border: 1px solid rgba(131, 56, 236, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    border-color: var(--accent);
    background: rgba(131, 56, 236, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.3);
}

html[data-theme="light"] .service-card {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
}

html[data-theme="light"] .service-card:hover {
    background: rgba(124, 58, 237, 0.15);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}

.gradient-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.5);
}

html[data-theme="light"] .gradient-icon {
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: rgba(224, 224, 224, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

html[data-theme="light"] .service-card p {
    color: rgba(10, 10, 10, 0.7);
}

.service-tech {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
}

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

.skill-column {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.skill-column:nth-child(1) { animation-delay: 0.1s; }
.skill-column:nth-child(2) { animation-delay: 0.2s; }
.skill-column:nth-child(3) { animation-delay: 0.3s; }

.skill-category {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    box-shadow: var(--glow);
    transform: scale(1.05);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 999px;
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.featured-project-wrap {
    margin-bottom: 2rem;
}

.featured-project {
    min-height: 240px;
}

.featured-project-card {
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.08), rgba(255, 0, 110, 0.08));
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.featured-project-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.featured-project-tag {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 0, 110, 0.15);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.featured-copy h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.featured-copy p {
    color: rgba(224, 224, 224, 0.78);
    line-height: 1.7;
}

html[data-theme="light"] .featured-copy p {
    color: rgba(10, 10, 10, 0.72);
}

.featured-meta {
    margin-top: 1rem;
}

.featured-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.project-skeleton-card,
.featured-project-skeleton {
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 240, 255, 0.14);
    background: rgba(0, 240, 255, 0.04);
}

.skeleton-line,
.skeleton-chip,
.skeleton-icon {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.skeleton-title {
    width: 70%;
    height: 18px;
}

.skeleton-line.short {
    width: 55%;
}

.skeleton-chip-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.skeleton-chip {
    width: 72px;
    height: 24px;
    border-radius: 999px;
}

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

.filter-btn {
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: color, box-shadow;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    transition: left 0.3s ease;
    will-change: left;
}

.filter-btn:hover {
    color: var(--dark);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--dark);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
    border-color: var(--primary);
}

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

.project-card {
    padding: 2rem;
    background: rgba(255, 0, 110, 0.05);
    border: 1px solid rgba(255, 0, 110, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    will-change: transform, background, box-shadow, border-color;
    cursor: pointer;
}

.project-card.hidden {
    display: none !important;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:hover,
.project-card.hover {
    border-color: var(--secondary);
    background: rgba(255, 0, 110, 0.15);
    transform: translateY(-15px);
    box-shadow: var(--glow-pink);
}

.project-card:focus-visible {
    transform: translateY(-10px);
    box-shadow: var(--glow-pink);
}

html[data-theme="light"] .project-card {
    background: rgba(255, 0, 102, 0.08);
    border-color: rgba(255, 0, 102, 0.25);
}

html[data-theme="light"] .project-card:hover {
    background: rgba(255, 0, 102, 0.15);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.25);
}

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

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--dark);
}

.project-header h3 {
    font-size: 1.2rem;
}

.project-desc {
    color: rgba(224, 224, 224, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

html[data-theme="light"] .project-desc {
    color: rgba(10, 10, 10, 0.7);
}

.project-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-details-link {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 600;
    padding: 0;
    margin: 0.25rem 0 1rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.project-details-link:hover {
    color: var(--secondary);
}

.project-modal,
.resume-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.project-modal.active,
.resume-modal.active {
    display: flex;
}

.project-modal-backdrop,
.resume-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 18, 0.85);
    backdrop-filter: blur(8px);
}

.project-modal-panel,
.resume-modal-content {
    position: relative;
    width: min(920px, 100%);
    max-height: min(90vh, 900px);
    overflow: auto;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    background: var(--darker);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.project-modal-close,
.resume-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary);
    font-size: 1.75rem;
    cursor: pointer;
    z-index: 1;
}

.project-modal-close:hover,
.resume-modal-close:hover {
    background: rgba(0, 240, 255, 0.22);
}

.project-modal-body {
    padding: 1.75rem;
}

.project-modal-header-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-right: 3rem;
}

.project-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--dark);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.project-modal-kicker {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    margin-bottom: 0.35rem;
}

.project-modal-description {
    color: rgba(224, 224, 224, 0.8);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

html[data-theme="light"] .project-modal-description {
    color: rgba(10, 10, 10, 0.74);
}

.project-modal-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.project-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.project-modal-stats div {
    padding: 1rem;
    border-radius: 14px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.12);
}

.project-modal-stats strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.project-modal-stats span {
    color: rgba(224, 224, 224, 0.7);
    font-size: 0.85rem;
}

html[data-theme="light"] .project-modal-stats span {
    color: rgba(10, 10, 10, 0.62);
}

.project-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.resume-modal-content {
    display: flex;
    flex-direction: column;
    height: min(90vh, 900px);
}

.resume-frame {
    width: 100%;
    flex: 1;
    border: 0;
    background: #fff;
}

.meta-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    animation: fadeInUp 0.8s ease;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(10px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-card h4 {
    color: var(--light);
    margin-bottom: 0.3rem;
}

.info-card p {
    color: rgba(224, 224, 224, 0.7);
}

html[data-theme="light"] .info-card p {
    color: rgba(10, 10, 10, 0.6);
}

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

.social-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(0, 240, 255, 0.3);
    box-shadow: var(--glow);
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(224, 224, 224, 0.5);
}

html[data-theme="light"] .contact-form input::placeholder,
html[data-theme="light"] .contact-form textarea::placeholder {
    color: rgba(10, 10, 10, 0.4);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    text-align: center;
    color: rgba(224, 224, 224, 0.7);
}

html[data-theme="light"] .footer {
    color: rgba(10, 10, 10, 0.6);
}

.heart {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 10px 40px 0 rgba(0, 240, 255, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification.success {
    background: #00f0ff;
    color: #000;
}

.notification.error {
    background: #ff0066;
    color: #fff;
    box-shadow: 0 10px 40px 0 rgba(255, 0, 102, 0.3);
}

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

body.modal-open {
    overflow: hidden;
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 800;
    font-weight: bold;
}

.floating-btn.show {
    display: flex;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.9), inset 0 0 20px rgba(255, 255, 255, 0.3), 0 20px 40px rgba(0, 240, 255, 0.4);
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px) scale(0.8);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        gap: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        height: 300px;
    }

    .floating-cube {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .project-modal-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-btn {
        display: block !important;
    }

    .theme-btn {
        display: block;
    }

    .mobile-nav.active {
        display: flex;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

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

    .featured-project-content {
        grid-template-columns: 1fr;
    }

    .featured-actions,
    .project-modal-actions {
        flex-direction: column;
    }

    .project-modal-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .scroll-indicator {
        display: none;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .floating-btn {
        width: 55px;
        height: 55px;
        right: 1.5rem;
        bottom: 1.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 3rem 0;
    }

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

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

    .hero-title .word {
        display: block;
        margin-right: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-modal-body {
        padding: 1.25rem;
    }

    .project-modal-header-block {
        padding-right: 2.5rem;
    }

    .project-modal-stats {
        grid-template-columns: 1fr;
    }

    .featured-project-card,
    .project-skeleton-card,
    .featured-project-skeleton {
        padding: 1.2rem;
    }


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
    .nav-link {
        padding: 1rem;
    }

    .info-card {
        padding: 1rem;
    }
}
