/* ============================================
   KPARK IT - MAIN STYLESHEET
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --primary: #0a2463;
    --primary-light: #1b3a8f;
    --primary-dark: #061540;
    --accent: #3e92cc;
    --accent-light: #6bb5e5;
    --white: #ffffff;
    --light-grey: #f4f6f9;
    --mid-grey: #e8ecf1;
    --text-dark: #1a1a2e;
    --text-medium: #4a5568;
    --text-light: #718096;
    --border: #dce3ed;
    --shadow-sm: 0 2px 8px rgba(10, 36, 99, 0.08);
    --shadow-md: 0 4px 20px rgba(10, 36, 99, 0.12);
    --shadow-lg: 0 8px 40px rgba(10, 36, 99, 0.18);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font: 'Poppins', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: var(--font);
    border: none;
    outline: none;
}

input,
textarea,
select {
    font-family: var(--font);
    outline: none;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-img {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
    animation: fadeInDown 0.6s ease;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 10px;
    animation: loadBar 1.5s ease forwards;
}

@keyframes loadBar {
    to {
        width: 100%;
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    color: var(--text-medium);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 90px 0;
}

.section-sm {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
}

.section-tag {
    display: inline-block;
    background: rgba(62, 146, 204, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.bg-light {
    background: var(--light-grey);
}

.bg-primary {
    background: var(--primary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 146, 204, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-dark:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 9px 22px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

#header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 30px;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-medium);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--light-grey);
}

.nav-cta {
    margin-left: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 16px 24px 20px;
    background: var(--white);
    border-top: 1px solid var(--border);
    gap: 4px;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-medium);
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary);
    background: var(--light-grey);
}

.mobile-nav .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 40%, #f4f6f9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(62, 146, 204, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 36, 99, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(62, 146, 204, 0.1);
    color: var(--accent);
    border: 1px solid rgba(62, 146, 204, 0.2);
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge i {
    font-size: 0.75rem;
}

.hero h1 {
    color: var(--primary);
    margin-bottom: 20px;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero h1 span {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 36px;
    max-width: 560px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-stat h3 {
    font-size: 2rem;
    color: var(--primary);
}

.hero-stat h3 span {
    color: var(--accent);
}

.hero-stat p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

.hero-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-img-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px;
    max-width: 420px;
    width: 100%;
}

.hero-img-card img {
    border-radius: var(--radius-md);
    width: 100%;
}

.hero-floating {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.hero-floating i {
    color: var(--accent);
    font-size: 1.2rem;
}

.hero-floating-1 {
    top: 20px;
    left: -20px;
}

.hero-floating-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: 1.5s;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(62, 146, 204, 0.2);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(62, 146, 204, 0.12), rgba(10, 36, 99, 0.06));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--accent);
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--accent);
    color: var(--white);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-badge-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-md);
    min-width: 140px;
}

.about-badge-box h3 {
    font-size: 2.2rem;
    color: var(--white);
}

.about-badge-box p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.about-content {
    padding-left: 20px;
}

.about-content h2 {
    margin-bottom: 16px;
}

.about-content p {
    margin-bottom: 18px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-medium);
}

.about-feature i {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 18px;
    display: block;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-features {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-medium);
}

.service-features li i {
    color: var(--accent);
    font-size: 0.75rem;
}

.service-card .btn {
    margin-top: 18px;
    font-size: 0.85rem;
    padding: 9px 20px;
}

/* ============================================
   WHY US
   ============================================ */
.why-us {
    background: var(--primary);
}

.why-us .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.why-us h2 {
    color: var(--white);
}

.why-us p {
    color: rgba(255, 255, 255, 0.7);
}

.why-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.why-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.4rem;
    color: var(--white);
}

