/* Contact Page Styles - Aligned with index.html, success-stories.html, investors.html, careers.html, blog.html */
:root {
    --primary-color: #4e46dc;
    --primary-light: #7873e3;
    --primary-dark: #3a32b8;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-bg-hover: rgba(30, 41, 59, 0.8);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
    --gap-xl: 6rem;
    --shadow-soft: 0 4px 20px rgba(2, 6, 23, 0.1);
    --shadow-medium: 0 10px 40px rgba(106, 90, 205, 0.15);
    --shadow-strong: 0 20px 60px rgba(106, 90, 205, 0.2);
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dynamic Gradient Text */
.dynamic-gradient {
    background: linear-gradient(135deg, #4e46dc, #ff6b6b, #4ecdc4, #4e46dc);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    animation: gradientMotion 8s ease infinite;
}

@keyframes gradientMotion {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-sm) var(--gap-md);
    border-radius: var(--border-radius);
    font-family: 'Geist', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--transition);
    cursor: pointer;
}

.btn.primary {
    background: var(--primary-color);
    color: var(--text-primary);
    border: 1px solid var(--primary-dark);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary-light);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn.primary:hover {
    background: var(--primary-dark);
}

.btn.secondary:hover {
    background: rgba(78, 70, 220, 0.1);
    color: var(--text-primary);
}

.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-magnetic {
    position: relative;
    overflow: hidden;
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    top: 0;
    left: -100%;
    transition: left 0.3s var(--transition);
}

.btn-magnetic:hover::after {
    left: 100%;
}

.btn-group {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    padding: var(--gap-xl) 5%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(78, 70, 220, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    z-index: 0;
    animation: gradientBackground 15s ease infinite;
}

@keyframes gradientBackground {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.floating-shapes .shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.15;
    border-radius: 50%;
    animation: float var(--animation-duration, 20s) infinite ease-in-out;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 10%;
    --animation-duration: 18s;
    --translate-x: -15px;
    --translate-y: -40px;
}

.shape-2 {
    width: 180px;
    height: 180px;
    top: 65%;
    left: 75%;
    --animation-duration: 22s;
    animation-direction: reverse;
    --translate-x: 25px;
    --translate-y: 20px;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 45%;
    left: 50%;
    --animation-duration: 25s;
    --translate-x: -30px;
    --translate-y: -20px;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 85%;
    --animation-duration: 15s;
    animation-delay: -5s;
    --translate-x: 10px;
    --translate-y: -50px;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(var(--translate-x), var(--translate-y)) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.hero .container {
    display: flex;
    align-items: center;
    gap: var(--gap-lg);
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-family: 'Geist', sans-serif;
    font-size: clamp(3rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: var(--gap-md);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero .subtitle {
    font-family: 'Geist', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--gap-lg);
}

.hero-visual {
    flex: 1;
    position: relative;
}

.visual-element {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(-3deg);
}

.visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.visual-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 4s infinite;
    transform: rotate(45deg);
}

@keyframes shimmer {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--gap-lg);
}

.section-header h2 {
    font-family: 'Geist', sans-serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: var(--gap-sm);
    font-weight: 700;
}

/* Contact Options */
.contact-options {
    padding: var(--gap-xl) 5%;
    background: var(--bg-dark);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: var(--gap-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.card i {
    color: var(--primary-light);
    margin-bottom: var(--gap-sm);
}

.card h3 {
    font-family: 'Geist', sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--gap-sm);
    font-weight: 600;
}

.card p {
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-sm);
}

.card a {
    color: var(--text-primary);
    text-decoration: none;
}

.card a:hover {
    color: var(--accent-color);
}

/* Form Section */
.form-section {
    padding: var(--gap-xl) 5%;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
}

.form-why-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--gap-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.form-box, .why-box {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: var(--gap-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.form-box {
    position: sticky;
    top: 100px;
}

.form-box h2, .why-box h2 {
    font-family: 'Geist', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--text-primary);
    margin-bottom: var(--gap-md);
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--gap-md);
}

.form-box input,
.form-box select,
.form-box textarea {
    width: 100%;
    padding: var(--gap-sm);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

.form-box input::placeholder,
.form-box textarea::placeholder {
    color: var(--text-tertiary);
}

.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.3);
}

.form-box input.invalid,
.form-box select.invalid,
.form-box textarea.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.form-box textarea {
    height: 150px;
    resize: vertical;
    min-height: 100px;
}

.form-box .btn {
    width: 100%;
    max-width: 300px;
    margin: var(--gap-md) auto 0;
}

.form-message {
    margin-top: var(--gap-sm);
    font-family: 'Geist', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-align: center;
}

.why-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: var(--gap-lg);
}

.why-box ul li {
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: var(--gap-sm) 0;
    position: relative;
    padding-left: 25px;
    transition: color 0.3s var(--transition), transform 0.3s var(--transition);
}

.why-box ul li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.why-box ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-weight: bold;
    animation: checkmark 0.5s ease-out;
}

@keyframes checkmark {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.why-box h3 {
    font-family: 'Geist', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: var(--gap-md) 0 var(--gap-sm);
    font-weight: 600;
}

.why-box p {
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: var(--gap-xs) 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .visual-element {
        max-width: 400px;
        height: 300px;
        transform: none;
    }
}

@media (max-width: 900px) {
    .form-why-grid {
        grid-template-columns: 1fr;
    }

    .form-box {
        position: static;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: var(--gap-lg) 5%;
        min-height: 60vh;
    }
}

@media (max-width: 600px) {
    :root {
        --gap-md: 1.5rem;
        --gap-lg: 3rem;
        --gap-xl: 4rem;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 6vw, 3.2rem);
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .form-box h2, .why-box h2 {
        font-size: 1.8rem;
    }
}

/* Animation for reveal class */
.reveal {
    opacity: 1; /* Visible by default for non-JS */
    transform: none;
}

.reveal:not(.active) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .dynamic-gradient {
        background: var(--primary-color);
        -webkit-background-clip: text;
        background-clip: text;
    }
}