/* ==============================
   Variables & Reset
   ============================== */
:root {
    --primary: #1e3a8a;
    --primary-dark: #162d6e;
    --secondary: #dc2626;
    --secondary-dark: #b91c1c;
    --text-dark: #1f2937;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 10px;
    --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section { padding: 5.5rem 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

h1, h2, h3, h4 { color: var(--primary); margin-bottom: 0.75rem; }

/* Section Header */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header h2 { font-size: 2.2rem; }
.section-subtitle { color: var(--text-mid); margin-top: 0.5rem; }
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}
.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
}
.btn-primary:hover { background-color: var(--secondary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-nav {
    background-color: var(--secondary);
    color: var(--white);
    padding: 0.55rem 1.3rem;
    font-size: 0.88rem;
}
.btn-nav:hover { background-color: var(--secondary-dark); }
.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    background-color: #25d366;
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}
.btn-wa:hover { background-color: #1db855; transform: translateY(-2px); }

/* ==============================
   Navbar
   ============================== */
nav {
    background-color: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background var(--transition), box-shadow var(--transition);
}
nav.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}
.logo-img {
    height: 42px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.75rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--secondary);
    transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span {
    display: block;
    width: 26px; height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all var(--transition);
}

/* ==============================
   Hero
   ============================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1541888081622-29fc781b0a8f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,58,138,0.88) 0%, rgba(15,30,80,0.75) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding: 2rem;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.tagline {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-style: italic;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 1;
}
.hero-scroll-indicator span {
    display: block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    animation: bounce 1.5s infinite;
}
.hero-scroll-indicator span:nth-child(1) { animation-delay: 0s; }
.hero-scroll-indicator span:nth-child(2) { animation-delay: 0.2s; }
.hero-scroll-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

/* ==============================
   Stats Bar
   ============================== */
.stats-bar {
    background: var(--primary);
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.stat-item { padding: 1rem; }
.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.4rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==============================
   About
   ============================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h2 { font-size: 2.2rem; }
.about-text p { color: var(--text-mid); margin-bottom: 1rem; }
.legality-box {
    margin-top: 1.75rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-left: 4px solid var(--secondary);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.legality-box h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}
.legality-box ul { list-style: none; }
.legality-box li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--text-mid);
    font-size: 0.92rem;
}
.legality-box li i { color: var(--secondary); font-size: 0.75rem; }

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: visible;
}
.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: block;
}
.about-image-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
}
.about-image-badge i { font-size: 1.5rem; opacity: 0.9; }
.about-image-badge span { font-size: 0.8rem; line-height: 1.4; }
.about-image-badge strong { font-size: 1.2rem; }

/* ==============================
   Services
   ============================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.service-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-card:hover .service-img img { transform: scale(1.05); }
.service-icon {
    position: absolute;
    bottom: -1.25rem;
    left: 1.5rem;
    width: 2.75rem; height: 2.75rem;
    background: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(220,38,38,0.4);
    z-index: 1;
}
.service-body { padding: 2.25rem 1.75rem 1.75rem; }
.service-body h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.service-body p { color: var(--text-mid); font-size: 0.93rem; margin-bottom: 1rem; }
.service-list { list-style: none; }
.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--text-mid);
    font-size: 0.9rem;
}
.service-list li i { color: #16a34a; margin-top: 3px; flex-shrink: 0; }

/* ==============================
   Why Us / Features
   ============================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
}
.feature-item {
    background: var(--white);
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border-bottom: 3px solid transparent;
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--secondary);
}
.feature-icon {
    width: 3.5rem; height: 3.5rem;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--primary);
}
.feature-item h4 { font-size: 1rem; color: var(--primary); margin-bottom: 0.4rem; }
.feature-item p { font-size: 0.85rem; color: var(--text-mid); }

/* ==============================
   Portfolio
   ============================== */
.portfolio-featured {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.portfolio-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.portfolio-card img {
    width: 100%; height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card-info {
    background: var(--white);
    padding: 1.1rem 1.25rem;
}
.portfolio-tag {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.4rem;
}
.portfolio-card-info h4 { font-size: 1rem; margin: 0.2rem 0; }
.portfolio-card-info p { font-size: 0.82rem; color: var(--text-light); margin: 0; }
.table-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Table */
.table-responsive { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
}
th, td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; }
th { background-color: var(--primary); color: var(--white); font-size: 0.88rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #eff6ff; }

/* ==============================
   Footer
   ============================== */
.footer-top {
    background-color: var(--primary-dark);
    padding: 4rem 0;
    color: rgba(255,255,255,0.85);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}
.footer-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.6; }

.footer-contact h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 1.25rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
}
.contact-item i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; width: 1rem; }
.contact-item a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--transition); }
.contact-item a:hover { color: var(--white); }

.footer-bottom {
    background-color: rgba(0,0,0,0.25);
    padding: 1.25rem 0;
    text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* WhatsApp Floating Button */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem; height: 3.5rem;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}
.wa-float:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

/* ==============================
   Scroll Animations
   ============================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-image { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-featured { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        text-align: center;
        padding: 1.5rem 0;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        gap: 0;
    }
    .nav-links li { padding: 0.5rem 0; }
    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .btn-nav { display: none; }

    .hero-content h1 { font-size: 2.2rem; }
    .tagline { font-size: 1.1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .portfolio-featured { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
}
