/* ============================================
   CONTACT PAGE - DARK THEME (Matching Homepage)
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary, #0a0a1a);
    color: var(--text-primary, #f8fafc);
    min-height: 100vh;
}

/* Hero Section - Dark Theme */
.hero {
    background: linear-gradient(135deg, var(--bg-primary, #0a0a1a) 0%, var(--bg-secondary, #0d1117) 50%, var(--bg-tertiary, #0f172a) 100%);
    padding: 120px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: 0;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary, #94a3b8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Content Area */
.content {
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

/* Contact Container */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* Contact Card - Dark Glassmorphism */
.contact-card {
    background: var(--glass-bg, rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.1));
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.contact-card h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--text-primary, #f8fafc);
    font-weight: 700;
}

/* Contact Info Items */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #8b5cf6) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.contact-text h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    margin-bottom: 6px;
}

.contact-text p {
    color: var(--text-secondary, #94a3b8);
    font-size: 15px;
    line-height: 1.5;
}

.contact-text a {
    color: var(--primary, #6366f1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--accent, #06b6d4);
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary, #f8fafc);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border, rgba(148, 163, 184, 0.1));
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary, #f8fafc);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted, #64748b);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Button Styles */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary, #6366f1) 0%, var(--secondary, #8b5cf6) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Alert Styles */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        padding: 100px 20px 60px;
    }
    
    .content {
        padding: 0 20px;
        margin: -20px auto 40px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* Light Theme Override */
body.light-theme {
    background: #f8fafc;
    color: #1e293b;
}

body.light-theme .hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

body.light-theme .hero::before {
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

body.light-theme .hero h1 {
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .hero p {
    color: rgba(255, 255, 255, 0.9);
}

body.light-theme .contact-card {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body.light-theme .contact-card h2 {
    color: #1e293b;
}

body.light-theme .contact-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .contact-item:hover {
    background: #f1f5f9;
}

body.light-theme .contact-text h3 {
    color: #1e293b;
}

body.light-theme .contact-text p {
    color: #64748b;
}

body.light-theme .form-group label {
    color: #1e293b;
}

body.light-theme .form-control {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}

body.light-theme .form-control:focus {
    background: #fff;
    border-color: #6366f1;
}
