/* CSS Variables for Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #ff006e;
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #ff006e 100%);
    --shadow: rgba(0, 212, 255, 0.1);
    --shadow-hover: rgba(0, 212, 255, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cursor-x: 50%;
    --cursor-y: 50%;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    position: relative;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-secondary);
}

/* Wave Canvas */
#wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* Animated Gradient Mesh Background */
.gradient-mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
        background-size: 80% 80%, 60% 60%, 100% 100%;
    }
    33% {
        background-position: 30% 50%, 70% 20%, 80% 80%;
        background-size: 100% 100%, 80% 80%, 70% 70%;
    }
    66% {
        background-position: 70% 80%, 30% 60%, 20% 20%;
        background-size: 70% 70%, 100% 100%, 90% 90%;
    }
}

/* Floating Geometric Shapes */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0.15;
    filter: drop-shadow(0 0 20px currentColor);
}

.geo-hexagon {
    top: 15%;
    left: 15%;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    animation: floatGeo 20s ease-in-out infinite, rotate3D 15s ease-in-out infinite;
}

.geo-triangle {
    top: 60%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #7c3aed, #ff006e);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: floatGeo 18s ease-in-out infinite reverse, rotate3D 12s ease-in-out infinite reverse;
}

.geo-circle {
    bottom: 25%;
    left: 25%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff006e, #00d4ff);
    border-radius: 50%;
    animation: floatGeo 22s ease-in-out infinite, pulse3D 4s ease-in-out infinite;
}

.geo-square {
    top: 40%;
    right: 15%;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00d4ff, #ff006e);
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
    animation: floatGeo 16s ease-in-out infinite, rotate3D 20s ease-in-out infinite;
}

@keyframes floatGeo {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.2);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.8);
    }
}

@keyframes rotate3D {
    0% {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }
    50% {
        transform: perspective(1000px) rotateY(180deg) rotateX(180deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg) rotateX(360deg);
    }
}

@keyframes pulse3D {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 40px currentColor;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: var(--transition);
    animation: gradientShift 3s ease infinite;
    position: relative;
}

.nav-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}


/* Wireframe Sphere - Simplified */
.wireframe-sphere {
    position: absolute;
    width: 450px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.5;
    animation: rotateSphere 40s linear infinite;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
}

.sphere-group {
    transform-origin: center;
    animation: pulseSphere 6s ease-in-out infinite;
}

@keyframes rotateSphere {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulseSphere {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

.hero-decoration {
    position: absolute;
    width: 800px;
    height: 800px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.2;
    animation: float 20s ease-in-out infinite, rotate 30s linear infinite;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #ff006e 0%, #00d4ff 100%);
    border-radius: 50%;
    top: 20%;
    left: 20%;
    filter: blur(150px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out, glowPulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.hero-badge svg {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px currentColor);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    position: relative;
    line-height: 1.1;
}

.title-line {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInUp 1s ease-out both, gradientShift 5s ease infinite;
    position: relative;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-title::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    cursor: pointer;
}

.glitch-text::after,
.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s;
}

.glitch-text:hover::after,
.glitch-text:hover::before {
    opacity: 0.8;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.glitch-text:hover::after {
    animation-delay: 0.05s;
}

@keyframes glitch {
    0% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
    20% {
        transform: translate(-3px, 3px);
        filter: hue-rotate(90deg);
    }
    40% {
        transform: translate(-3px, -3px);
        filter: hue-rotate(180deg);
    }
    60% {
        transform: translate(3px, 3px);
        filter: hue-rotate(270deg);
    }
    80% {
        transform: translate(3px, -3px);
        filter: hue-rotate(360deg);
    }
    100% {
        transform: translate(0);
        filter: hue-rotate(0deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle-highlight {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

.cta-primary {
    background: var(--accent-gradient);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
    width: 400px;
    height: 400px;
}

.cta-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-secondary:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.2);
    background: rgba(0, 212, 255, 0.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px var(--shadow), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 10, 20, 1) 50%, var(--bg-primary) 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

.portfolio::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 6s ease-in-out infinite 2s;
}

/* Hexagon Pattern */
.hexagon-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
    animation: hexagonShift 30s linear infinite;
}

@keyframes hexagonShift {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 1rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    position: relative;
    font-weight: 800;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.section-title::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    opacity: 0.9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Card Decoration */
.card-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card-decoration-1 {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4) 0%, transparent 70%);
    top: -40px;
    left: -40px;
}

.card-decoration-2 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, transparent 70%);
    top: -40px;
    left: -40px;
}

.card-decoration-3 {
    background: radial-gradient(circle, rgba(255, 0, 110, 0.4) 0%, transparent 70%);
    top: -40px;
    left: -40px;
}

.portfolio-card:hover .card-decoration {
    opacity: 1;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at var(--cursor-x) var(--cursor-y),
        rgba(0, 212, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 212, 255, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.3),
        inset 0 0 60px rgba(0, 212, 255, 0.05),
        0 0 100px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.5);
    animation: cardFloat 3s ease-in-out infinite, liquidDistort 5s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(-15px) scale(1.02);
    }
    50% {
        transform: translateY(-20px) scale(1.03);
    }
}