.why-card h4 {
    color: var(--white);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-medium);
    background: var(--light-grey);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    background: var(--light-grey);
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 36, 99, 0.92) 0%, rgba(10, 36, 99, 0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay h4 {
    color: var(--white);
    margin-bottom: 4px;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.portfolio-overlay .tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 30px;
    margin-bottom: 10px;
}

/* Portfolio Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    position: relative;
    height: 280px;
    background: var(--light-grey);
    overflow: hidden;
}

.modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-body {
    padding: 30px;
}

.modal-body h3 {
    margin-bottom: 10px;
}

.modal-body p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-tag {
    background: var(--light-grey);
    color: var(--text-medium);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 30px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: var(--light-grey);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.author-info h5 {
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(62, 146, 204, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 14px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    background: var(--white);
    padding: 70px 0;
}

.newsletter-box {
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-content h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.newsletter-form input {
    flex: 1;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    background: var(--white);
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo {
    color: var(--white);
}

.footer-brand .nav-logo span {
    color: var(--accent);
}

.footer-desc {
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    color: var(--white);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '→';
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-contact-item i {
    color: var(--accent);
    font-size: 0.9rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-contact-item p {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-contact-item a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: var(--accent);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    text-align: center;
    position: relative;
}

.page-hero h1 {
    color: var(--primary);
    margin-bottom: 14px;
}

.page-hero p {
    font-size: 1.05rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-light);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.mv-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mv-icon.blue {
    background: rgba(10, 36, 99, 0.08);
    color: var(--primary);
}

.mv-icon.teal {
    background: rgba(62, 146, 204, 0.1);
    color: var(--accent);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-img {
    height: 240px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 24px;
}

.team-info h4 {
    margin-bottom: 4px;
}

.team-info .role {
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

.team-info p {
    font-size: 0.87rem;
    color: var(--text-light);
    margin-top: 10px;
}

.team-socials {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.team-socials a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-medium);
    transition: var(--transition);
}

.team-socials a:hover {
    background: var(--accent);
    color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    padding: 30px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--white);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.value-card h4 {
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: calc(50% - 40px);
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent);
    z-index: 1;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeline-content h4 {
    margin-bottom: 6px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-light);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.contact-form-box {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.contact-form-box h3 {
    margin-bottom: 6px;
}

.contact-form-box>p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(62, 146, 204, 0.12);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e53e3e;
}

.form-error {
    font-size: 0.78rem;
    color: #e53e3e;
    margin-top: 5px;
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: rgba(62, 146, 204, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
    color: var(--text-medium);
    font-size: 0.9rem;
}

.contact-info-text a:hover {
    color: var(--accent);
}

.map-placeholder {
    margin-top: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 220px;
    background: linear-gradient(135deg, #e8f0fe, #f0f4ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    gap: 10px;
}

.map-placeholder i {
    font-size: 2.5rem;
    color: var(--accent);
}

.map-placeholder p {
    font-size: 0.92rem;
    color: var(--text-medium);
}

.form-success {
    display: none;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    color: #16a34a;
    font-weight: 600;
    margin-top: 16px;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.floating-btns {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.float-wa {
    background: #25d366;
}

.float-call {
    background: var(--accent);
}

.float-top {
    background: var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.float-top.show {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   STATS COUNTER
   ============================================ */
.stats-section {
    background: var(--primary);
    padding: 70px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
}

.stat-number span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(62, 146, 204, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(62, 146, 204, 0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s !important;
}

.delay-2 {
    transition-delay: 0.2s !important;
}

.delay-3 {
    transition-delay: 0.3s !important;
}

.delay-4 {
    transition-delay: 0.4s !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet: up to 1024px --- */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Mobile: up to 768px --- */
@media (max-width: 768px) {

    /* General */
    .section {
        padding: 55px 0;
    }

    .container {
        padding: 0 18px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    h1 {
        font-size: clamp(1.7rem, 7vw, 2.4rem);
    }

    h2 {
        font-size: clamp(1.35rem, 5vw, 1.9rem);
    }

    /* Navbar */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-logo-img {
        height: 38px;
    }

    /* Hero */
    .hero {
        padding: 110px 0 55px;
        text-align: center;
    }

    .hero .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-image {
        display: none;
    }

    .hero-badge {
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
        margin-top: 32px;
    }

    .hero-stat {
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    /* Grids */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .why-us .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mission-vision {
        grid-template-columns: 1fr;
    }

    /* About */
    .about-content {
        padding-left: 0;
    }

    .about-badge-box {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 20px;
        display: inline-block;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-box {
        width: 100%;
    }

    .contact-form-box {
        width: 100%;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100% !important;
        margin: 0 !important;
    }

    .timeline-dot {
        left: 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    /* Newsletter */
    .newsletter-box {
        padding: 36px 20px;
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
    }

    /* CTA */
    .cta-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta-btns .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cta-banner {
        padding: 60px 0;
    }

    /* Page Hero (inner pages) */
    .page-hero {
        padding: 110px 0 48px;
        text-align: center;
    }

    /* Buttons */
    .btn-lg {
        padding: 12px 26px;
        font-size: 0.95rem;
    }

    /* Floating buttons */
    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .floating-btns {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    /* Map */
    .map-embed-wrapper iframe {
        height: 200px;
    }

    /* Loader */
    .loader-logo-img {
        height: 85px;
    }
}

/* --- Small phones: up to 480px --- */
@media (max-width: 480px) {

    /* General */
    .section {
        padding: 42px 0;
    }

    .container {
        padding: 0 14px;
    }

    .section-tag {
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    /* Navbar */
    .nav-logo-img {
        height: 32px;
    }

    /* Hero */
    .hero {
        padding: 95px 0 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }

    .hero-stat h3 {
        font-size: 1.6rem;
    }

    /* Grids → all single column */
    .grid-4,
    .grid-3,
    .why-us .grid-4,
    .values-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.87rem;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-btns .btn {
        max-width: 100%;
    }

    /* Cards */
    .card {
        padding: 22px 16px;
    }

    .service-card {
        padding: 22px 16px;
    }

    .testimonial-card {
        padding: 20px 16px;
    }

    .why-card {
        padding: 22px 16px;
    }

    /* Stats */
    .stat-number {
        font-size: 2rem;
    }

    /* Contact */
    .contact-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Footer */
    .footer-grid {
        gap: 22px;
    }

    .footer-brand .nav-logo-img {
        height: 36px;
        margin: 0 auto;
    }

    /* Newsletter */
    .newsletter-content h3 {
        font-size: 1.2rem;
    }

    /* Loader */
    .loader-logo-img {
        height: 70px;
    }

    .loader-bar {
        width: 150px;
    }

    /* Map */
    .map-embed-wrapper iframe {
        height: 175px;
    }

    /* Mobile nav */
    .mobile-nav {
        padding: 14px 16px 18px;
    }
}

/* ============================================
   MAP EMBED
   ============================================ */
.map-embed-wrapper {
    margin-top: 6px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.map-embed-wrapper iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
    border-radius: 12px 12px 0 0;
}

.map-open-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--light-grey);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 0 0 12px 12px;
}

.map-open-link:hover {
    background: var(--accent);
    color: var(--white);
}