@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-surface: #141414;
    --bg-card: #1c1c1c;

    --primary: #00e5ff;
    /* Electric Blue */
    --primary-hover: #00b8cc;

    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --text-dark: #0a0a0a;

    --border-color: #333333;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    color: var(--text-main);
    line-height: 1.2;
}

/* 1. Global Link Reset */
a {
    text-decoration: none !important;
    color: inherit;
    border-bottom: none !important;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.text-primary {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.uppercase {
    text-transform: uppercase;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-6 {
    margin-bottom: 3rem;
}

.block {
    display: block;
}

.section-padding {
    padding: 100px 0;
}

.bg-surface {
    background-color: var(--bg-surface);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-family: var(--font-heading);
    text-decoration: none !important;
    border-bottom: none !important;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--text-dark);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-dark);
}

.btn-full {
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    text-decoration: none !important;
    border-bottom: none !important;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
    padding-bottom: 5px;
    text-decoration: none !important;
}

.nav-link:hover {
    color: var(--primary);
}

/* 2. Animated Underline for Nav Links ONLY */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.25s ease-in-out;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-card);
    padding: 80px 20px;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none !important;
}

.mobile-phone {
    color: var(--primary);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* 5. Mobile Behavior (Disable Animation) */
    .nav-link::after {
        display: none;
    }
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    width: 100%;
    background: url('./images/hero-bg.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    padding: 0 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    /* Prevent button overflow */
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        padding: 0 20px;
    }

    .desktop-br {
        display: none;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* Services */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    word-wrap: break-word;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    /* Optimized for mobile stacking: 280px min ensures it stacks on 375px screens */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px 60px 30px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
    /* Fix Clipping: Ensure overflow is visible */
    overflow: visible;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    overflow: visible;
    /* Prevent clipping */
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Mobile Gallery Check */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    border: 2px solid var(--primary);
    padding: 8px 16px;
    text-align: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--primary);
    overflow: visible;
}

.stars {
    color: #ffd700;
    margin-bottom: 16px;
}

.testimonial-text {
    font-style: italic;
    color: #e0e0e0;
    margin-bottom: 24px;
}

.testimonial-author {
    font-weight: 700;
}

.testimonial-author span {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* About */
.about-content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    /* Image clips here, but button is external */
}

.about-image img {
    width: 100%;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary);
    color: var(--text-dark);
    padding: 20px 30px;
    text-align: center;
    border-top-left-radius: 8px;
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .experience-badge {
        padding: 10px 15px;
    }

    .experience-badge .years {
        font-size: 1.8rem;
    }

    .experience-badge .text {
        font-size: 0.7rem;
    }
}

/* Contact */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-info {
    flex: 1;
    padding-right: 30px;
    border-right: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.info-item h5 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background: #333;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.contact-form {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #252525;
}

@media (max-width: 900px) {
    .contact-wrapper {
        flex-direction: column;
        padding: 20px;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 80px 0 20px;
    border-top: 1px solid #1a1a1a;
    color: #b0b0b0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 1.5rem;
    color: #fff;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Global Mobile Fixes for Buttons & Spacing */
@media (max-width: 480px) {
    .btn {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }

    .section-padding {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .service-card,
    .feature-card,
    .testimonial-card {
        padding: 30px 20px;
    }
}