@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #5e72e4;
    --secondary-color: #32325d;
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #32325d;
    --text-secondary: #525f7f;
    --text-light: #ffffff;
    --border-color: rgba(255,255,255,.26);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.12);
    --shadow-glass: 0 8px 32px rgba(0,0,0,.1);
    --glass-bg: rgba(255,255,255,0.25);
    --glass-bg-header: rgba(255,255,255,0.35);
    --glass-border: rgba(255,255,255,0.3);
    --glass-blur: blur(15px);
    --glass-blur-strong: blur(20px);
    --font-family: 'Open Sans', sans-serif;
    --heading-family: 'Open Sans', sans-serif;
    --transition: 0.3s ease;
    --header-height: 90px;
    /* Footer always has dark bg, so text is always white */
    --surface-text: #ffffff;
    --surface-text-soft: rgba(255,255,255,0.75);
}

body {
    font-family: 'Open Sans', sans-serif !important;
    background: var(--bg-main) !important;
    color: var(--text-secondary) !important;
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body,
.fds-navbar,
.fds-hero,
.fds-section,
.fds-dark,
.fds-footer,
.fds-contact,
.fds-card,
.fds-portfolio__item,
.fds-stats,
.fds-embed {
    font-family: 'Open Sans', sans-serif;
}

body[data-theme="dark"] {
    --bg-main: #0e1220;
    --bg-secondary: #111722;
    --text-primary: #ecf2f8;
    --text-secondary: #c4ccda;
    --glass-bg: rgba(17, 23, 34, 0.26);
    --glass-bg-header: rgba(17, 23, 34, 0.44);
    --glass-border: rgba(255,255,255,0.12);
    background: #0e1220 !important;
    color: var(--text-secondary) !important;
}

a { color: inherit; text-decoration: none !important; transition: var(--transition); }
a:hover { color: var(--primary-color) !important; }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 {
    color: var(--text-primary) !important;
    font-weight: 800 !important;
    font-family: 'Open Sans', sans-serif !important;
    margin-bottom: 1rem !important;
}
h1 { font-size: 2.5rem !important; }
h2 { font-size: 2.2rem !important; }
h3 { font-size: 1.8rem !important; }
h4 { font-size: 1.5rem !important; }
h5 { font-size: 1.2rem !important; }
h6 { font-size: 1rem !important; }
p { color: var(--text-secondary) !important; font-size: 1rem !important; line-height: 1.7 !important; margin-bottom: 1rem; }

.fds-topbar {
    background: linear-gradient(90deg, var(--primary-color), #58c5bf);
    color: #fff;
    text-align: center;
    padding: .25rem 1rem;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .02em;
    transition: max-height .28s ease, padding .28s ease, opacity .22s ease;
    will-change: max-height, opacity;
}

.fds-topbar__star { margin-right: .35rem; }

.fds-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 9999;
    background: var(--glass-bg-header);
    backdrop-filter: var(--glass-blur-strong);
    -webkit-backdrop-filter: var(--glass-blur-strong);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
    transition: background .3s ease;
}

.fds-navbar .wrap {
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: 8px 20px;
}

.fds-navbar,
.fds-navbar *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]) ,
.fds-hero,
.fds-hero *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-section,
.fds-section *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-dark,
.fds-dark *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-footer,
.fds-footer *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-contact,
.fds-contact *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-card,
.fds-card *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-portfolio,
.fds-portfolio *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-stats,
.fds-stats *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]),
.fds-embed,
.fds-embed *:not(i):not(.fa):not([class*="fa-"]):not([class*="bi-"]) {
    font-family: 'Open Sans', sans-serif !important;
}

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

.fds-logo img {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.fds-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .35rem .5rem;
    border-radius: 18px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
}

.fds-nav a {
    color: #4a5568 !important;
    font-weight: 700;
    font-size: 15px;
    padding: .55rem .95rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(255,255,255,.50);
}

body[data-theme="dark"] .fds-nav a {
    color: #ecf2f8 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,.40);
}

.fds-nav a:hover,
.fds-nav a.active {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    background: rgba(255,255,255,0.34);
}

.fds-header-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.fds-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: var(--shadow-glass);
    cursor: pointer;
    font-size: 1rem;
}

.fds-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141824;
    color: #fff;
    overflow: hidden;
    margin-top: 0;
}

/* Hero always has white text — dark overlay behind image */
.fds-hero h1,
.fds-hero h2,
.fds-hero h3 {
    color: #ffffff !important;
    text-shadow: 0 4px 24px rgba(0,0,0,.65);
}

.fds-hero p {
    color: rgba(255,255,255,.92) !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.50);
}

.fds-hero::before,
.fds-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fds-hero::before {
    background: linear-gradient(135deg, rgba(0,0,0,.70), rgba(0,0,0,.50));
}

