/* Base Styles */
body {
    background: #0a0e1a;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    margin: 0;
    height: 100vh;
    font-family: 'General Sans', sans-serif;
    scroll-behavior: smooth;
    background: linear-gradient(to bottom right, #0a0e1a, #111827);
    color: #e0f2f1;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border: 2px solid #00ffcc;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.2);
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease, opacity 0.1s ease;
    transform: translate(-50%, -50%);
    border: 2px solid #0ff;
    background: rgba(0,255,204,0.1);
    box-shadow: 0 0 8px rgba(0,255,204,0.4);
    mix-blend-mode: exclusion;
}

.custom-cursor::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 255, 204, 0.5);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% { transform: scale(0); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.custom-cursor.hovered {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: #ff00ff;
    background: rgba(255, 0, 255, 0.3);
}

.custom-cursor.form-input {
    width: 2px;
    height: 20px;
    background: #00ffcc;
    border: none;
    border-radius: 0;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0.5; }
}

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

/* Hero Section */
.hero-bg {
    position: relative;
    height: 100vh;
    background: linear-gradient(145deg, #1e40af, #6b21a8);
    background: linear-gradient(120deg, #1e3a8a, #6b21a8, #0d9488);
    background-size: 400% 400%;
    animation: heroPulse 12s ease infinite;
}

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

#three-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.holo-text {
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.7), 0 0 20px rgba(244, 114, 182, 0.5);
    animation: glow 2.5s ease-in-out infinite;
    text-shadow: 0 0 20px #38bdf8, 0 0 30px #c084fc;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(96, 165, 250, 0.7), 0 0 20px rgba(244, 114, 182, 0.5); }
    50% { text-shadow: 0 0 15px rgba(96, 165, 250, 0.9), 0 0 30px rgba(244, 114, 182, 0.7); }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 204, 0.15);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0,255,204,0.05);
    transform-style: preserve-3d;
    transition: transform 0.5s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 255, 204, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(0,255,204,0.05);
    transform-style: preserve-3d;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.3s ease;
}

.glass-card:hover {
    transform: rotateY(6deg) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
    transform: scale(1.05) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 0 30px rgba(0,255,204,0.2);
    transform: rotateX(3deg) rotateY(3deg) scale(1.05);
    box-shadow: 0 0 25px rgba(0,255,204,0.25);
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.glass-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,255,204,0.1), rgba(255,0,255,0.1));
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 2;
}

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

.glass-card .card-title {
    position: relative;
    z-index: 3;
    transition: transform 0.4s ease;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease-in-out;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.glass-card:hover .card-title {
    transform: translateY(-10px) scale(1.1);
    transform: translateY(-5px);
    color: #38bdf8;
    color: #67e8f9;
    transform: translateY(-4px);
}

.glass-card p {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.glass-card:hover p {
    transform: translateY(3px);
    opacity: 0.95;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(0,255,204,0.1), transparent);
    transform: rotate(25deg);
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: 1;
}

.glass-card:hover::before {
    animation: shimmer 1s forwards;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}

/* Disable shimmer in specific sections */
#portfolio .glass-card::before,
#contact .glass-card::before {
    display: none !important;
    content: none !important;
}

/* Sections */
.section {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Particles */
.particle {
    position: absolute;
    background: rgba(0, 255, 204, 0.3);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0.3); opacity: 0.4; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* Parallax */
.parallax-img {
    transition: transform 0.1s ease-out;
}

/* Static Background Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, #0a0e1a, #1a1e2a);
}

/* Futuristic Images */
.futuristic-img {
    filter: hue-rotate(45deg) saturate(1.4);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.futuristic-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 204, 0.6);
}

/* Button Styles */
button, .btn {
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

button::before, .btn::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,255,204,0.2) 10%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    border-radius: 100%;
}

button:hover::before, .btn:hover::before {
    transform: translate(-50%, -50%) scale(3);
}

/* Contact Form Styles */
#contact select option[disabled][selected] {
    color: #8fa3b3 !important;
}

#contact select:invalid {
    color: #8fa3b3 !important;
}

#contact select {
    color: #e2e8f0;
}

#contact select option {
    color: #e2e8f0;
}

/* reCAPTCHA Styles */
.g-recaptcha {
    transform: scale(0.85);
    transform-origin: top left;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 304px;
    width: 100%;
    min-width: 200px;
}

#contact-form .g-recaptcha {
    display: block;
    margin-left: 0.25rem;
    width: 100% !important;
    min-width: 0;
    max-width: 345px;
    margin-left: 0;
    display: block;
    transform: none;
}

#contact-form .recaptcha-center-wrapper {
    display: block !important;
    text-align: left !important;
    margin: 0 !important;
    max-width: 304px;
    width: 100%;
    max-width: 345px;
    margin: 0 !important;
    text-align: left !important;
}

/* Modal Styles */
/* Responsive Design */
@media (max-width: 768px) {
    /* Hide custom cursor and restore default cursor on mobile */
    .custom-cursor {
        display: none !important;
    }
    body, a, button, input, textarea, select, label {
        cursor: auto !important;
    }

    .hero-bg {
        padding: 2rem 1rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .glass-card {
        margin-bottom: 1rem;
    }

    .hero-bg h1 { font-size: 2.25rem; word-break: break-word; }
    h2 { font-size: 1.8rem; }
    p { font-size: 0.9rem; }
}

/* Loading Animation */
/* Accessibility Focus Styles */
button:focus, 
a:focus, 
input:focus, 
textarea:focus, 
select:focus {
    outline: 2px solid #00ffcc;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .custom-cursor,
    .particle,
    #three-canvas,
    #webgl-canvas {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
} 