/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Lato:wght@400;700&display=swap');

/* --- Global Styles & Color Variables --- */
:root {
    --primary-color: #00A8FF; /* Electric Blue */
    --background-color-dark: #0D1117; /* Midnight Blue - Darkest shade */
    --background-color-light: #161B22; /* Midnight Blue - Lighter shade */
    --surface-color: #161B22; /* Charcoal Blue for cards/surfaces */
    --border-color: #30363D;   /* A subtle border color that matches */
    --text-color: #E0E0E0; /* Softer White for text */
    --heading-color: #FFFFFF; /* Pure White for headings */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* --- Keyframe Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

body {
    background: radial-gradient(ellipse at center, var(--background-color-light) 0%, var(--background-color-dark) 100%);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    padding-top: 80px; /* Pushes content down below fixed header */
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(0, 14, 28, .5);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 90%;
    z-index: 1000;
}

.logo-link {
    text-decoration: none; /* Removes underline from logo link */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--heading-color);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 70%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--heading-color);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    color: var(--heading-color);
    overflow: hidden;
}

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

.hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 17, 23, 0.7), rgba(13, 17, 23, .05));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    animation: fadeInDown 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: backwards;
}

.cta-button:hover {
    background-color: #007bff;
    transform: translateY(-3px);
}

/* --- General Section Styling --- */
section {
    padding: 5rem 5%;
    text-align: center;
}

section h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--heading-color);
    margin-bottom: 3.5rem;
}

/* --- Services Overview --- */
.services-overview {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    background-color: transparent; 
}

.service-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    flex-basis: 30%;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    background:rgba(0, 168, 255, 0.1);
    box-shadow: 0 15px 25px rgba(0, 168, 255, 0.75);
}

.service-graphic {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0;
}

/* --- Gallery Preview --- */
.gallery-preview {
    background-color: var(--background-color-dark);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-preview .secondary-button {
    color: var(--text-color);
    border-color: var(--text-color);
}

.gallery-preview .secondary-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--heading-color);
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--font-heading);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--heading-color);
    transform: translateY(-3px);
}

/* --- Gallery Item Hover Effects --- */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-text {
    color: var(--heading-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    padding: 1.5rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 3rem 5%;
    background-color: var(--background-color-dark);
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

.footer-contact a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links a {
    color: #888;
    text-decoration: none;
    padding: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* --- Styles for About Us Page --- */
.page-hero-section {
    padding: 6rem 2rem;
    text-align: center;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.page-hero-section h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--heading-color);
    animation: fadeInDown 1s ease-out;
}

.page-hero-section p {
    font-size: 1.2rem;
    color: var(--primary-color);
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: backwards;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 5rem 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 2;
    text-align: left;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* --- Styles for Services Page --- */
.service-details-container {
    padding: 3rem 0;
}

.service-detail-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-detail-item.reverse {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 1;
}

.service-detail-image img {
    width: 100%;
    border-radius: 8px;
}

.service-detail-text {
    flex: 1;
    text-align: left;
}

.service-detail-text h2 {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.service-detail-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.service-detail-text li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.service-detail-text li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: inherit;
}

/* --- Styles for Contact Page --- */
.contact-section {
    display: flex;
    gap: 4rem;
    padding: 5rem 8%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border-radius: 8px;
}

.contact-details {
    flex: 1;
    text-align: left;
}

.contact-details h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.contact-details li {
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-details li strong {
    color: var(--heading-color);
}

.contact-form {
    flex: 2;
    text-align: left;
}

.contact-form h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--background-color-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--heading-color);
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.contact-form .cta-button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* --- Styles for Gallery Page --- */
.gallery-section {
    padding: 5rem 5%;
}

.filter-buttons {
    margin-bottom: 3rem;
    text-align: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    margin: 0.25rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    transition: all 0.3s ease;
}

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

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

.gallery-item.hide {
    display: none;
}

/* --- Styles for Lightbox/Modal --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    animation-name: zoom;
    animation-duration: 0.6s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev, .lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0,0,0,0.8);
}


/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .main-nav {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-color-dark);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
    }

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

    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        padding: 1rem 0;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    .hamburger-menu.active .hamburger-bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger-menu.active .hamburger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .services-overview {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }

    .service-detail-item,
    .service-detail-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-section {
        flex-direction: column;
    }
    
    .gallery-item .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 80%);
    }

    .gallery-item .overlay-text {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .lightbox-content {
        width: 100%;
    }
}
