:root {
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Color Palette */
    --color-primary: #1a202c; /* Dark Slate */
    --color-secondary: #2d3748; /* Darker Gray */
    --color-accent: #0bc5ea; /* Vibrant Cyan */
    --color-text: #e2e8f0; /* Light Gray */
    --color-text-dark: #cbd5e0; /* Medium Gray */
    --color-bg-dark: #0b1120; /* Very Dark Blue-Gray */
    --color-bg-darker: #050a13; /* Even Darker */
    --color-border: #4a5568; /* Grayish Border */
    --color-button-hover: #088eab; /* Darker Cyan for hover */

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-hero: linear-gradient(180deg, rgba(11, 17, 32, 0.8), rgba(11, 17, 32, 0.95));

    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    --section-padding: 6rem 0;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 8px 20px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: all 0.2s ease-in-out;
    --transition-slow: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
    scroll-padding-top: 5rem; /* For fixed header smooth scroll offset */
}

body.no-scroll {
    overflow: hidden;
}

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

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

a:hover {
    color: var(--color-button-hover);
    text-decoration: underline;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.8rem; font-weight: 600; }
p { margin-bottom: var(--space-md); }

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-md);
    text-transform: capitalize;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-image: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-text-dark);
    max-width: 800px;
    margin: 0 auto var(--space-xxl);
}

.bg-gradient {
    background-image: var(--gradient-main);
}

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

.accent-text {
    background-image: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
    font-weight: 700;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-slow);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.primary-button {
    background-image: var(--gradient-accent);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
}

.primary-button:hover {
    background-image: linear-gradient(90deg, var(--color-accent), #6b46c1); /* Reverse gradient or subtle shift */
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Header */
.site-header {
    background-color: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: var(--space-md) 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-image: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.main-nav ul {
    display: flex;
    gap: var(--space-xxl);
}

.main-nav a {
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: var(--space-sm) 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.main-nav a:hover {
    color: var(--color-text);
    text-decoration: none;
}

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    padding: 0;
}

.nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text);
    background: url('images/image_11.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding-top: 5rem; /* Account for fixed header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: var(--space-xl);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: var(--space-xl);
    background-image: linear-gradient(45deg, var(--color-accent), #a78bfa, var(--color-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    text-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto var(--space-xxl);
    color: var(--color-text-dark);
}

/* General Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: var(--space-xxl);
    align-items: center;
}

/* About Section */
.about-content .about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.about-content .about-text p {
    font-size: 1.15rem;
    color: var(--color-text-dark);
}


/* Service Grid */
.service-grid, .project-grid, .why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: var(--space-xxl);
}

.service-card, .project-card, .advantage-card {
    background-color: var(--color-primary);
    border-radius: 12px;
    padding: var(--space-xxl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-slow);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.service-card:hover, .project-card:hover, .advantage-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.service-card .icon-placeholder {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: inline-block;
    /* Removed gradient clip that was hiding emojis */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--color-text-dark);
}

/* Projects Section */
.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.project-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: transform 0.4s ease-in-out;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-info {
    padding: var(--space-xxl) var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
}

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

/* Why Us Section */
.advantage-card {
    text-align: left;
    background-color: var(--color-secondary);
}

.advantage-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.advantage-card h3 .accent-text {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Footer */
.site-footer {
    background-color: var(--color-bg-darker);
    padding: var(--section-padding) 0 var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xxl);
    margin-bottom: var(--space-xxl);
}

.footer-grid h3 {
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    font-size: 1.4rem;
}

.footer-grid p {
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.footer-nav ul li {
    margin-bottom: var(--space-sm);
}

.footer-nav a {
    color: var(--color-text-dark);
    font-size: 1rem;
    position: relative;
    padding: 0 0 2px 0;
    display: inline-block;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.footer-nav a:hover {
    color: var(--color-text);
    text-decoration: none;
}

.footer-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-links a {
    display: flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-image: var(--gradient-accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.social-links img {
    filter: invert(100%); /* Make icons white if they're dark */
    width: 20px;
    height: 20px;
}

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

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* Scroll Animations */
.reveal, .reveal-group > * {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.is-visible, .reveal-group.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for groups */
.reveal-group.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-group.is-visible > *:nth-child(7) { transition-delay: 0.6s; }
.reveal-group.is-visible > *:nth-child(8) { transition-delay: 0.7s; }


/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    .hero-content p { font-size: 1.2rem; }

    .service-grid, .project-grid, .why-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Allow flexibility but aim for 2 columns */
        gap: var(--space-xl);
    }

    .project-card img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: var(--space-sm) 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active .bar:nth-child(2) { opacity: 1; }
    .nav-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .main-nav .nav-menu {
        position: fixed;
        top: 0; /* Adjusted to cover header */
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-xxl);
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
        padding-top: 5rem; /* Push content below header */
    }

    .main-nav .nav-menu.active {
        right: 0;
    }

    .main-nav a {
        font-size: 1.5rem;
        padding: var(--space-md) 0;
    }

    .hero-section {
        height: 80vh;
        padding-top: 4rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: var(--space-md);
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }

    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .about-image {
        order: -1; /* Image first on mobile */
    }

    .service-grid, .project-grid, .why-us-grid {
        grid-template-columns: 1fr; /* Exactly 1 card per row */
        gap: var(--space-lg);
    }

    .service-card, .project-card, .advantage-card {
        padding: var(--space-xl);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-nav ul {
        align-items: center;
        padding-left: 0;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }

    .section-title {
        font-size: 1.8rem;
    }
    .section-padding {
        padding: 4rem 0;
    }

    .primary-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
