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

html {
    background: #161C29;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #161C29;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



:root {
    /* Big logo position (adjust to match the magenta circle) */
    --hero-logo-x: 70vw;
    --hero-logo-y: 52vh;
    --hero-logo-size: 320px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* Header Styles */
.header {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 2000; /* CHANGED: Above viewport clouds */
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section - clouds own the area; big logo is pinned to viewport */
.hero-section {
    display: block;
    position: relative;
    width: 100%;
    padding: 2rem;
    min-height: 650px;
}



/* Hero Logo - pinned to viewport (matches the magenta circle) */
.hero-logo {
    position: fixed;
    left: var(--hero-logo-x);
    top: var(--hero-logo-y);
    transform: translate(-50%, -50%);
    z-index: 1100; /* above clouds (1000), below header/footer (2000) */
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    width: var(--hero-logo-size);
    height: var(--hero-logo-size);
    object-fit: contain;
}

/* cloudFence removed — no longer needed */

/* === VIEWPORT-WIDE CLOUD ANIMATION - COMPLETE FREEDOM === */

/* Cloud container is now just a placeholder - clouds escape to full viewport */
#cloudsContainer {
    position: relative;
    overflow: visible !important;  /* Allow clouds to escape */
    border: none !important;
    background: transparent !important;
    z-index: 20;
    width: 100%;
    height: 650px;
    /* This container no longer constrains the clouds */
}

/* Service Cards - NOW VIEWPORT-WIDE FLOATING CLOUDS */
.service-card {
    background-image: url('cloud-template.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    
    /* VIEWPORT-WIDE POSITIONING - COMPLETE FREEDOM */
    position: fixed !important;  /* CHANGED: Fixed positioning for viewport movement */
    left: 0; 
    top: 0;
    width: 300px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
    transform: translate3d(0px, 0px, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    z-index: 1000;
    overflow: visible !important;
    pointer-events: auto;
}

.service-card:hover {
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.5));
}

.service-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    z-index: 10;
    position: relative;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    max-width: 220px;
    padding: 0 10px;
}

/* Services animation container - now just layout placeholder */
.services-animation-container {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: visible !important;  /* CHANGED: No clipping */
    border-radius: 20px;
    background: transparent;
}

/* Center Logo with Circuit Pattern */
.center-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    width: 250px;  /* Reduced from 300px */
    height: 250px; /* Reduced from 300px */
    background: linear-gradient(135deg, #4a69bd 0%, #3742fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
}

.circuit-pattern {
    position: absolute;
    width: 320px;  /* Reduced from 400px */
    height: 320px; /* Reduced from 400px */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: 
        radial-gradient(circle at 50% 50%, transparent 40%, transparent 41%, #ffffff20 41%, #ffffff20 42%, transparent 42%),
        linear-gradient(0deg, transparent 24%, #ffffff30 25%, #ffffff30 26%, transparent 27%, transparent 74%, #ffffff30 75%, #ffffff30 76%, transparent 77%),
        linear-gradient(90deg, transparent 24%, #ffffff30 25%, #ffffff30 26%, transparent 27%, transparent 74%, #ffffff30 75%, #ffffff30 76%, transparent 77%),
        linear-gradient(45deg, transparent 45%, #ffffff20 46%, #ffffff20 47%, transparent 48%),
        linear-gradient(-45deg, transparent 45%, #ffffff20 46%, #ffffff20 47%, transparent 48%);
    background-size: 20px 20px, 40px 40px, 40px 40px, 30px 30px, 30px 30px;
    animation: circuitFlow 4s linear infinite;
    opacity: 0.7;
}

.circuit-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, #ffffff40 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, #ffffff40 2px, transparent 2px),
        radial-gradient(circle at 20% 80%, #ffffff40 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, #ffffff40 2px, transparent 2px),
        radial-gradient(circle at 50% 10%, #ffffff40 1px, transparent 1px),
        radial-gradient(circle at 10% 50%, #ffffff40 1px, transparent 1px),
        radial-gradient(circle at 90% 50%, #ffffff40 1px, transparent 1px),
        radial-gradient(circle at 50% 90%, #ffffff40 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitPulse 2s ease-in-out infinite alternate;
}

@keyframes circuitFlow {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes circuitPulse {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

.center-logo-img {
    width: 150px;
    height: 150px;
    z-index: 10;
    position: relative;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

/* Contact Page Styles */
.contact-main {
    padding: 3rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.contact-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Contact Form */
.contact-form-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #161C29 0%, #1f2937 50%, #2563eb 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22, 28, 41, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    color: #666;
}

.info-card li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.info-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Form Messages */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    position: relative;
    z-index: 2000; /* CHANGED: Above viewport clouds */
}

.footer p {
    opacity: 0.8;
}

/* Pricing Page Styles */
.pricing-main {
    padding: 3rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.pricing-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Rates Section */
.rates-section {
    text-align: center;
}

.rates-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.rates-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.rate-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rate-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.rate-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.rate-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #161C29;
}

.rate-price span {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.7;
}

.rate-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Transparency Section */
.transparency-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.transparency-card h2 {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.transparency-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.feature-content h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-card h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #161C29 0%, #25334D 50%, #2563eb 100%);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(22, 28, 41, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(22, 28, 41, 0.4);
    text-decoration: none;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {

:root {
    --hero-logo-size: 180px;
}

/* Mobile: static layout — no floating animation */
    .hero-section {
        min-height: auto;
        padding: 1rem;
    }

    .hero-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        z-index: 1;
        margin: 0 auto 1.5rem;
    }

    .hero-logo img {
        width: var(--hero-logo-size);
        height: var(--hero-logo-size);
    }

    .services-animation-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        overflow: visible !important;
    }

    .service-card {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        will-change: auto;
        width: 280px;
        height: 130px;
        padding: 1.2rem;
        max-width: 100%;
    }

    .service-card h3 {
        font-size: 0.95rem;
        line-height: 1.2;
        max-width: 200px;
    }

    .center-logo-img {
        width: 100px;
        height: 100px;
        max-width: 90vw;
    }
    
    /* Mobile: Header adjustments */
    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Mobile: Main content padding */
    .main {
        padding: 1rem 0;
        min-height: calc(100vh - 100px);
    }
    
    /* Mobile: Container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Mobile: Contact page adjustments */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    /* Mobile: Pricing page adjustments */
    .pricing-header h1 {
        font-size: 2.2rem;
    }
    
    .pricing-header p {
        font-size: 1rem;
    }
    
    .rates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rate-card {
        padding: 2rem 1.5rem;
    }
    
    .transparency-section {
        padding: 2rem;
    }
    
    .transparency-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .feature-icon {
        min-width: auto;
    }
    
    .cta-card {
        padding: 3rem 2rem;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}


/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-section {
        gap: 3rem;
        padding: 1.5rem;
    }
    
    /* Tablet viewport clouds */
    .service-card {
        width: 260px;
        height: 160px;
    }
    
    .center-logo-img {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 480px) {
    .pricing-content {
        gap: 3rem;
    }
    
    .rates-section h2 {
        font-size: 2rem;
    }
    
    .rate-price {
        font-size: 2.5rem;
    }
    
    .transparency-card h2 {
        font-size: 2rem;
    }
}