@keyframes liquidDistort {
    0%, 100% {
        border-radius: 20px;
    }
    25% {
        border-radius: 25px 20px 25px 20px;
    }
    50% {
        border-radius: 20px 25px 20px 25px;
    }
    75% {
        border-radius: 25px 20px 25px 20px;
    }
}

.portfolio-card:nth-child(1):hover {
    box-shadow: 
        0 30px 80px rgba(0, 212, 255, 0.3),
        0 0 0 1px rgba(0, 212, 255, 0.3);
}

.portfolio-card:nth-child(2):hover {
    box-shadow: 
        0 30px 80px rgba(124, 58, 237, 0.3),
        0 0 0 1px rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 0.5);
}

.portfolio-card:nth-child(3):hover {
    box-shadow: 
        0 30px 80px rgba(255, 0, 110, 0.3),
        0 0 0 1px rgba(255, 0, 110, 0.3);
    border-color: rgba(255, 0, 110, 0.5);
}

.card-image {
    height: 250px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Card Preview */
.card-preview {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.preview-illustration {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card:hover .card-preview {
    opacity: 0.9;
    transform: scale(1.05);
}

.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0.05;
    transition: var(--transition);
    z-index: 1;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
    z-index: 2;
}

.portfolio-card:hover .card-image::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.portfolio-card:hover .card-image::before {
    opacity: 0.15;
}

.card-icon {
    width: 100px;
    height: 100px;
    color: var(--accent-primary);
    z-index: 3;
    transition: var(--transition);
    filter: drop-shadow(0 0 25px currentColor);
    position: relative;
}

.portfolio-card:hover .card-icon {
    transform: scale(1.3) rotate(10deg) translateZ(50px);
    filter: drop-shadow(0 0 40px currentColor);
}

.portfolio-card:nth-child(1) .card-icon {
    animation: iconFloat 3s ease-in-out infinite;
}

.portfolio-card:nth-child(2) .card-icon {
    color: var(--accent-secondary);
    animation: iconSpin 4s ease-in-out infinite;
}

.portfolio-card:nth-child(3) .card-icon {
    color: var(--accent-tertiary);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes iconSpin {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(5deg);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card Tags */
.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
}

.portfolio-card:nth-child(2) .tag {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
    color: var(--accent-secondary);
}

.portfolio-card:nth-child(3) .tag {
    background: rgba(255, 0, 110, 0.1);
    border-color: rgba(255, 0, 110, 0.2);
    color: var(--accent-tertiary);
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.card-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}

.card-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-stats svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.card-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.card-button:hover svg {
    transform: translateX(4px);
}

.card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: left 0.4s ease;
    z-index: -1;
}

.card-button:hover::before {
    left: 0;
}

.card-button:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.portfolio-card:nth-child(2) .card-button {
    border-color: rgba(124, 58, 237, 0.3);
}

.portfolio-card:nth-child(2) .card-button::before {
    background: linear-gradient(135deg, #7c3aed 0%, #00d4ff 100%);
}

.portfolio-card:nth-child(3) .card-button {
    border-color: rgba(255, 0, 110, 0.3);
}

.portfolio-card:nth-child(3) .card-button::before {
    background: linear-gradient(135deg, #ff006e 0%, #7c3aed 100%);
}

.portfolio-card:nth-child(2):hover .card-button {
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.portfolio-card:nth-child(3):hover .card-button {
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

/* Portfolio Blobs */
.portfolio-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.6) 0%, transparent 70%);
    bottom: -80px;
    right: -80px;
    animation: blobFloat 25s ease-in-out infinite 5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.6) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobFloat 18s ease-in-out infinite 10s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-80px, 100px) scale(0.9);
    }
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

/* Geometric Network */
.geometric-network {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.network-group {
    animation: networkPulse 6s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.4;
    }
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(42, 42, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Contact Decoration */
.contact-decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.contact-decoration-1 {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.5) 0%, transparent 70%);
    top: -30px;
    right: -30px;
}

.contact-decoration-2 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, transparent 70%);
    top: -30px;
    right: -30px;
}

