/* Base Styles & CSS Variables */
:root {
    --primary: #1e3a8a;
    /* Polished Dark Blue */
    --primary-dark: #1e293b;
    --secondary: #f1f5f9;
    /* Soft Grey Background */
    --accent: #334155;
    /* Slate Grey Accent */
    --accent-light: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
    --grey-light: #e2e8f0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.grey-bg {
    background-color: var(--grey-light);
}

.dark-bg {
    background-color: var(--primary);
    color: var(--white);
}

.white-text h2,
.white-text p {
    color: var(--white);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
    filter: brightness(0) invert(1);
    /* Makes it white by default */
}

.navbar.scrolled .brand-logo {
    height: 40px;
    filter: none;
    /* Reverts to original color on white background */
}

.footer-brand-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links>li {
    position: relative;
    padding: 10px 0;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--white);
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--white);
    opacity: 0.8;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.dropdown-menu li a:hover {
    background: var(--grey-light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 66, 141, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: url('assets/hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(43, 66, 141, 0.9) 70%, transparent 100%);
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero h1 .accent {
    color: var(--white);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    /* Subtle outline effect */
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Corporate General */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    text-transform: uppercase;
}

/* Vision & Mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vm-card {
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.vm-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vm-icon i {
    width: 60px;
    height: 60px;
    color: var(--white);
    margin-bottom: 2rem;
}

.vm-card h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--accent-light);
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-3rem - 8px);
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
}

.time {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Owner Section */
.owner-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.owner-image {
    position: relative;
}

.owner-image img {
    border-radius: 12px;
}

.owner-meta {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.owner-meta h4 {
    color: var(--white);
    margin-bottom: 5px;
}

.owner-meta p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.owner-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.o-stat {
    padding: 10px 20px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Team Section */
.sub-heading {
    text-align: center;
    font-size: 1.8rem;
    margin: 4rem 0 2rem;
    text-transform: uppercase;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.directors-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.member-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--grey-light);
}

.member-img::after {
    content: '\e91d';
    /* Lucide icon font would be here, using placeholder bg instead */
    font-family: 'Inter';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
}

/* Services Corporate */
.services-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.s-list-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.s-list-card i {
    color: var(--primary);
    width: 40px;
    height: 40px;
    margin-bottom: 2rem;
}

.s-list-card h4 {
    margin-bottom: 1.5rem;
}

.s-list-card ul {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.s-list-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.s-list-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 1px;
    background: var(--primary);
}

.s-list-card:hover {
    border-bottom-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}



/* Existing Contact/Portfolio Enhancements */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    height: 450px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center;
}

/* Footer & Responsive */
@media (max-width: 991px) {
    .container {
        padding: 0 40px;
    }

    .vision-mission-grid,
    .owner-grid,
    .corporate-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .team-grid,
    .services-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .mobile-menu-btn {
        display: block;
        color: var(--white);
        font-size: 1.5rem;
        z-index: 1001;
    }

    .navbar.scrolled .mobile-menu-btn {
        color: var(--text-main);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        color: var(--text-main);
        font-size: 1.2rem;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--secondary);
        display: none;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero-overlay {
        width: 100%;
        clip-path: none;
        background: rgba(30, 58, 138, 0.85);
    }

    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .team-grid,
    .services-list-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .owner-meta {
        position: static;
        margin-top: 2rem;
        text-align: center;
    }

    .owner-stats {
        justify-content: center;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: calc(-1.5rem - 7px);
    }
}