/* 
 * Contact Page - Ultra-Premium Cyber-Minimalist Aesthetic
 * Refined for maximum elegance, precision, and modern feel.
 */

:root {
    --bg-ultra-dark: #020203;
    --neon-violet: #bc13fe;
    --neon-cyan: #00f3ff;
    --accent-glow: rgba(188, 19, 254, 0.1);
    --bg-void: hsl(228, 40%, 1%);
    --cyan-400: hsl(175, 100%, 62%);
    --violet-400: hsl(270, 85%, 65%);
    --gradient-primary: linear-gradient(135deg, var(--cyan-400), var(--violet-400));
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Refined Glassmorphism */
    --glass-bg: rgba(10, 10, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-reflection: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    --glass-blur: blur(40px);
    
    /* Premium Typography */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing System */
    --space-unit: 1rem;
}

/* Preloader Styles */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-void);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader__ring {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    position: relative;
    border: 2px solid transparent;
    border-top-color: var(--cyan-400);
    border-right-color: var(--violet-400);
    animation: ringRotate 1s linear infinite;
}

@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.preloader__logo {
    font-family: sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Base Styles */
body.contact-page {
    background-color: var(--bg-ultra-dark);
    color: #f0f0f0;
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

/* Navbar: Centered & Floating */
.nav-contact {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    z-index: 1000;
}

.nav-contact__inner {
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.85rem 2.5rem;
    display: flex;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 
                inset 0 1px 1px rgba(255, 255, 255, 0.05);
    transition: all 0.5s var(--ease-out-expo);
}

.nav-contact__inner:hover {
    background: rgba(15, 15, 20, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.nav-contact__links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-contact__links a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}

.nav-contact__links a:hover {
    color: var(--neon-cyan);
}

/* Hero Section: Refined and Compact */
.hero-contact {
    padding: 12rem 5% 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title-extreme {
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #fff, var(--neon-cyan), var(--neon-violet), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s linear infinite;
}

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

.hero-subtitle {
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 1rem;
}

/* Contact Layout: Split Grid */
.contact-section {
    padding: 12rem 5% 8rem;
    display: flex;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info .title-extreme {
    font-family: var(--font-title);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: start;
    margin: 0 auto;
}

.contact-container.single-col {
    display: block;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(188, 19, 254, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: backgroundPulse 12s ease-in-out infinite alternate;
}

.contact-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    z-index: -1;
    opacity: 0.5;
}

@keyframes backgroundPulse {
    0% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.1) rotate(2deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
}

/* Info Panel */
.contact-info {
    padding: 2rem 0;
}

.info-item {
    margin-bottom: 3rem;
}

.info-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    display: block;
}

.info-value {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value:hover {
    color: var(--neon-violet);
}

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

.social-link-item {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: rgba(188, 19, 254, 0.1);
    border-color: var(--neon-violet);
    color: #fff;
    transform: translateY(-5px);
}

/* Contact Container: The Glass Vault */
.contact-glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    box-shadow: none;
}

.contact-glass:hover {
    box-shadow: none;
    border-color: transparent;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.25);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0.8;
}

.form-group:focus-within .form-label {
    color: var(--neon-cyan);
    transform: translateX(5px);
    opacity: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    padding: 1.5rem 0.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    transition: all 0.5s var(--ease-out-expo);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background: linear-gradient(to right, rgba(0, 243, 255, 0.02), transparent);
    border-bottom-color: var(--neon-cyan);
    padding-left: 1.5rem;
}

.form-group:focus-within .form-label {
    color: var(--neon-cyan);
}

textarea.form-input {
    min-height: 100px;
    resize: none;
}

/* File Input: Architectural Style */
.file-input-wrapper {
    margin-top: 0.25rem;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    transition: all 0.4s var(--ease-out-expo);
}

.file-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-cyan);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.file-label svg {
    color: var(--neon-cyan);
    transition: transform 0.4s var(--ease-out-expo);
}

.file-label:hover svg {
    transform: scale(1.1);
}

/* Button: The Extreme Peak */
.btn-extreme {
    width: 100%;
    padding: 1.25rem;
    border: 1px solid #fff;
    border-radius: 100px;
    font-family: var(--font-title);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    color: #fff;
    margin-top: 1rem;
}

.btn-extreme:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Footer: Minimal & Deep */
.footer-contact {
    padding: 6rem 5% 3rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-copyright {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
    opacity: 0.7;
}

/* Ambient Layers */
.ambient-glow {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -2;
    background: 
        radial-gradient(circle at 0% 0%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(188, 19, 254, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .social-links-contact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-contact {
        padding-top: 10rem;
    }
    
    .contact-glass {
        padding: 2rem;
    }
    
    .nav-contact {
        top: 1.5rem;
    }
}
