:root {
    /* Colors */
    --color-primary: #1A1A1D; /* Dark Grey / Almost Black */
    --color-secondary: #4A4E69; /* Slate */
    --color-accent: #FF5A09; /* Safety Orange */
    --color-accent-hover: #E04D07;
    --color-bg: #FFFFFF;
    --color-bg-light: #F4F5F7;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Metrics */
    --nav-height: 80px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

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

ul {
    list-style: none;
}

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

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.py-small {
    padding: 40px 0;
}

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

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--color-white);
}

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

.text-accent {
    color: var(--color-accent) !important;
}

.text-white {
    color: var(--color-white) !important;
}

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

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-end {
    align-items: flex-end;
}

/* Typography Utilities */
.subtitle {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 8px;
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
    max-width: 600px;
}

.section-header.text-center p {
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 90, 9, 0.3);
}

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

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

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: 70px;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; /* Adjust height based on your original navbar design */
    width: auto;
    object-fit: contain;
}

.footer-logo {
    height: 60px; /* Slightly larger in the footer */
    margin-bottom: 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.d-mobile-only {
    display: none;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26,26,29,0.9) 0%, rgba(26,26,29,0.6) 50%, rgba(26,26,29,0.3) 100%);
}

.hero-content {
    color: var(--color-white);
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 4.5rem;
    color: var(--color-white);
    margin-bottom: 24px;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Highlights */
.highlights {
    padding: 0;
    transform: translateY(-50%);
    z-index: 10;
    position: relative;
    background: transparent;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.highlight-item {
    padding: 32px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.highlight-item:last-child {
    border-right: none;
}

.highlight-item i {
    font-size: 2.5rem;
    color: var(--color-accent);
}

.highlight-item h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.highlight-item p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

/* About */
.about {
    margin-top: -50px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 90, 9, 0.3);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about-content p {
    margin-bottom: 24px;
    color: var(--color-text-light);
}

.mission-strategy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.ms-card {
    background-color: var(--color-bg-light);
    padding: 24px;
    border-radius: var(--radius-sm);
    border-bottom: 3px solid var(--color-accent);
}

.ms-card i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.ms-card h4 {
    margin-bottom: 8px;
    font-size: 1.125rem;
}

.ms-card p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 90, 9, 0.1);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 2rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

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

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(26,26,29,0.9) 0%, rgba(26,26,29,0) 100%);
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--color-white);
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.portfolio-overlay p {
    color: var(--color-accent);
    font-weight: 500;
    font-size: 0.875rem;
}

/* SHE */
.she-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}

.she-list {
    margin-top: 30px;
}

.she-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.she-list i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.she-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-box {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px;
    text-align: center;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.stat-box h3 {
    font-size: 4rem;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.stat-box p {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Team */
.team-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.team-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-width: 250px;
}

.team-avatar {
    width: 100px;
    height: 100px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-secondary);
}

.team-card h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--color-accent);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Org Chart (Simple Text Representation) */
.org-chart-wrapper {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
    text-align: center;
    overflow-x: auto;
}

.org-chart {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.org-node {
    background-color: var(--color-white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.1);
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.org-node.root {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.org-line-vertical {
    width: 2px;
    height: 20px;
    background-color: rgba(0,0,0,0.2);
}

.org-line-horizontal {
    height: 2px;
    background-color: rgba(0,0,0,0.2);
    flex-grow: 1;
}

.org-branches {
    display: flex;
    gap: 20px;
}

.org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.org-branch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(100% + 20px);
    height: 2px;
    background-color: rgba(0,0,0,0.2);
    transform: translateX(-50%);
}

.org-branch:first-child::before {
    width: 50%;
    left: 50%;
    transform: none;
}

.org-branch:last-child::before {
    width: 50%;
    left: 0;
    transform: none;
}

.org-branch > .org-line-horizontal {
    width: 2px;
    height: 20px;
    flex-grow: 0;
}

.org-node.leaf {
    background-color: var(--color-bg-light);
    border-style: dashed;
}

/* Certifications */
.cert-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cert-item {
    text-align: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.cert-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.cert-item h4 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.cert-item span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.info-items {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.info-item h4 {
    margin-bottom: 4px;
    font-size: 1.125rem;
}

.info-item p {
    color: var(--color-text-light);
}

.contact-form-wrapper {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-bg-light);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 90, 9, 0.1);
}

/* Footer */
.footer {
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.125rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: rgba(255,255,255,0.5);
    font-size: 1.25rem;
}

.social-links a:hover {
    color: var(--color-accent);
}

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 100;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 3.5rem; }
    .highlights-grid { grid-template-columns: 1fr 1fr; }
    .highlight-item:nth-child(2) { border-right: none; }
    .about-grid, .she-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .experience-badge { right: 20px; }
    .portfolio-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .d-mobile-only {
        display: block !important;
        margin-top: 20px;
    }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        padding: 40px;
    }
    .nav-links.active { left: 0; }
    .mobile-toggle { display: block; }
    .nav-btn { display: none; }
    
    /* Hero — natural height, no viewport lock */
    .hero {
        height: auto;
        min-height: auto;
        padding-top: calc(var(--nav-height) + 48px);
        padding-bottom: 60px;
    }
    .hero-content { max-width: 100%; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1rem; margin-bottom: 32px; }

    /* Stop highlights from overlapping hero buttons */
    .highlights {
        transform: translateY(0);
        margin-top: 0;
    }
    /* Undo the negative pull-up on the about section */
    .about {
        margin-top: 0;
    }

    .section-header h2 { font-size: 2rem; }
    
    .portfolio-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .d-none-mobile { display: none; }
    
    .team-cards { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .highlights-grid { grid-template-columns: 1fr; }
    .highlight-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .highlight-item:last-child { border-bottom: none; }
    .mission-strategy { grid-template-columns: 1fr; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .hero-content h1 { font-size: 2rem; }
    .badge { font-size: 0.75rem; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast i {
    font-size: 1.5rem;
    color: #25D366; /* Success green icon */
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    .toast {
        transform: translateY(120%);
    }
    .toast.show {
        transform: translateY(0);
    }
}

/* Auto-Scrolling Gallery Marquee */
.gallery-section {
    padding-bottom: 100px;
    overflow: hidden;
}

.gallery-marquee {
    display: flex;
    flex-wrap: nowrap;
    animation: scroll-left 40s linear infinite;
    padding: 20px 0;
    will-change: transform;
}

.gallery-marquee:hover {
    animation-play-state: paused;
}

.gallery-item {
    width: 350px;
    height: 250px;
    margin: 0 15px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-dist, -3420px)); }
}

@media (max-width: 768px) {
    .gallery-marquee {
        --marquee-dist: -2430px;
    }
    .gallery-item {
        width: 250px;
        height: 180px;
        margin: 0 10px;
    }
}
