:root {
    --logo-deep-blue: #0B2545;
    --accent-light-blue: #3498db;
    --accent-dark-blue: #21618c;

    --bg: #f8f9fa;
    --card: #ffffff;
    --text: var(--logo-deep-blue);
    --muted: #6b7a8d;
    --accent: var(--accent-light-blue);
    --accent2: var(--accent-dark-blue);
    --shadow: 0 10px 30px rgba(11, 37, 69, 0.1);
    --border-color: rgba(11, 37, 69, 0.1);

    --text-rgb-r: 11;
    --text-rgb-g: 37;
    --text-rgb-b: 69;

    --accent-rgb-r: 52;
    --accent-rgb-g: 152;
    --accent-rgb-b: 219;

    --bg-rgb-r: 248;
    --bg-rgb-g: 249;
    --bg-rgb-b: 250;
}

* {
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    margin: 0;
    font-family: "Inter", system-ui, Segoe UI, Arial;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--accent2);
    transform: translateY(-1px);
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-title {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
}

header#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    color: var(--text);
    z-index: 60;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(0);
    transition: transform 0.35s ease-in-out, box-shadow 0.35s ease-in-out, background-color 0.35s ease-in-out, color 0.35s ease-in-out;
}

header.hidden {
    transform: translateY(-100%);
}

#scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    width: 0%;
    transition: width 0.1s ease-out;
    z-index: 61;
    border-radius: 0 2px 2px 0;
}


header .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
    padding: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.logo-link:hover .logo {
    border-color: var(--accent);
    transform: scale(1.08) rotate(5deg);
}

.brand h1 {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.desktop-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text);
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.3s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
    background: rgba(var(--text-rgb-r), var(--text-rgb-g), var(--text-rgb-b), 0.08);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: var(--accent);
}


