/* Modern CSS Reset */
:root {
    --primary-color: #1c3157;

    /* Blue 500 */
    --primary-color-dark: #2563EB;
    /* Blue 600 */
    --secondary-color: #20A055;
    /* Emerald 500 */
    --text-color: #1F2937;
    /* Gray 800 */
    --text-color-light: #6B7280;
    /* Gray 500 */
    --background-color: #F9FAFB;
    /* Gray 50 */
    --surface-color: #FFFFFF;
    --border-color: #E5E7EB;
    /* Gray 200 */

    --font-family-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-family-serif: 'Merriweather', serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

header {
    background-color: var(--surface-color);
    padding: 1.5rem 2.5rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
    padding: 10px;
    margin: -10px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger-menu.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: var(--surface-color);
}

.hero_buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero_buttons .cta-button {
    min-width: 175px;
    text-align: center;
    justify-content: center;
}

.hero h1 {
    font-family: var(--font-family-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    background-color: var(--surface-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
    align-content: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--secondary-color);
    color: var(--surface-color);
}

section {
    padding: 5rem 2.5rem;
}

section h2 {
    text-align: center;
    font-family: var(--font-family-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services {
    padding-bottom: 0;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

/* Sectors Section */
#sectors {
    background-color: var(--surface-color);
}

.sector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sector-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.sector-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.sector-icon {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.sector-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.sector-card p {
    color: var(--text-color-light);
    font-size: 1rem;
}

/* Team Section */
#team {
    background-color: var(--background-color);
}

.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: auto;
}

.team-card {
    text-align: center;
}

.flip-card {
    background: transparent;
    width: 260px;
    height: 340px;
    justify-content: center;
    margin: auto;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(.4, 2, .3, .7);
    transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 4px solid var(--primary-color-light);
}

.team-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.team-card p {
    font-size: 1rem;
    color: var(--text-color-light);
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color-light);
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-control {
    position: relative;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-family-sans);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.feedback-icon,
.error-message {
    display: none;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s;
}

button[type="submit"]:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.social-media {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-media a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: color 0.3s;
}

.social-media a:hover {
    color: var(--primary-color);
}

.social-media svg {
    width: 30px;
    height: 30px;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--surface-color);
    color: var(--text-color-light);
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

/* Toast */
#toast-container {
    position: fixed;
    bottom: 80%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
}

.toast {
    background: #222;
    color: #fff;
    padding: 16px 24px;
    margin-top: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
    transition: opacity 0.4s, transform 0.4s;
    font-size: 1rem;
    text-align: center;
}

.toast.hide {
    opacity: 0;
    transform: translateY(40px);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        display: flex;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-color);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .sector-cards {
        grid-template-columns: 1fr;
    }

    .team-cards {
        grid-template-columns: 1fr;
    }
}