/* Advanced Dark Theme for Mightain Technologies */

/* Font Setup */
body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.font-mono {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #06b6d4, #3b82f6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0891b2, #2563eb);
}

/* Header Styles */
#header {
    background: transparent;
    backdrop-filter: blur(0px);
}

#header.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.3s ease;
}

@media (min-width: 1024px) {
    .nav-link {
        padding: 0.5rem 1.5rem;
    }
}

.nav-link:hover {
    color: #06b6d4;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated Gradient Spheres */
.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.gradient-sphere-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.gradient-sphere-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: 40%;
    right: -5%;
    animation-delay: 5s;
}

.gradient-sphere-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

/* Floating Particles */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 10px #06b6d4;
    animation: particle-float 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 3s; }
.particle:nth-child(3) { left: 50%; animation-delay: 6s; }
.particle:nth-child(4) { left: 70%; animation-delay: 9s; }
.particle:nth-child(5) { left: 90%; animation-delay: 12s; }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

/* Company Cards */
.company-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-card-inner {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
}

.company-card:hover .company-card-inner {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

/* Service Cards */
.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    filter: blur(20px);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.5);
}

.service-card:hover .service-card-glow {
    opacity: 0.3;
}

/* Tech Badges */
.tech-badge {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    text-align: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    cursor: default;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Notification */
.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 420px;
    width: calc(100% - 40px);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-notification.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 640px) {
    .custom-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out;
}

/* Glow Effects */
.glow-cyan {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Selection */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: #fff;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

*:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Mobile Menu Styles */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gradient-sphere {
        filter: blur(60px);
    }
    
    .gradient-sphere-1,
    .gradient-sphere-2,
    .gradient-sphere-3 {
        width: 300px;
        height: 300px;
    }
    
    /* Mobile Hero Adjustments */
    #home {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    #home h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    #home .text-xl {
        font-size: 1.125rem;
    }
    
    /* Mobile Header */
    #header {
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    #backToTop,
    .particles-container {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* Google reCAPTCHA Badge */
.grecaptcha-badge {
    z-index: 50 !important;
}


/* Legal Pages Styles */
.legal-page {
    background: #0a0a0f;
    color: #e5e7eb;
}

.legal-header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.legal-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-header img {
    height: 2.5rem;
    width: auto;
}

.legal-header nav a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.legal-header nav a:hover {
    color: #06b6d4;
}

.legal-content {
    max-width: 900px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.legal-document {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 3rem;
}

@media (max-width: 768px) {
    .legal-document {
        padding: 2rem 1.5rem;
    }
    
    .legal-content {
        margin: 6rem auto 2rem;
        padding: 0 1rem;
    }
}

.legal-document h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-document .last-updated {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    display: block;
}

.legal-document h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #06b6d4;
}

.legal-document h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #3b82f6;
}

.legal-document p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #d1d5db;
}

.legal-document ul, .legal-document ol {
    margin-left: 2rem;
    margin-bottom: 1.25rem;
}

.legal-document li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: #d1d5db;
}

.legal-document a {
    color: #06b6d4;
    text-decoration: underline;
}

.legal-document a:hover {
    color: #3b82f6;
}

.legal-document strong {
    color: #fff;
    font-weight: 600;
}

.legal-document .highlight-box {
    background: rgba(6, 182, 212, 0.1);
    border-left: 4px solid #06b6d4;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
}

.legal-footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.legal-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.legal-footer p {
    color: #9ca3af;
    font-size: 0.875rem;
    text-align: center;
}

.legal-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.legal-footer nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-footer nav a:hover {
    color: #06b6d4;
}
