/* ===========================
   RESET & VARIABLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1F2937;
    --accent-color: #EF4444;
    --secondary-color: #3B82F6;
    --text-dark: #111827;
    --text-gray: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Responsive spacing variables */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --card-padding: clamp(1.5rem, 4vw, 2.5rem);
    --gap-small: clamp(1rem, 2vw, 1.5rem);
    --gap-medium: clamp(2rem, 4vw, 3rem);
}

html {
    scroll-behavior: smooth;
    /* Prevents horizontal scroll issues */
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 5vw, 20px);
    width: 100%;
}

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem clamp(16px, 5vw, 20px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    /* Use min() for better mobile control */
    min-height: min(100vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(rgba(31, 41, 55, 0.85), rgba(31, 41, 55, 0.85)),
    url('images/hero_bg.png') center/cover no-repeat;
    overflow: hidden;
    /* Add padding top for fixed navbar */
    padding-top: 80px;
}

@keyframes gradient {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 2rem);
    width: 100%;
    max-width: 1200px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
    line-height: 1.4;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    max-width: 700px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-indicator span {
    width: 6px;
    height: 10px;
    background: white;
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.btn-secondary {
    background: #25D366;
    color: white;
}

.btn-secondary:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===========================
   SECTIONS
   =========================== */
.section-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    color: var(--primary-color);
    line-height: 1.2;
}

.section-title.light {
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: var(--gap-medium);
    line-height: 1.5;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--gap-small);
}

.service-card {
    /*background: white;*/
    /*min-height: 360px;*/
    padding: var(--card-padding);
    border-radius: clamp(15px, 3vw, 20px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
    background:
            linear-gradient(rgba(31, 41, 55, 0.75), rgba(31, 41, 55, 0.75)),
            var(--card-bg) center / cover no-repeat;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: clamp(12px, 3vw, 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--gap-small);
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.service-card h3 {
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    /*color: var(--primary-color);*/
    line-height: 1.3;
}

.service-card p {
    color: #ffffff;
    /*color: var(--text-gray);*/
    line-height: 1.6;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

/* ===========================
   TRUST SECTION
   =========================== */
.trust {
    padding: var(--section-padding) 0;
    /*background: linear-gradient(135deg, #1F2937 0%, #111827 100%);*/
    background: linear-gradient(
            135deg,
            #5a7090 0%,
            #2a3648 50%,
            #1f2a3a 100%
    );
    color: white;
}

.trust-content {
    display: flex;
    flex-direction: column;
    gap: var(--gap-medium);
}

.partners {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-medium);
}

.partner-badge {
    text-align: center;
}

.partner-logo {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: white;
    padding: clamp(1.5rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.partnership-years {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.years-number {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.years-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    text-align: center;
    opacity: 0.9;
}

.reviews {
    text-align: center;
}

.google-rating {
    display: inline-block;
    padding: clamp(1.5rem, 4vw, 2rem) clamp(2rem, 5vw, 3rem);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.stars {
    font-size: clamp(2rem, 6vw, 3rem);
    color: #FCD34D;
    margin-bottom: 1rem;
}

.rating-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.9;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--gap-medium);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
}

.contact-method {
    display: flex;
    gap: var(--gap-small);
    align-items: flex-start;
}

.contact-icon {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
}

.contact-icon.whatsapp {
    background: #25D366;
}

.contact-method h4 {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-method a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.contact-method a:hover {
    color: #DC2626;
}

.contact-method p {
    color: var(--text-gray);
    font-size: clamp(0.95rem, 2vw, 1rem);
}

/* ===========================
   CONTACT FORM
   =========================== */
.contact-form-container {
    background: white;
    padding: var(--card-padding);
    border-radius: clamp(15px, 3vw, 20px);
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-small);
}

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

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.form-group input,
.form-group textarea {
    padding: clamp(0.875rem, 2vw, 1rem);
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    font-size: clamp(0.95rem, 2vw, 1rem);
    transition: all 0.3s ease;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: linear-gradient(
            135deg,
            #5a7090 0%,
            #2a3648 50%,
            #1f2a3a 100%
    );
    color: white;
    padding: clamp(3rem, 8vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: var(--gap-medium);
    margin-bottom: var(--gap-medium);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
}

.footer-section p {
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: clamp(0.95rem, 2vw, 1rem);
}

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

.footer-bottom {
    text-align: center;
    padding-top: clamp(1.5rem, 4vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet devices */
@media (max-width: 1024px) {
    .hero {
        min-height: min(90vh, 700px);
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .hero {
        min-height: min(85vh, 650px);
        background-position: 60% center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(8px);
        width: min(70%, 300px);
        height: 100vh;
        padding: 2.5rem 0 2rem 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
        transition: left 0.4s ease;
        gap: 0;
        z-index: 999;
    }

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

    .nav-links li {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.3s ease;
        width: 100%;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links a {
        color: white;
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        padding: 1rem 1.5rem;
        border-radius: 0;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(239, 68, 68, 0.2);
        color: var(--accent-color);
        /*transform: translateX(10px);*/
    }

    .nav-links a::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero {
        min-height: min(80vh, 600px);
        background-position: 65% center;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .partners {
        flex-direction: column;
        gap: 2rem;
    }

    .scroll-indicator {
        display: none; /* Hide on very small screens */
    }
}

/* Very small devices (e.g., iPhone SE) */
@media (max-width: 375px) {
    .hero {
        min-height: min(75vh, 550px);
    }

    .nav-links {
        width: 80%;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .hero {
        min-height: min(70vh, 500px);
    }

    .partner-logo {
        font-size: 1.25rem;
    }
}