/* KIB General Landing Page Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-main: #000000;       /* Pure Black */
    --bg-card: #1e293b;       /* Slate 800 */
    --bg-card-hover: #334155; /* Slate 700 */
    --accent: #f59e0b;        /* Amber 500 */
    --accent-hover: #d97706;  /* Amber 600 */
    --accent-glow: rgba(245, 158, 11, 0.4);
    --text-primary: #f8fafc;  /* Slate 50 */
    --text-muted: #94a3b8;    /* Slate 400 */
    --border-color: #334155;  /* Slate 700 */
    
    /* Layout & Spacing */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.section-padding {
    padding: 100px 0;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

.section-title {
    font-size: 2.5rem;
    margin-top: 8px;
}

/* Header & Navigation */
header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul a {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

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

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-cta .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.nav-phone {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: url('images/reference-13.jpg'); /* Use a good wide reference photo */
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: -1;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0));
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.hero-tag {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.hero-feature-item h4 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.hero-feature-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* About Section */
.about {
    background-color: rgba(255, 255, 255, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 480px;
}

.about-img-box {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.about-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-1 {
    grid-column: 1 / 9;
    grid-row: 1 / 10;
    z-index: 2;
}

.about-img-2 {
    grid-column: 5 / 13;
    grid-row: 4 / 12;
    z-index: 1;
    transform: translateY(10px);
}

.about-experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: var(--accent);
    color: #000;
    padding: 16px 24px;
    border-radius: 8px;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.about-experience-badge span {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    line-height: 1;
}

.about-experience-badge p {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.about-checklist svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Reference Gallery Section */
.gallery {
    background-color: rgba(255, 255, 255, 0.01);
}

.gallery-grid {
    column-count: 4;
    column-gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    background-color: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-info {
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.gallery-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #fff;
}

.gallery-info p {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

/* Why Choose Us Section */
.why-choose-us {
    background-color: rgba(255, 255, 255, 0.02);
}

.wcu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.wcu-content h3 {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.wcu-content p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.wcu-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wcu-point-item {
    display: flex;
    gap: 20px;
}

.wcu-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wcu-point-text h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.wcu-point-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.wcu-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.05);
    height: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.wcu-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcu-overlay-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    left: 30px;
    background-color: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
}

.wcu-overlay-card h4 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: var(--accent);
}

.wcu-overlay-card p {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0;
}

/* Contact & Form Section */
.contact-section {
    background-color: var(--bg-main);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.contact-info p.lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-detail-icon {
    width: 56px;
    height: 56px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-detail-text span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail-text a, .contact-detail-text p {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.contact-detail-text a:hover {
    color: var(--accent);
}

/* Form Styling */
.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-form-wrapper h4 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.contact-form-wrapper p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

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

.form-btn {
    width: 100%;
}

.form-feedback {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
    font-weight: 500;
}

.form-feedback.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: block;
}

.form-feedback.error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 900px;
    max-height: 80vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.lightbox-nav:hover {
    background: var(--accent);
    color: #000;
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Footer Section */
footer {
    background-color: #080808;
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    color: var(--text-muted);
    margin: 20px 0 0 0;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-contact li svg {
    color: var(--accent);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.footer-social-link:hover {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Intersection Observer Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 3;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-grid, .wcu-grid, .contact-grid {
        gap: 40px;
    }
}

@media (max-width: 1080px) {
    .hamburger {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-main);
        z-index: 999;
        transition: var(--transition-smooth);
        padding: 40px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 24px;
    }
    
    nav ul a {
        font-size: 1.25rem;
        display: block;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 20px);
        text-align: center;
    }
    
    .hero::before {
        width: 100%;
        opacity: 0.15;
        mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-tag {
        justify-content: center;
    }
    
    .hero-tag::before {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 60px;
    }
    
    .about-grid, .wcu-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-images {
        height: 380px;
        order: 2;
    }
    
    .wcu-visual {
        height: 350px;
        order: 2;
    }
    
    .gallery-grid {
        column-count: 2;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 0;
    }
    
    .lightbox-next {
        right: 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        column-count: 1;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}
