/* Global Variables */
:root {
    --electric-blue: #00D4FF;
    --dark-blue: #0056B3;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --gradient: linear-gradient(135deg, var(--electric-blue), var(--dark-blue));
    --glow: 0 0 30px rgba(0, 212, 255, 0.3);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--electric-blue);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    letter-spacing: -0.02em;
}

/* Updated Logo Image Styling */
.logo-icon-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
}

.logo:hover .logo-icon-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.5));
}

/* Fallback for logo icon (if using icon instead of image) */
.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: transparent;
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--electric-blue);
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--white);
    background: var(--gradient);
    border-color: var(--electric-blue);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Page Container */
#pageContainer {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

.page-content {
    display: none;
    animation: pageLoad 0.8s ease-out forwards;
}

.page-content.active {
    display: block;
}

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--gray);
    margin-bottom: 2rem;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5)); }
    100% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
    animation: float 3s ease-in-out infinite;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-visual-icon {
    width: min(400px, 80vw);
    height: min(400px, 80vw);
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-visual-icon i {
    font-size: clamp(4rem, 10vw, 8rem);
    color: white;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-blue);
    border: 2px solid var(--electric-blue);
}

.btn-secondary:hover {
    background: var(--electric-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    margin-bottom: 0.75rem;
    color: var(--black);
}

.service-card h4 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: var(--black);
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--black);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: var(--white);
    color: var(--black);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Chatbot */
.chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--glow);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.chatbot-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1001;
    overflow: hidden;
}

.chatbot-header {
    background: var(--gradient);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.chatbot-messages {
    height: 380px;
    padding: 1rem;
    overflow-y: auto;
}

.chatbot-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: var(--light-gray);
}

.chatbot-input input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--electric-blue);
    border-radius: 25px;
    outline: none;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--electric-blue);
}

/* Email Gate Styles */
.emailgate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.emailgate-overlay.active {
    display: flex !important;
}

.emailgate-modal {
    background: #FFFFFF;
    border-radius: 15px;
    padding: 2rem;
    padding-top: 2.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: emailgate-slideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes emailgate-slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.emailgate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.emailgate-close:hover {
    background: #ff4444;
    transform: scale(1.1);
}

.emailgate-close i {
    color: #6C757D;
    font-size: 16px;
}

.emailgate-close:hover i {
    color: white;
}

.emailgate-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.emailgate-header h2 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: #0A0A0A;
    margin: 0;
    font-weight: 600;
}

.emailgate-form {
    margin: 0;
}

.emailgate-input-group {
    margin-bottom: 1rem;
}

.emailgate-label {
    display: block;
    color: #0A0A0A;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.emailgate-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #E0E0E0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #0A0A0A;
    transition: all 0.2s ease;
    outline: none;
}

.emailgate-input:focus {
    border-color: #00D4FF;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.emailgate-submit {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: #0A0A0A;
    border: 2px solid #0A0A0A;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1.25rem;
}

.emailgate-submit:hover:not(:disabled) {
    background: transparent;
    color: #0A0A0A;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.emailgate-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.emailgate-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: emailgate-spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes emailgate-spin {
    to { transform: rotate(360deg); }
}

.emailgate-error {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.emailgate-error.show {
    display: block;
}

@keyframes emailgate-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

body.emailgate-active {
    overflow: hidden !important;
    height: 100vh !important;
}

body.emailgate-active > *:not(.emailgate-overlay) {
    display: none !important;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        text-align: center;
        gap: 0.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(0, 212, 255, 0.2);
    }

    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        width: 90%;
        margin: 0 auto;
    }

    .mobile-menu {
        display: block;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon-img {
        width: 38px;
        height: 38px;
    }

    /* Hero Mobile */
    .hero {
        min-height: auto;
        padding: 4rem 0 3rem;
    }
    
    .hero-container {
        text-align: center;
        padding: 0 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }
    
    .hero-image {
        max-width: 350px;
    }

    /* Sections Mobile */
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }

    /* Buttons Mobile */
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }

    /* Chatbot Mobile */
    .chatbot-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }
    
    .chatbot-widget {
        width: calc(100vw - 30px);
        right: 15px;
        left: 15px;
        height: 450px;
        bottom: 80px;
    }
    
    .chatbot-messages {
        height: 330px;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 0 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Email Gate Mobile */
    .emailgate-modal {
        padding: 1.5rem;
        padding-top: 2rem;
        width: 95%;
        max-width: 350px;
    }
    
    .emailgate-close {
        width: 28px;
        height: 28px;
        top: 10px;
        right: 10px;
    }
    
    .emailgate-input {
        padding: 0.7rem 0.9rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .emailgate-submit {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    /* Very Small Devices */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        max-width: 280px;
    }
    
    .hero-visual-icon {
        width: 250px;
        height: 250px;
    }
    
    .hero-visual-icon i {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Logo on very small devices */
    .logo-icon-img {
        width: 35px;
        height: 35px;
    }
    
    /* Form Mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
    }
    
    .hero-visual-icon {
        width: 200px;
        height: 200px;
    }
    
    .chatbot-widget {
        height: 350px;
    }
    
    .chatbot-messages {
        height: 230px;
    }
}