.menu-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text);
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(var(--text-rgb-r), var(--text-rgb-g), var(--text-rgb-b), 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

.theme-btn {
    display: none;
}


.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 70;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--card);
    padding: 30px;
    color: var(--text);
    z-index: 80;
    transition: left 0.45s cubic-bezier(.68, -0.55, 0.27, 1.55);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.sidebar.show {
    left: 0;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.sidebar a {
    color: var(--text);
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.sidebar a:hover,
.sidebar a:focus {
    background: rgba(var(--text-rgb-r), var(--text-rgb-g), var(--text-rgb-b), 0.08);
    transform: translateX(5px);
    color: var(--accent);
}

.close-btn {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 32px;
    align-self: flex-end;
    cursor: pointer;
    padding: 8px;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-btn i {
    stroke-width: 2.5;
}

.close-btn:hover {
    transform: rotate(135deg) scale(1.15);
    color: var(--accent);
}

main {
    position: relative;
    z-index: 1;
    padding-top: 75px;
    background-color: transparent;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 75px 20px;
    position: relative;
    background: transparent;
    color: var(--text);
    text-shadow: none;
}

.hero-inner {
    z-index: 3;
    text-align: center;
    color: var(--text);
    padding: 60px;
    max-width: 1000px;
    background: var(--card);
    border-radius: 25px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.subtitle {
    font-family: "Playfair Display", serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.subtitle span {
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 800;
}

.lead {
    margin: 0 0 40px;
    font-size: 1.4rem;
    opacity: 0.98;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:hover,
.btn:focus {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    text-decoration: none;
}

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

.btn.primary:hover {
    background: var(--accent2);
}

.hero-actions a.outline {
    display: none;
}

.content-section {
    padding: 100px 20px;
    max-width: 1000px;
    margin: 0 auto;
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.content-section:nth-child(even) {
    background-color: var(--card);
}

.card {
    background: var(--card);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 30px;
    background: var(--card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.expertise-item {
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.expertise-item i {
    width: 60px;
    height: 60px;
    color: var(--accent);
    margin-bottom: 20px;
    stroke-width: 1.8;
}

.expertise-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.expertise-item p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.why-choose-us {
    background-color: var(--bg);
}

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

.benefit-item {
    background: var(--accent);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: var(--accent2);
}

.benefit-item i {
    width: 65px;
    height: 65px;
    color: #fff;
    margin-bottom: 25px;
    stroke-width: 1.8;
}

.benefit-item h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #fff;
}

.benefit-item p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.95;
}


.founder-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.flip-card {
    width: 300px;
    perspective: 1000px;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 420px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(.25, .8, .25, 1.2);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.flip-front {
    background: var(--card);
}

.flip-front img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 50%; /* Adjusted to 50% 50% for standard centering */
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flip-front img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.flip-front h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    color: var(--text);
}

.flip-front p {
    font-size: 1rem;
    color: var(--muted);
}

.flip-back {
    background: var(--accent);
    color: #fff;
    transform: rotateY(180deg);
    text-align: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.flip-back:hover {
    background: var(--accent2);
}

.flip-back p {
    margin: 15px 0;
    line-height: 1.7;
    font-size: 1.05rem;
    padding: 0 10px;
}

.flip-back a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    cursor: default;
}

.image-modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    background: var(--card);
    padding: 50px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: zoomIn 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-content img {
    max-width: 250px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 30px;
    border: 5px solid var(--accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.modal-details h3 {
    margin: 0 0 15px;
    font-size: 2.5rem;
    color: var(--text);
    font-weight: 700;
}

.modal-details p {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 15px;
    text-align: justify;
}

.modal-details p::-webkit-scrollbar {
    width: 10px;
}

.modal-details p::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
}

.modal-details p::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.modal-details p::-webkit-scrollbar-thumb:hover {
    background: var(--accent2);
}


#close-modal-founder {
    position: absolute;
    top: 25px;
    right: 35px;
    font-size: 45px;
    color: var(--text);
    cursor: pointer;
    font-weight: 100;
    transition: transform 0.3s ease, color 0.3s ease;
}

#close-modal-founder i {
    stroke-width: 2.5;
}

#close-modal-founder:hover {
    transform: rotate(270deg) scale(1.2);
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

footer {
    padding: 30px;
    text-align: center;
    background: var(--text);
    color: var(--bg);
    font-size: 1rem;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.team-description-card {
    max-width: 700px;
    margin: 0px auto 70px auto;
    padding: 40px;
    text-align: center;
}

.team-description-card .team-description {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
}


@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-inner {
        padding: 40px;
    }

    .subtitle {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.15rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .expertise-grid,
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .flip-card {
        width: 80%;
        max-width: 350px;
    }

    .team-description-card {
        padding: 30px;
        margin-bottom: 50px;
    }
}

@media (max-width: 600px) {
    header#main-header {
        height: 65px;
        padding: 8px 18px;
    }

    .logo {
        height: 45px;
        width: 45px;
    }

    .brand h1 {
        font-size: 1.2rem;
    }

    .menu-toggle svg {
        width: 26px;
        height: 26px;
    }

    .sidebar {
        width: 90vw;
        padding: 25px;
    }

    .sidebar nav {
        margin-top: 30px;
        gap: 16px;
    }

    .hero {
        min-height: 80vh;
        padding: 60px 15px;
    }

    .hero-inner {
        padding: 30px;
        border-radius: 18px;
    }

    .subtitle {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .lead {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .btn {
        padding: 14px 25px;
        font-size: 1.1rem;
    }

    .content-section {
        padding: 80px 15px;
    }

    .card {
        padding: 30px;
        border-radius: 16px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .expertise-item,
    .benefit-item {
        padding: 30px;
    }

    .expertise-item i,
    .benefit-item i {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .flip-card {
        width: 100%;
    }

    .modal-content {
        padding: 30px;
        border-radius: 18px;
    }

    .modal-content img {
        max-width: 180px;
        margin-bottom: 20px;
    }

    .modal-details h3 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .modal-details p {
        font-size: 1rem;
        max-height: 180px;
    }

    #close-modal-founder {
        font-size: 38px;
        top: 15px;
        right: 20px;
    }

    footer {
        padding: 20px;
        font-size: 0.85rem;
    }
}