.fds-hero::after {
    background: radial-gradient(circle at 30% 50%, rgba(94,114,228,.15) 0%, transparent 50%);
}

.fds-hero__slider,
.fds-hero__slide {
    position: absolute;
    inset: 0;
}

.fds-hero__slide { opacity: 0; transition: opacity .35s ease; }
.fds-hero__slide.is-active { opacity: 1; }

.fds-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.fds-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.22);
}

.fds-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    min-height: 600px;
    padding: 120px 20px;
    backdrop-filter: blur(1px);
}

.fds-kicker,
.fds-title {
    letter-spacing: .24em;
    text-transform: uppercase;
    font-weight: 800;
    font-size: .82rem;
    color: rgba(255,255,255,.88);
    text-shadow: 0 2px 16px rgba(0,0,0,.55);
}

/* In regular sections: kicker/title use primary color */
.fds-section .fds-kicker,
.fds-section .fds-title {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}

.fds-heading {
    font-size: 3.2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 1rem 0 1.5rem !important;
    text-shadow: 0 4px 24px rgba(0,0,0,.60);
    font-family: 'Open Sans', sans-serif !important;
}

/* In regular sections: heading uses dark text (not white) */
.fds-section .fds-heading {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

/* In sections: lead text uses theme secondary color */
.fds-section .fds-lead {
    color: var(--text-secondary) !important;
    text-shadow: none !important;
}

.fds-lead {
    font-size: 1.1rem !important;
    color: rgba(255,255,255,.92) !important;
    margin-bottom: 2rem !important;
    text-shadow: 0 3px 18px rgba(0,0,0,.58);
}

/* Hero lead stays white (dark bg image), sections already overridden above */

.fds-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.fds-btn,
.fds-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(94,114,228,.30);
}

.fds-btn-primary,
.fds-cta {
    background: linear-gradient(135deg, var(--primary-color), rgba(94,114,228,.8));
    color: #fff;
}

.fds-btn-outline {
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
}

/* Non-hero sections need top offset because body no longer has padding-top */
.fds-section,
section,
.section {
    padding: 80px 20px !important;
    margin: 0 !important;
    position: relative;
}

/* First section directly after hero does not need extra top space */
.fds-hero + .fds-section,
.fds-hero + section {
    padding-top: 80px !important;
}

/* Sections that follow the navbar (no hero) need padding-top to clear fixed navbar */
.fds-dark,
.fds-contact {
    position: relative;
}

.fds-grid,
.fds-portfolio,
.fds-stats {
    display: grid;
    gap: 1rem;
}

.fds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fds-card,
.fds-portfolio__item,
.fds-stats,
.fds-embed {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
}

.fds-card {
    padding: 1.5rem;
    min-height: 100%;
}

.fds-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
/* Restore correct font-family for icon fonts inside cards */
.fds-card i[class*="fa-"],
.fds-card i.fas, .fds-card i.far, .fds-card i.fal, .fds-card i.fab, .fds-card i.fad {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900;
}
.fds-card i[class*="bi-"] {
    font-family: "Bootstrap Icons" !important;
    font-weight: normal;
}

body[data-theme="light"] .fds-card i {
    color: #5e72e4 !important;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.fds-card h3,
.fds-card .h4 {
    color: var(--text-primary) !important;
}

.fds-card p {
    color: var(--text-secondary) !important;
}

.fds-dark {
    background: linear-gradient(135deg, var(--secondary-color), rgba(50,50,93,.90));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.fds-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(94,114,228,0.10) 0%, transparent 50%);
    pointer-events: none;
}

.fds-dark::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    border-left: 130px solid transparent;
    border-top: 130px solid #2fd0c0;
}

.fds-dark .fds-heading,
.fds-dark .fds-lead,
.fds-dark .fds-title { color: #fff !important; }

.fds-portfolio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fds-portfolio__item {
    margin: 0;
    overflow: hidden;
}

.fds-portfolio__item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}

.fds-portfolio__item figcaption {
    padding: 1rem 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    font-size: .98rem;
    line-height: 1.35;
}

.fds-portfolio__item:hover img {
    transform: scale(1.02);
    filter: saturate(1.04);
}

.fds-embed { padding: 1.2rem; }
.fds-embed iframe,
.fds-embed video {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 12px;
    background: #000;
}

.fds-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 2rem;
    background: #fff;
}

.fds-stat strong {
    display: block;
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 800;
}

.fds-contact {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 100%);
    border-top: 1px solid var(--border-color);
}

.fds-contact .fds-card {
    background: rgba(255,255,255,.94);
}

.fds-contact .form-control,
.fds-contact .form-select,
.fds-contact textarea {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid rgba(50,50,93,.16);
    border-radius: 12px;
    min-height: 48px;
    box-shadow: none;
}

