:root {
    --color-primary: #0b4f76;
    --color-accent: #f5a623;
    --color-text: #333;
    --color-text-light: #f3f4f6;
    --color-background: #ffffff;
    --color-background-dark: #0b0f14;
    --color-background-alt: #f9fafb;
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Source Serif 4', serif;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --color-text: #f3f4f6;
    --color-background: #0b0f14;
    --color-background-alt: #111827;
    --color-primary-rgb: 11, 15, 20;
    --shadow-sm: 0 4px 15px rgba(255, 255, 255, 0.05);
    --shadow-md: 0 10px 25px rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

[data-theme="dark"] header {
    background-color: rgba(11, 15, 20, 0.9);
}

nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
}

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

.nav-links a {
    color: var(--color-text);
    font-weight: bold;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

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

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

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

#theme-toggle, #menu-toggle {
    background: none;
    border: 1px solid var(--color-text);
    color: var(--color-text);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

#menu-toggle {
    display: none;
    font-size: 1.2rem;
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
    padding: 0 1rem;
}

#hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

#hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
}

.cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.cta:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

main {
    padding-top: var(--header-height);
}

section {
    padding: 5rem 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

/* Footer */
footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 4rem;
}

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

.service-card-new {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card-new h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* About Short Section */
#about-short {
    padding: 6rem 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Page Hero */
.page-hero {
    background-size: cover;
    background-position: center;
    height: 40vh;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-text-light);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    color: var(--color-text-light);
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-grid-item {
    background-color: var(--color-background-alt);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Services Page */
.service-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card-detailed {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
}

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

.service-card-detailed i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card-detailed h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-card-detailed a {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    font-weight: bold;
}

/* Projects Page */
#project-filters {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.project-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card-new {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-card-new img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.project-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-new form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group-new input,
.form-group-new textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: var(--color-background-alt);
    color: var(--color-text);
}

.contact-info-new h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info-new ul {
    list-style: none;
    padding: 0;
}

.contact-info-new li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info-new i {
    font-size: 1.5rem;
    color: var(--color-primary);
    width: 25px;
    text-align: center;
}

#map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #eee;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

/* --- Responsive Design --- */

/* Tablets */
@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    section {
        padding: 3rem 0;
    }

    #hero {
        min-height: 500px;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-background);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .nav-links.active {
        max-height: 500px; /* Adjust as needed */
        border-top: 1px solid #ddd;
    }

    [data-theme="dark"] .nav-links.active {
        border-top-color: #333;
    }

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

    .nav-links a {
        display: block;
        padding: 1.2rem 1rem;
        border-bottom: 1px solid #eee;
    }

    [data-theme="dark"] .nav-links a {
        border-bottom-color: #333;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--color-background-alt);
    }

    #menu-toggle {
        display: flex;
    }

    .service-grid-full,
    .project-grid-full {
        grid-template-columns: 1fr;
    }

    #project-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}