:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #fbbf24;
    --accent: #ef4444;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white); /* Changed to white for visibility */
    text-transform: uppercase;
    letter-spacing: 1px;
}

header.scrolled .logo {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--white); /* Changed to white for visibility */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header.scrolled .nav-links a {
    color: var(--text);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--primary-light);
}

.btn-contact {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

header.scrolled .hamburger span {
    background: var(--text);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 1060;
    padding: 5rem 2rem 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
}

.mobile-nav .mobile-nav-cta {
    margin-top: auto;
    text-align: center;
    padding: 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('ets.png'); /* Added dark overlay */
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white); /* Changed to white */
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    color: var(--white); /* Changed to white */
    margin-bottom: 2rem;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-crimson {
    background: #8B0000;
    border: 2px solid #8B0000;
    color: white;
}

.btn-crimson:hover {
    background: #a50000;
    border-color: #a50000;
}

/* Sections */
section {
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Section */
.stats-section {
    padding: 50px 5%;
    background: var(--primary);
    color: var(--white);
}

.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stats-grid-home h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stats-grid-home p {
    opacity: 0.8;
}

/* Partners / Clients Section */
.clients-section {
    padding: 60px 5%;
    background: var(--bg-alt);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
    opacity: 0.8;
}

.client-item {
    text-align: center;
}

.client-item img {
    height: 50px;
    transition: var(--transition);
    object-fit: contain;
}

.client-item p {
    font-size: 0.75rem;
    font-weight: 600;
}

.client-item i.fa-handshake {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* About / Identity Section */
.about-section {
    background: var(--bg-alt);
}

.identity-logo {
    height: auto;
    width: 250px;
    margin: 0 auto 2rem;
    display: block;
}

.identity-title {
    color: var(--primary);
    font-size: 2.5rem;
}

/* Payment Partners */
.payment-section {
    padding: 60px 5%;
    background: var(--white);
}

.payment-section .section-title h2 {
    font-size: 1.8rem;
    opacity: 0.8;
}

.payment-section .section-title p {
    margin-top: 1rem;
    color: var(--text);
    font-weight: 500;
    max-width: 100%;
}

.payment-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.8;
}

.payment-item {
    text-align: center;
}

.payment-item img {
    height: 60px;
    transition: var(--transition);
}

.payment-item p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
}

/* About / Info */
.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-details {
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.info-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.info-item label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.info-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Footer */
footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 5% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

.footer-payment-note {
    margin-top: 1rem;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .info-container { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    
    /* Show hamburger, hide desktop nav */
    .nav-links { display: none; }
    .btn-contact-desktop { display: none; }
    .hamburger { display: flex; }

    .hero-btns { flex-direction: column; }
    .hero-btns .btn-contact { text-align: center; }

    .stats-grid-home { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stats-grid-home h3 { font-size: 1.8rem; }

    .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
    .payment-grid { gap: 2rem; }
}

@media (max-width: 480px) {
    .stats-grid-home { grid-template-columns: 1fr; }
    .clients-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--secondary);
}

img {
    cursor: pointer;
}

/* Contact Section & Form Styling */
.contact-section {
    background: var(--bg-alt);
    padding: 100px 5%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--primary);
    color: var(--white);
    padding: 3.5rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -100px;
    right: -100px;
    z-index: 0;
    pointer-events: none;
}

.contact-info-content {
    position: relative;
    z-index: 1;
}

.contact-info-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.contact-info-desc {
    opacity: 0.85;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--secondary);
    flex-shrink: 0;
}

.detail-text label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.detail-text span {
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.contact-link:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.contact-form-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 14px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    color: var(--text);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}

.btn-submit {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* Premium Modal Layout */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-box {
    background: var(--white);
    border-radius: 24px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2.5rem;
    position: relative;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-modal-overlay.active .contact-modal-box {
    transform: scale(1);
}

.contact-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-modal-close:hover {
    background: #e2e8f0;
    color: var(--text);
}

.modal-screen {
    display: none;
}

.modal-screen.active {
    display: flex;
    flex-direction: column;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.modal-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 58, 138, 0.08);
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.modal-back-btn:hover {
    color: var(--primary-light);
}

.channel-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.channel-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.25rem;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.channel-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.25rem;
    flex-shrink: 0;
}

.channel-body {
    flex-grow: 1;
}

.channel-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
    color: var(--text);
}

.channel-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.channel-arrow {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: var(--transition);
}

.channel-btn:hover .channel-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

/* Channel styles */
.btn-direct-call .channel-icon { background: rgba(239, 68, 68, 0.08); color: #ef4444; }
.btn-direct-call:hover { border-color: rgba(239, 68, 68, 0.2); background: rgba(239, 68, 68, 0.01); }

.btn-whatsapp .channel-icon { background: rgba(37, 211, 102, 0.08); color: #25d366; }
.btn-whatsapp:hover { border-color: rgba(37, 211, 102, 0.2); background: rgba(37, 211, 102, 0.01); }

.btn-email .channel-icon { background: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.btn-email:hover { border-color: rgba(59, 130, 246, 0.2); background: rgba(59, 130, 246, 0.01); }

/* Services selection view inside modal */
.services-list-container {
    margin-top: 1rem;
}

.modal-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Webkit Scrollbar Styling for modal grid */
.modal-services-grid::-webkit-scrollbar {
    width: 6px;
}
.modal-services-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.modal-services-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.modal-services-grid::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.modal-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    gap: 0.5rem;
}

.modal-service-item i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: var(--transition);
}

.modal-service-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    transition: var(--transition);
}

.modal-service-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.modal-service-item:hover i,
.modal-service-item:hover span {
    color: var(--white);
}

/* Responsiveness for contact and modal */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .contact-info-card {
        padding: 2.5rem;
    }
    .contact-form-card {
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .contact-info-card,
    .contact-form-card {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    .contact-modal-box {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
        width: 95%;
    }
    .modal-services-grid {
        grid-template-columns: 1fr;
        max-height: 280px;
    }
    .modal-service-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0.85rem 1.25rem;
        gap: 1rem;
        text-align: left;
    }
    .modal-service-item i {
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
    }
    .modal-service-item span {
        font-size: 0.88rem;
    }
    .modal-back-btn {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        display: inline-flex;
    }
}
