/* Design System & Reset */
:root {
    /* Colors */
    --primary: #0f172a;
    /* Deep Navy */
    --secondary: #d4af37;
    /* Premium Gold */
    --accent: #334155;
    /* Slate */
    --light: #f8fafc;
    /* Off-white */
    --dark: #020617;
    --text-main: #1e293b;
    --text-light: #94a3b8;
    --white: #ffffff;

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows & Radius */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

.text-secondary {
    color: var(--secondary);
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    opacity: 0.9;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --spacing-xl: 4rem;
    }
}

/* Header & Nav */
header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 100%;
        /* Hidden by default */
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.4s ease;
    }

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

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.15), transparent 50%);
    top: -25%;
    right: -25%;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 100%;
    text-align: left;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: blob 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::after {
    content: 'HISHA';
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    letter-spacing: 10px;
}

@keyframes blob {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    33% {
        border-radius: 30% 60% 70% 40% / 60% 30% 70% 40%;
    }

    66% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
    max-width: 500px;
}

/* Mobile Hero Override */
@media (max-width: 991px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        height: 300px;
        width: 300px;
        margin: 0 auto;
    }

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Fallback: If no JS, make visible (optional, but good practice). 
   For now, we rely on JS. If JS is broken, we should fix JS. */

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
}

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

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    margin-top: auto;
}

.footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive Content */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Careers Page Styles */
.hero-careers,
.hero-services {
    min-height: 60vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.hero-careers h1,
.hero-services h1 {
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.hero-careers p,
.hero-services p {
    font-size: 1.5rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.work-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.work-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary);
    text-align: center;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.work-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.work-card p {
    color: var(--text-main);
    opacity: 0.8;
    line-height: 1.7;
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--accent);
}

.hero-desc {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
}

.section-desc {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 1.125rem;
    color: var(--text-main);
    line-height: 1.8;
}