:root {
    --primary-color: #0d2c4f; /* Dark Blue */
    --secondary-color: #333; /* Steel Grey */
    --accent-color: #007BFF;
    --text-color: #4a4a4a;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-logo: 'Montserrat', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* --- Global Styles & Resets --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 20px;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

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

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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


/* --- Header & Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    padding: 0 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    position: relative;
    padding: 5px 0;
}

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

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

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

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: all var(--transition-speed);
}

/* --- Hero Section --- */
.hero {
    min-height: 100dvh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background: linear-gradient(rgba(13, 44, 79, 0.7), rgba(13, 44, 79, 0.7)), url('images/hero-image-1.jpg ') no-repeat center center/cover;
    position: relative;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Typewriter cursor */
#hero-tagline::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { color: transparent; }
    50% { color: var(--white); }
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
}

.content-section:nth-of-type(even) {
    background-color: var(--light-grey);
}

.content-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* About Us */
.about-us .intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.values {
    display: flex;
    gap: 30px;
    justify-content: center;
    text-align: center;
}

.value-item {
    flex: 1;
    max-width: 400px;
}

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 30px;
}

/* Projects Showcase */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.project-item img {
    transition: transform 0.4s ease-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(13, 44, 79, 0.9), transparent);
    color: var(--white);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.project-item:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    color: var(--white);
    margin: 0;
}

.project-overlay p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Contact CTA */
.contact-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.contact-cta h2 {
    color: var(--white);
}

.contact-cta p {
    margin-bottom: 2rem;
}


/* --- Footer --- */
.main-footer {
    background: var(--secondary-color);
    color: #ccc;
    
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #ccc;
}

.logo-text {
    font-family: var(--font-logo);
}

.contact span {
    display: block;
    margin-bottom: 10px;
}

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

.links a {
    color: #ccc;
}

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

.social a {
    display: inline-block;
    color: #ccc;
    font-size: 1.5rem;
    margin-right: 15px;
}
.social a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}


/* --- Inner Pages (Services, Projects, Contact) --- */
.page-header {
    background: var(--light-grey);
    text-align: center;
    padding: 60px 0;
}

/* Services Page */
.service-item {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.service-item.reverse {
    flex-direction: row-reverse;
}
.service-image, .service-description {
    flex: 1;
}
.service-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.service-description ul {
    list-style: disc;
    padding-left: 20px;
}
.service-description ul li {
    margin-bottom: 0.5rem;
}

/* Projects Page */
.filter-buttons {
    text-align: center;
    margin-bottom: 40px;
}
.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 50px;
    transition: all var(--transition-speed);
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(13, 44, 79, 0.9), transparent);
    color: var(--white);
    opacity: 0;
    transition: opacity var(--transition-speed);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay h3 {
    color: var(--white);
    margin: 0;
}

/* Contact Page */
.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-form-container, .contact-info-container {
    flex: 1;
    min-width: 300px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.contact-details {
    list-style: none;
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.contact-details i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}
.contact-details p {
    margin-bottom: 0;
}
.map-section iframe {
    width: 100%;
    display: block;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-item, .service-item.reverse {
        flex-direction: column;
    }
    .footer-content {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 20px 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .values {
        flex-direction: column;
    }
}
