/* ============================================
   There's an Agent for That - Custom Styles
   Premium Domain Landing Page
   ============================================ */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #a78bfa);
}

/* Z-Index Layers */
.z-1 {
    z-index: 1;
}

/* Hero Title Animation */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Domain Cards Hover Effect */
.domain-card {
    position: relative;
    overflow: hidden;
}

.domain-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.domain-card:hover::before {
    left: 100%;
}

/* Value Cards Glow Effect */
.value-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1);
}

/* Form Container Glow */
.form-container {
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa, #6366f1);
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-container:hover::before {
    opacity: 0.3;
}

/* Input Focus Glow */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button Pulse Animation */
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after {
    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 ease, height 0.6s ease;
}

button[type="submit"]:active::after {
    width: 300px;
    height: 300px;
}

/* reCAPTCHA Dark Mode Styling */
.g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}

/* Gradient Text Helper */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.7;
}

.loading button[type="submit"] {
    cursor: wait;
}

/* Success Message Styling */
.success-message {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-title {
        line-height: 1.1;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Vanta.js Canvas Styling */
#vanta-bg canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Accessibility - Focus Visible */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    #vanta-bg,
    .g-recaptcha,
    button[type="submit"] {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
