/**
 * Proctor Digital - Futuristic Design System
 * Modern, clean, and tech-forward aesthetics
 */

/* Custom Properties */
:root {
    /* Futuristic Color Palette */
    --color-primary: #1e3a8a;
    --color-primary-light: #3b82f6;
    --color-accent: #f97316;
    --color-accent-glow: #fb923c;
    --color-dark: #0f172a;
    --color-darker: #020617;
    --color-light: #f8fafc;
    --color-gray: #64748b;
    
    /* Neon/Glow Colors */
    --color-neon-blue: #00d4ff;
    --color-neon-purple: #8b5cf6;
    --color-neon-pink: #ec4899;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-mesh: radial-gradient(at 20% 80%, #1e3a8a 0%, transparent 50%),
                     radial-gradient(at 80% 20%, #f97316 0%, transparent 50%),
                     radial-gradient(at 40% 40%, #8b5cf6 0%, transparent 50%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Typography */
    --font-display: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Global Styles */
body {
    background-color: var(--color-darker);
    position: relative;
    overflow-x: hidden;
}

/* Ensure sections have proper padding without excessive height */
section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Hero sections can be taller */
section.min-h-screen {
    min-height: auto !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Mobile-first responsive padding */
@media (max-width: 768px) {
    section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    section.min-h-screen {
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Fix large gaps between elements on mobile */
    .py-20 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-24 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-32 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mb-20 {
        margin-bottom: 2.5rem !important;
    }
    
    /* Fix hero section on mobile */
    .min-h-screen {
        min-height: calc(100vh - 80px) !important;
    }
}

/* Desktop padding adjustments */
@media (min-width: 1024px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    section.min-h-screen {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Animated Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-mesh);
    opacity: 0.03;
    z-index: -1;
    animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.1); }
    66% { transform: translate(20px, -10px) scale(0.9); }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Glow Effects */
.neon-glow {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                0 0 40px rgba(0, 212, 255, 0.3),
                0 0 60px rgba(0, 212, 255, 0.1);
}

.neon-glow-orange {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5),
                0 0 40px rgba(249, 115, 22, 0.3),
                0 0 60px rgba(249, 115, 22, 0.1);
}

/* Professional Buttons - Cyan to Blue Gradient */
.btn-futuristic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #06b6d4, #2563eb); /* cyan-500 to blue-600 */
    color: white;
    font-weight: 600;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(6, 182, 212, 0.2);
}

.btn-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.btn-futuristic:hover::before {
    left: 100%;
}

.btn-futuristic:hover {
    transform: translateY(-2px);
    background: linear-gradient(to right, #0891b2, #1d4ed8); /* cyan-600 to blue-700 */
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.4);
}

/* Animated Border Gradient */
.border-gradient {
    position: relative;
    background: var(--color-darker);
    border-radius: 0.5rem;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #8b5cf6, #ec4899, #f97316);
    border-radius: 0.5rem;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tech Grid Pattern */
.tech-grid {
    position: relative;
    overflow: hidden;
}

.tech-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Holographic Text Effect */
.text-holographic {
    background: linear-gradient(45deg, #00d4ff, #8b5cf6, #ec4899, #00d4ff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographic 3s ease-in-out infinite;
}

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

/* Professional Holographic Button - Cyan to Blue */
.btn-holographic {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #2563eb, #1d4ed8);
    background-size: 200% 100%;
    animation: holographic-btn 2s ease-in-out infinite;
    border: none;
    box-shadow:
        0 0 20px rgba(6, 182, 212, 0.4),
        0 8px 32px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-holographic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.btn-holographic:hover::before {
    left: 100%;
}

.btn-holographic:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(6, 182, 212, 0.6),
        0 12px 40px rgba(37, 99, 235, 0.4);
}

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

/* Primary Button - Professional Cyan to Blue */
.btn-primary {
    background: linear-gradient(to right, #06b6d4, #2563eb);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(6, 182, 212, 0.2);
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(to right, #0891b2, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(6, 182, 212, 0.3);
}

/* Futuristic Cards */
.card-futuristic {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 100%;
    margin: 0 auto;
}

.card-futuristic::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(249, 115, 22, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Removed hover effects for cards */

/* Glitch Text Effect */
.glitch {
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #00d4ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #ec4899;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(40% 0 10% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(20% 0 40% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 30% 0); transform: translate(1px, -2px); }
    80% { clip-path: inset(10% 0 50% 0); transform: translate(-1px, 2px); }
}

/* Animated Gradient Background */
.gradient-animated {
    background: linear-gradient(270deg, #1e3a8a, #8b5cf6, #ec4899, #f97316);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Floating Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Terminal Style Text */
.terminal-text {
    font-family: var(--font-mono);
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.terminal-cursor::after {
    content: '_';
    animation: blink 1s infinite;
    color: #00d4ff;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Container and grid adjustments */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Grid spacing adjustments */
.grid {
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .grid {
        gap: 2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tech-grid::before {
        background-size: 30px 30px;
    }
    
    .card-futuristic {
        margin: 0.5rem auto;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loadingDot {
    0%, 80%, 100% { transform: scale(0); opacity: 0; }
    40% { transform: scale(1); opacity: 1; }
}

/* Hexagon Pattern */
.hex-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 5 L90 25 L90 75 L50 95 L10 75 L10 25 Z' fill='none' stroke='%2300d4ff' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* ====================================
   FORM STYLES - Readability First
   ==================================== */

/* All form inputs, textareas, and selects */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select,
.form-input {
    /* Background and Border */
    background-color: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(100, 116, 139, 0.4) !important;
    border-radius: 0.5rem !important;

    /* Text - HIGH CONTRAST WHITE */
    color: #ffffff !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;

    /* Spacing */
    padding: 0.75rem 1rem !important;
    width: 100% !important;

    /* Transitions */
    transition: all 0.3s ease !important;
}

/* Placeholder text - Light gray for readability */
input::placeholder,
textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Focus state - Bright border and glow */
input:focus,
textarea:focus,
select:focus,
.form-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important;
    background-color: rgba(30, 41, 59, 0.95) !important;
}

/* Hover state */
input:hover,
textarea:hover,
select:hover,
.form-input:hover {
    border-color: rgba(139, 92, 246, 0.6) !important;
}

/* Disabled state */
input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    background-color: rgba(15, 23, 42, 0.5) !important;
}

/* Labels - High contrast */
label {
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

/* Select dropdown arrows */
select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
}

/* Checkbox and Radio - Better visibility */
input[type="checkbox"],
input[type="radio"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-color: rgba(30, 41, 59, 0.8) !important;
    border: 2px solid rgba(100, 116, 139, 0.4) !important;
    margin-right: 0.5rem !important;
    cursor: pointer !important;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* Form error states */
input.error,
textarea.error,
select.error {
    border-color: #ef4444 !important;
}

input.error:focus,
textarea.error:focus,
select.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3) !important;
}

/* Error messages */
.error-message {
    color: #fca5a5 !important;
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
}

/* Success state */
input.success,
textarea.success,
select.success {
    border-color: #10b981 !important;
}

/* Button text readability */
button,
.btn,
[type="submit"],
[type="button"] {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Ensure any existing .glass elements have readable text */
.glass label,
.glass-dark label {
    color: #f1f5f9 !important;
}

/* Dark background sections - ensure all text is readable */
section {
    color: #e2e8f0 !important;
}

section h1,
section h2,
section h3,
section h4,
section h5,
section h6 {
    color: #ffffff !important;
}

section p {
    color: #cbd5e1 !important;
}

/* Ensure links are visible */
a {
    color: #60a5fa !important;
}

a:hover {
    color: #93c5fd !important;
}

/* File input */
input[type="file"] {
    padding: 0.5rem !important;
    cursor: pointer !important;
}

input[type="file"]::file-selector-button {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    cursor: pointer !important;
    margin-right: 1rem !important;
    transition: background-color 0.3s ease !important;
}

input[type="file"]::file-selector-button:hover {
    background-color: #2563eb !important;
}

/* Textarea specific */
textarea {
    min-height: 120px !important;
    resize: vertical !important;
}

/* ====================================
   BUTTON CONSISTENCY FIX - ORANGE TO PINK GRADIENT
   ==================================== */

/* Make ALL buttons use the orange-to-pink gradient like the header */
a.bg-orange-500,
a.bg-orange-600,
button.bg-orange-500,
button.bg-orange-600,
[href].bg-orange-500,
[href].bg-orange-600,
.from-orange-500.to-orange-600 {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important;
    background-image: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5), 0 0 40px rgba(236, 72, 153, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

a.bg-orange-500:hover,
a.bg-orange-600:hover,
button.bg-orange-500:hover,
button.bg-orange-600:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6), 0 0 50px rgba(236, 72, 153, 0.4) !important;
}

/* Shimmer effect for buttons */
a.bg-orange-500::before,
a.bg-orange-600::before,
button.bg-orange-500::before,
button.bg-orange-600::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.5s ease !important;
    z-index: 1 !important;
}

a.bg-orange-500:hover::before,
a.bg-orange-600:hover::before,
button.bg-orange-500:hover::before,
button.bg-orange-600:hover::before {
    left: 100% !important;
}

/* Fix gradient buttons that are orange-to-orange to be orange-to-pink */
.from-orange-500.to-orange-600 {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important;
    background-image: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important;
}

/* Ensure all CTA buttons have consistent styling */
.bg-gradient-to-r {
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.bg-gradient-to-r:hover {
    transform: translateY(-2px) !important;
}

/* Ensure gradient overrides work */
a[class*="from-orange"],
button[class*="from-orange"] {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important;
    background-image: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important;
}

/* Fix any black background buttons with blue text */
.bg-black.text-blue-400,
.bg-black.text-blue-500,
.bg-black\\/50.text-blue-400 {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(96, 165, 250, 0.3) !important;
}

/* Standardize all primary action buttons */
[href*="/get-started"],
[href*="/contact"][class*="bg-"],
button[type="submit"] {
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

/* Orange section backgrounds - make them gradient */
section.bg-orange-500 {
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%) !important;
}

/* Small badges/tags - keep subtle, not full button treatment */
span.bg-orange-500:not(a):not(button) {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3) !important;
}

/* Neon glow for orange buttons */
.neon-glow-orange {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.5), 0 0 40px rgba(236, 72, 153, 0.3) !important;
}