/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
    height: 100%;
    background: #f9fafb;
}

html {
    background: url('background.webp') no-repeat center center fixed;
    background-size: 100% auto;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    color: #1e293b;
    line-height: 1.6;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.05);
    background: url('background.webp') no-repeat center center fixed;
    background-size: cover;
    opacity: 0;
    animation: fadeInBody 0.5s ease-in forwards;
}

@keyframes fadeInBody {
    to {
        opacity: 1;
    }
}

/* ================= HEADER ================= */
header {
    position: relative;
    flex-shrink: 0;
    background: url('header-bg.webp') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 18px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    z-index: 1;
    line-height: 1.0;             /* keeps text compact */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 0;
}

header * {
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: all 1.3s ease;
}

nav a:hover {
    opacity: 0.75;
}

nav a.active {
    color: #facc15;
    font-weight: 600;
    border-bottom: 3px solid #facc15;
    padding-bottom: 3px;
}
/* ================= PAGE WRAPPER ================= */
.container2 {
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= MAIN CONTENT ================= */
main {
    flex: 1;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid lightgray;
    transition: opacity 0.5s ease;
    opacity: 1;
    overflow-y: auto;
}

main.fade-out {
    opacity: 0;
}

main.fade-in {
    opacity: 1;
}


/* ================= SECTIONS ================= */
section {
    padding: 90px 70px;
}

section:nth-child(even) {
    background: #f1f5f9;
}

p {
    text-align: justify;
    text-justify: inter-word;
}

strong {
    display: inline;
}

/* ================= FLEX LAYOUT ================= */
.container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.container>div {
    flex: 1;
}

.container>img {
    flex: 1;
    max-width: 500px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.container>img:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* ================= GRID ================= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
    margin-top: 50px;
    transition: all 0.5s ease;
}

.grid-3>div {
    display: flex;
    flex-direction: column;
}

.grid-3 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.grid-3 img:hover {
    transform: translateY(-5px);
}

.grid-3 p {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    text-align: justify;
    text-justify: inter-word;
}

.grid-3 p strong {
    display: inline;
    font-weight: bold;
}

.grid-3 .list-point {
    text-align: left;
    display: block;
    margin-top: 12px;
    padding-left: 20px;
    text-indent: -10px;
    line-height: 1.6;
}

.grid-3 .list-point::before {
    content: "• ";
    color: #4f46e5;
    font-weight: bold;
}

/* ================= ACCORDION ================= */

.accordion {
    margin-top: 40px;
}

.accordion-item {
    margin-bottom: 16px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.accordion-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.accordion-question::after {
    content: "▼";
    position: absolute;
    right: 20px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-question::after {
    transform: rotate(180deg);
}

.accordion-answer {
    display: none;
    padding: 20px;
    background: #f8fafc;
}


/* ================= CONTACT FORM ================= */
form input,
form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    transition: border 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #6366f1;
}

form button {
    padding: 14px 28px;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ================= FOOTER ================= */


/* ================= TYPOGRAPHY ================= */
h2 {
    font-size: 34px;
    margin-bottom: 25px;
    font-weight: 700;
}

h3 {
    margin-top: 25px;
}

.page-title {
    text-align: center;
    margin: 25px 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    header {
        padding: 20px;
    }

    footer {
        padding: 25px;
    }

    section {
        padding: 70px 25px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .container,
    .container.reverse {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        margin-top: 15px;
    }

    nav a {
        margin-left: 15px;
    }
}

@media (max-width: 320px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ================= SCROLLBAR ================= */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 6px;
    border: 3px solid #f0f0f0;
}

body {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f0f0f0;
}

/* ================= corrections ================= */

footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1400px;
    width: 100%;
    background-color: rgba(31, 41, 55, 0.1);
    color: #475569;
    padding: 10px 20px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    backdrop-filter: blur(5px);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #e2e8f0;
    box-sizing: border-box;
    line-height: 1.0;             /* keeps text compact */
    -webkit-backdrop-filter: blur(5px);      /* Safari support */
}

footer nav a {
    color: #6366f1;
    margin: 0 12px;
    font-weight: 500;
    text-decoration: none;
}

footer nav a:hover {
    text-decoration: underline;
}