.fds-contact textarea {
    min-height: 140px;
    resize: vertical;
}

.fds-contact .form-control::placeholder,
.fds-contact textarea::placeholder {
    color: rgba(82,95,127,.82);
}

body[data-theme="dark"] .fds-contact {
    background: linear-gradient(135deg, #0f1524 0%, #121a2d 100%);
    border-top-color: rgba(255,255,255,.08);
}

body[data-theme="dark"] .fds-card,
body[data-theme="dark"] .fds-contact .fds-card,
body[data-theme="dark"] .fds-stats,
body[data-theme="dark"] .fds-embed {
    background: rgba(17,23,34,.92);
    border-color: rgba(255,255,255,.10);
}

body[data-theme="dark"] .fds-contact .form-control,
body[data-theme="dark"] .fds-contact .form-select,
body[data-theme="dark"] .fds-contact textarea {
    background: #111827;
    color: #e5eefc;
    border-color: rgba(148,163,184,.22);
}

body[data-theme="dark"] .fds-contact .form-control::placeholder,
body[data-theme="dark"] .fds-contact .form-select::placeholder,
body[data-theme="dark"] .fds-contact textarea::placeholder {
    color: rgba(226,232,240,.72);
}

body[data-theme="dark"] .fds-contact .form-control::placeholder,
body[data-theme="dark"] .fds-contact textarea::placeholder {
    color: rgba(226,232,240,.72);
}

.fds-footer {
    background: linear-gradient(135deg, var(--secondary-color), rgba(50,50,93,.92));
    color: #ffffff !important;
    padding: 80px 20px 40px;
    margin-top: 0;
}

/* Footer always dark bg — force white text regardless of theme or global p/h rules */
.fds-footer,
.fds-footer p,
.fds-footer a,
.fds-footer h5,
.fds-footer h4,
.fds-footer h3,
.fds-footer span,
.fds-footer li,
.fds-footer small {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.30);
}

.fds-footer a { color: rgba(255,255,255,.80) !important; }
.fds-footer a:hover { color: #ffffff !important; }

body[data-theme="light"] .fds-footer,
body[data-theme="light"] .fds-footer p,
body[data-theme="light"] .fds-footer a,
body[data-theme="light"] .fds-footer span,
body[data-theme="light"] .fds-footer h5 {
    color: #ffffff !important;
}

body[data-theme="dark"] .fds-footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

body[data-theme="dark"] .fds-footer a,
body[data-theme="dark"] .fds-footer p,
body[data-theme="dark"] .fds-footer span,
body[data-theme="dark"] .fds-footer h5 {
    color: var(--surface-text);
}

/* ── Hamburger button ── */
.fds-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
}
.fds-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.fds-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fds-hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.fds-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Off-canvas overlay ── */
.fds-offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10998;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(2px);
    transition: opacity .28s ease;
    opacity: 0;
}
.fds-offcanvas-overlay.is-open {
    display: block;
    opacity: 1;
}

/* ── Off-canvas panel ── */
.fds-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10999;
    width: min(360px, 90vw);
    background: var(--bg-main);
    box-shadow: -8px 0 40px rgba(0,0,0,.22);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.fds-offcanvas.is-open { transform: translateX(0); }

.fds-offcanvas__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}
.fds-offcanvas__logo img { max-height: 44px; width: auto; }

.fds-offcanvas__close {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: .3rem .6rem;
    line-height: 1;
    border-radius: 6px;
}
.fds-offcanvas__close:hover { color: var(--primary-color); background: var(--glass-bg); }

.fds-offcanvas__nav {
    display: flex;
    flex-direction: column;
    padding: 1rem .8rem;
    flex: 1;
    gap: .2rem;
}
.fds-offcanvas__link {
    display: flex;
    align-items: center;
    padding: .85rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary) !important;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
}
.fds-offcanvas__link:hover,
.fds-offcanvas__link.active {
    background: var(--glass-bg);
    color: var(--primary-color) !important;
    padding-left: 1.4rem;
}

.fds-offcanvas__footer {
    padding: 1.2rem 1.4rem;
    border-top: 1px solid var(--glass-border);
}
.fds-offcanvas__phone {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: .95rem;
}

@media (max-width: 991px) {
    .fds-grid,
    .fds-portfolio,
    .fds-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .fds-navbar { height: auto; }
    .fds-navbar .wrap { padding: 0 15px; height: 90px; }
    .fds-hero { min-height: 420px; }
    .fds-hero__content { padding: 80px 15px; }
    .fds-heading { font-size: 2rem !important; }
}

@media (max-width: 576px) {
    .fds-grid,
    .fds-portfolio,
    .fds-stats { grid-template-columns: 1fr; }
    .fds-heading { font-size: 1.75rem !important; }
}
