/* ==============================
   KANCELARIA
============================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* --- Root Variables --- */
:root {
    --primary: #0f172a;         /* deep navy */
    --accent: #c6a75e;          /* soft gold */
    --light: #f8f8f8;
    --text: #1e293b;
    --max-width: 1200px;
}

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

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
    "wdth" 100;
    color: var(--text);
    line-height: 1.7;
    background: white;
}

/* ==============================
   TOP BAR
============================== */

.topbar {
    background: #0b111f;
    color: white;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}


.topbar p {
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ==============================
    TITLE
============================== */

.title {
    background: var(--primary);
    color: white;
    padding: 120px 20px 100px;
    text-align: center;
}

.title {
    position: relative;
    height: 55vh;
    background: var(--primary);
    display: flex;
    font-size: larger;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
}

.title::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: url("img/logo.png") no-repeat center;
    background-size: contain;
    opacity: 0.08;
    filter: brightness(2);
    z-index: 1;
}

.title h1 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto;
}

/* ==============================
   MAIN CONTENT
============================== */

.contentbox {
    max-width: var(--max-width);
    margin: 100px auto;
    padding: 0 30px;
}

.section1 h2 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--primary);
}

.section1 p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* --- Section 2 Layout --- */

.section2 {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 80px;
    align-items: center;
    margin-top: 100px;
}

.text2 p {
    font-size: 1.05rem;
}

/* --- Image Styling --- */

.image1 img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.4s ease;
}

.image1 img:hover {
    transform: translateY(-5px);
}
/* ==============================
   PRELOADER
============================== */

#preloader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ==============================
   SECTION SYSTEM
============================== */

.section {
    padding: 100px 20px;
}

.section.light {
    background: #f8f8f8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section h2 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section h2::after {
    content: "";
    width: 70px;
    height: 2px;
    background: var(--accent);
    display: block;
    margin: 20px auto 0;
}

/* ==============================
   SERVICES GRID
============================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transition: 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-family: "Playfair Display", serif;
    margin-bottom: 20px;
    color: var(--primary);
}

/* ==============================
   WHY GRID
============================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.why-item {
    background: white;
    padding: 30px;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

/* ==============================
   CTA SECTION
============================== */

.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    max-width: 600px;
    margin: 30px auto 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s ease;
}

.cta-button:hover {
    background: white;
}

/* ==============================
   TEAM SECTION
============================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.collab-grid{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    margin-top: 60px;
    justify-items: center;
}

.team-card a{

    text-decoration: none;

}

.team-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transition: 0.4s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.collab-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transition: 0.4s ease;
    max-width: 20rem;
}

.collab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* IMAGE */

.team-image {
    height: 320px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

/* CONTENT */

.team-content {
    padding: 30px;
    text-align: center;
}

.team-content h3 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.team-content span {
    display: block;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 500;
}

.team-content p {
    font-size: 0.95rem;
    line-height: 1.6;
}


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

@media (max-width: 1024px) {
    .section2 {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .image1 img {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .Title {
        padding: 90px 20px;
    }

    .contentbox {
        margin: 70px auto;
    }

    .section1 h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .Title h1 {
        font-size: 1.8rem;
    }

    .section1 p,
    .text2 p {
        font-size: 0.95rem;
    }
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}