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

:root {
    --bg-primary: #0a0f1c;
    /* Deep rich dark blue/black */
    --bg-secondary: #0f1623;
    --bg-card: #151b2b;
    --accent-primary: #f59e0b;
    /* Premium Amber/Gold */
    --accent-secondary: #3b82f6;
    /* Tech Blue */
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 15, 28, 0.85);
    /* Glassmorphism */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 220px 0 140px;
    text-align: center;
    background-image: linear-gradient(rgba(10, 15, 28, 0.7), rgba(10, 15, 28, 0.6)), url('hero_bg_v2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Showcase Section - Trusted By */
.showcase {
    padding: 80px 0;
    background-color: var(--bg-primary);
    /* Dark bg */
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.showcase-text {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    font-weight: 600;
}

.showcase-scroller {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.showcase-item {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

.showcase-item i {
    color: var(--accent-secondary);
}

.hero-tag {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.hero-headline {
    font-size: 72px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 28px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
    font-size: 22px;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 48px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 16px 36px;
    border-radius: 50px;
    /* Modern pill shape */
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #d97706);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24, #b45309);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    padding: 60px 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 10;
    margin-top: -50px;
    /* Overlap effect */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--accent-primary);
    /* Gold numbers */
    margin-bottom: 8px;
    line-height: 1;
    display: inline-block;
}

.stat-label {
    font-size: 15px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 120px 0;
    background-color: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.service-icon {
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--accent-primary);
    background: rgba(245, 158, 11, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-primary);
    color: var(--white);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 160px 0;
    background-image: linear-gradient(rgba(10, 15, 28, 0.5), rgba(10, 15, 28, 0.6)), url('about_bg_v2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Center alignment requested */
}

.about-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
}

.about-content p {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Better responsiveness */
    gap: 40px;
    margin-top: 60px;
    text-align: left;
    /* Keep feature text left-aligned for readability */
}

.feature-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 30px;
    background: rgba(21, 27, 43, 0.6);
    /* Semi-transparent */
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.feature-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--bg-primary), #05080f);
}

.contact-wrapper {
    max-width: 1000px;
    /* Increased max-width */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Two column layout for larger screens */
    gap: 60px;
    align-items: start;
}

.contact-info {
    text-align: left;
    margin-bottom: 0;
    padding-top: 20px;
}

.contact-info p {
    font-size: 18px;
    color: var(--text-muted);
    padding-right: 20px;
}

.contact-info h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-form {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    /* Ensure full width */
    background-color: rgba(255, 255, 255, 0.05);
    /* Lighter background */
    border: 1px solid var(--border);
    color: var(--white);
    padding: 18px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 3rem;
    color: rgba(156, 163, 175, 0.8);
    /* Muted initial color */
}

/* When valid (selected), make text white specific to select if needed, or JS toggle */
.form-group select:valid {
    color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    outline: none;
}

/* Footer */
.footer {
    background-color: #020408;
    /* Darkest */
    color: var(--text-muted);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    /* 4 columns */
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand .logo img {
    height: 35px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    max-width: 300px;
}

/* New Footer Column Classes */
.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 15px;
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
}

/* Hide original footer-links to use new structure */
.footer-links {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding: 60px 0;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-headline {
        font-size: 48px;
    }

    .stats-grid {
        gap: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Helper classes for JS scroll animations */
.fade-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Clients Section */
.clients-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    text-align: center;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.clients-section h3 {
    color: var(--text-dark);
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 700;
}

.clients-grid {
    display: flex;
    gap: 80px;
    align-items: center;
    width: max-content;
    will-change: transform;
}

.clients-grid.animate {
    animation: scroll-left 40s linear infinite;
}

.clients-grid a {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.clients-grid img {
    height: 80px;
    width: auto;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
    display: block;
}

.clients-grid a:hover {
    transform: scale(1.1);
}

.clients-grid a:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.clients-section:hover .clients-grid {
    animation-play-state: paused;
}

/* Marquee Animation - Right to Left */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-100% / 3));
    }
}

/* Service Modal - Fix for visibility issue */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-card);
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    padding: 10px;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.modal-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon-wrapper i {
    font-size: 32px;
    color: var(--accent-primary);
}

#modalTitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

#modalBody {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-cta {
    display: inline-block;
    min-width: 200px;
}

/* Message Modals (Success/Error) */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.message-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.message-modal-content {
    background-color: var(--bg-primary);
    padding: 50px 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    transform: translateY(30px) scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(199, 125, 10, 0.2);
}

.message-modal.active .message-modal-content {
    transform: translateY(0) scale(1);
}

.message-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.message-modal-content.success .message-icon {
    background-color: rgba(16, 185, 129, 0.1);
}

.message-modal-content.error .message-icon {
    background-color: rgba(239, 68, 68, 0.1);
}

.message-icon i {
    font-size: 40px;
}

.message-modal-content.success .message-icon i {
    color: #10b981;
}

.message-modal-content.error .message-icon i {
    color: #ef4444;
}

.message-modal-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.message-modal-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.message-modal-content p a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.message-modal-content p a:hover {
    text-decoration: underline;
}

.message-modal-content .btn {
    min-width: 150px;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}