:root {
    --primary: #f85a40;
    --primary-dark: #e0442c;
    --secondary: #037ef3;
    --secondary-dark: #026cd1;
    --highlight: #ffc845;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --card-bg: #ffffff;
    --container-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo-branding {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.logo-main {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon i {
    width: 32px;
    height: 32px;
    color: #ef4444;
    margin-right: 8px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #475569;
    margin-left: 2px;
}

.portal-mini-icon {
    display: flex;
    align-items: center;
    color: var(--primary);
    margin: 0 5px;
    padding: 2px;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    background: rgba(30, 64, 175, 0.05);
}

.portal-mini-icon:hover {
    background: rgba(30, 64, 175, 0.15);
    transform: scale(1.1);
}

.portal-mini-icon i {
    width: 18px;
    height: 18px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-links a.active {
    font-weight: 700;
}

.nav-links a.btn-secondary.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white !important;
}

.portal-mini-icon {
    display: flex;
    align-items: center;
    color: var(--primary);
    margin-left: 10px;
    padding: 5px;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.portal-mini-icon:hover {
    background: rgba(30, 64, 175, 0.1);
    transform: scale(1.1);
}

.portal-mini-icon i {
    width: 22px;
    height: 22px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.2);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('hero.png') center/cover no-repeat;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #ffffff 30%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(248, 90, 64, 0.1);
    color: var(--primary);
    border: 1px solid rgba(248, 90, 64, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-primary-large, .btn-submit {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary);
    cursor: pointer;
}

.btn-primary:hover, .btn-primary-large:hover, .btn-submit:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(248, 90, 64, 0.2);
}

.btn-primary-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--secondary);
    cursor: pointer;
}

.btn-secondary:hover, .btn-secondary-large:hover {
    background: var(--secondary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(3, 126, 243, 0.2);
}

.btn-secondary-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

/* Hero Tracking Card */
.hero-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.tracking-pill h3 {
    margin-bottom: 1.5rem;
}

.tracking-input {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    padding: 0.5rem;
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.tracking-input input {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    flex: 1;
    outline: none;
}

.tracking-input button {
    background: var(--highlight);
    border: none;
    color: var(--primary);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.tracking-input button:hover {
    background: var(--primary);
    color: white;
}

.tracking-pill p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tracking-input input {
    color: var(--text-main);
}

/* Stats */
.stats {
    padding: 4rem 0;
    background: var(--bg-alt);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 2rem;
}

@media (max-width: 768px) {
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats .container {
        grid-template-columns: 1fr;
    }
}

.stat-item h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Services */
.services {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.subtitle {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
}

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

.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(248, 90, 64, 0.05) 100%);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(248, 90, 64, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Contact */
.contact {
    padding: 8rem 0;
    background: var(--bg-alt);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--bg-body);
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    padding: 4rem;
    background: var(--primary);
    color: white;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    opacity: 0.9;
    margin-bottom: 3rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

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

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

.contact-form input, .contact-form select, .contact-form textarea {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: var(--primary);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.btn-submit {
    padding: 1.25rem;
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 992px) {
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text p { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-info { padding: 3rem 2rem; }
    .contact-form { padding: 3rem 2rem; }
}

@media (max-width: 768px) {
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 2rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        text-align: center;
        z-index: 100;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        color: var(--text-main);
        font-size: 1.1rem;
        width: 100%;
    }
    .nav-links .btn-secondary {
        align-self: center;
        width: auto;
        min-width: 200px;
        margin-top: 0.5rem;
    }
    .mobile-toggle {
        display: block !important;
        cursor: pointer;
        color: var(--secondary);
        font-size: 1.5rem;
    }
    .hero-text h1 { font-size: 2.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-social .social-icons { justify-content: center; }
}

.mobile-toggle {
    display: none;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }

.revealed {
    opacity: 1 !important;
    transform: translate(0) !important;
}

footer {
    background: var(--bg-body);
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links h4, .footer-social h4 {
    color: var(--primary);
}

.footer-links a, .footer-about p {
    color: var(--text-muted) !important;
}

.footer-links a:hover {
    color: var(--primary) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

footer ul a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

footer ul a:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1001;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-fab i {
    width: 30px;
    height: 30px;
}

.whatsapp-fab:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-fab i {
        width: 24px;
        height: 24px;
    }
}
