/* ===== ROOT & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #0d47a1;
    --accent-color: #00bcd4;
    --text-light: #ffffff;
    --text-muted: #b0bec5;
    --bg-dark: #0f0f0f;
    --bg-card: #1e1e1e;
    --border-color: #2c2c2c;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: relative;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    transition: border 0.3s ease, background-color 0.3s ease;
}

header.minimal-header {
    padding: 0;
    border-bottom: none;
    background-color: transparent;
}

/* Header slideshow visuals */
header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.8s ease, background-color 0.3s ease;
}

/* subtle overlay so text stays readable */
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.25));
    pointer-events: none;
}


/* Compact layout for overlay text next to logo */
header.minimal-header .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
}

header.minimal-header .header-inner h1 {
    font-size: 1rem;
    margin: 0;
}

header.minimal-header .header-tagline {
    display: none;
}

/* Reduce navbar and logo size when minimal */
header.minimal-header .navbar {
    padding: 0.4rem 1rem;
}

header.minimal-header .logo-img {
    height: 40px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    
}

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

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-links.hide-nav {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 1000;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

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

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.burger.hide-nav {
    opacity: 0;
    pointer-events: none;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(15, 15, 15, 0.7), rgba(61, 61, 61, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    width: 100%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(243, 10, 10, 0), rgba(26, 26, 26, 0.9));
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    line-height: 1.2;
    animation: fadeInDown 0.8s ease;
}

.hero-content .tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button:hover {
    background-color: #00acc1;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.3);
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 8rem 2rem;
    background-image: linear-gradient(rgba(15, 15, 15, 0.92), rgba(15, 15, 15, 0.92)), url('../images/services-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(204, 18, 18, 0), rgba(26, 26, 26, 0.9));
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.services h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

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

.service-card ul {
    list-style: none;
    text-align: left;
    color: var(--text-muted);
}

.service-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    position: relative;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 8rem 2rem;
    background-image: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.95)), url('../images/projects-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    min-height: 100vh;
}

.projects h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.2);
    border-color: var(--accent-color);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--border-color);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 8rem 2rem;
    background-image: linear-gradient(rgba(15, 15, 15, 0.92), rgba(15, 15, 15, 0.92)), url('../images/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0), rgba(15, 15, 15, 0.9));
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
    max-width: 800px;
}

.contact > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    max-width: 800px;
}

.contact-methods {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 2.5rem;
    background-color: rgba(30, 30, 30, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    backdrop-filter: blur(10px);
}

.contact-btn:hover {
    border-color: var(--accent-color);
    background-color: rgba(0, 188, 212, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.2);
}

.contact-btn .icon {
    font-size: 2.5rem;
    display: block;
}

.contact-btn .label {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.contact-form {
    max-width: 550px;
    width: 100%;
    background-color: rgba(30, 30, 30, 0.85);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    transition: border 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #00acc1;
    transform: translateY(-2px);
}

/* ===== STATS SECTION ===== */
.stats-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-card) 100%);
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background-color: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ===== PROCESS SECTION ===== */
.process-section {
    padding: 5rem 2rem;
    background-color: var(--bg-dark);
    max-width: 1200px;
    margin: 0 auto;
}

.process-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    padding: 2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.process-arrow {
    font-size: 2rem;
    color: var(--accent-color);
    display: none;
}

@media (min-width: 769px) {
    .process-arrow {
        display: block;
    }
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1) 0%, rgba(0, 188, 212, 0.05) 100%);
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background-color: rgba(30, 30, 30, 0.8);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 188, 212, 0.2);
}

.cta-card h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.cta-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button-secondary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}

.cta-button-secondary:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* ===== SERVICE BADGE ===== */
.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.service-card {
    position: relative;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== ENHANCED FOOTER ===== */
footer {
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.trust-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: rgba(0, 188, 212, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    line-height: 40px;
    text-align: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 700;
}

.social-icon:hover {
    border-color: var(--accent-color);
    background-color: rgba(0, 188, 212, 0.1);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 188, 212, 0.3);
}

.back-to-top:hover {
    background-color: #00acc1;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
}

.back-to-top.show {
    display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

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

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .tagline {
        font-size: 1rem;
    }

    .services h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }

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

    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-btn {
        width: 100%;
        min-width: auto;
        max-width: none;
        padding: 1.5rem 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero {
        min-height: 50vh;
    }

    .services,
    .projects,
    .contact {
        padding: 3rem 1rem;
    }

    .services-grid,
    .projects-grid {
        padding: 0;
    }
}