.contact-decoration-3 {
    background: radial-gradient(circle, rgba(255, 0, 110, 0.5) 0%, transparent 70%);
    top: -30px;
    right: -30px;
}

.contact-card:hover .contact-decoration {
    opacity: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 
        0 20px 60px var(--shadow-hover),
        0 0 80px rgba(0, 212, 255, 0.3),
        inset 0 0 40px rgba(0, 212, 255, 0.1);
    background: rgba(42, 42, 42, 0.8);
    animation: cardGlow 2s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

/* Contact Icon Wrapper */
.contact-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    color: var(--accent-primary);
    transition: var(--transition);
    filter: drop-shadow(0 0 15px currentColor);
    position: relative;
    z-index: 2;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.icon-glow-1 {
    background: radial-gradient(circle, rgba(0, 212, 255, 0.6) 0%, transparent 70%);
}

.icon-glow-2 {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.6) 0%, transparent 70%);
}

.icon-glow-3 {
    background: radial-gradient(circle, rgba(255, 0, 110, 0.6) 0%, transparent 70%);
}

.contact-card:hover .icon-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
}

.contact-card:hover .contact-icon {
    transform: scale(1.2) rotateY(360deg);
    filter: drop-shadow(0 0 30px currentColor);
}

.contact-card:nth-child(2) .contact-icon {
    color: var(--accent-secondary);
}

.contact-card:nth-child(3) .contact-icon {
    color: var(--accent-tertiary);
}

.contact-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Contact Link */
.contact-link {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link:hover {
    transform: translateX(5px);
}

.contact-card:nth-child(2) .contact-link {
    color: var(--accent-secondary);
}

.contact-card:nth-child(2) .contact-link::after {
    background: var(--accent-secondary);
}

.contact-card:nth-child(3) .contact-link {
    color: var(--accent-tertiary);
}

.contact-card:nth-child(3) .contact-link::after {
    background: var(--accent-tertiary);
}

/* Contact Decorations */
.contact-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.contact-illustration {
    width: 100%;
    height: 100%;
    opacity: 0.3;
    animation: illustrationFloat 30s ease-in-out infinite;
}

@keyframes illustrationFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(0, 0, 0, 0.95) 100%);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* PDF Viewer - Now in separate page (pdf-viewer.html) */

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 212, 255, 0.5) 50%,
        transparent 100%
    );
    margin: 4rem 0;
}

/* Ripple Effect */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9997;
    animation: rippleEffect 1s ease-out;
}

@keyframes rippleEffect {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 500px;
        height: 500px;
        opacity: 0;
    }
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
    animation: spin 1s linear infinite;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.loader::before {
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    animation: spin 1s linear infinite;
}

.loader::after {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 3px solid transparent;
    border-top-color: var(--accent-secondary);
    animation: spin 0.7s linear infinite reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 2rem;
    font-size: 1.2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
    
    .geometric-shapes {
        display: none;
    }
    
    .wireframe-sphere {
        width: 280px;
        height: 280px;
        opacity: 0.3;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .hexagon-pattern,
    .geometric-network {
        opacity: 0.05;
    }
    
    .portfolio-blobs,
    .contact-decorations {
        opacity: 0.5;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(26, 26, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .portfolio {
        padding: 4rem 1rem;
    }

    .contact {
        padding: 4rem 1rem;
    }
}

