:root {
    --primary-color: #6366f1;
    /* Indigo */
    --secondary-color: #8b5cf6;
    /* Violet */
    --accent-color: #ec4899;
    /* Pink */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text-light: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.gradient-text {
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.95);
}

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

/* Logo Styling */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.nav-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

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

/* Portfolio/Product Icons */
.icon-container {
    height: 220px;
    /* Significantly increased height */
    width: 100%;
    /* Full width of container */
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* Add some padding so it breathes */
}

.icon-container img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-speed);
}


.sub-highlight {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* About Text - Centered */
.about-text-full {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.highlight-text {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Services List */
.section-title-left {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 10px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    transition: transform var(--transition-speed);
    position: relative;
    padding-bottom: 70px;
    /* Space for button */
}

.service-item:hover {
    transform: translateX(10px);
}

.service-heading {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-intro {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.service-bullets {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.service-bullets li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.service-bullets li::before {
    content: '➔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.btn-small {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    /* Position bottom right */
    position: absolute;
    bottom: 20px;
    right: 20px;
}

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

/* Mobile Responsive Adjustments for Logo */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .nav-logo {
        height: 30px;
    }
}


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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Fallback if image not loaded, but we will add image dynamically or via style */
    background: var(--bg-dark);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 60%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
    padding-top: 60px;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
    animation: float 6s ease-in-out infinite;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Header Typography Swap */
.hero-title-small {
    font-size: 2rem;
    /* Was 4.5rem */
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
    order: 2;
    /* If we used flex column, but we swapped in HTML */
    color: var(--text-muted);
}

.hero-subtitle-large {
    font-size: 3.5rem;
    /* Was 1.5rem */
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-subtitle-large {
        font-size: 2.5rem;
    }

    .hero-title-small {
        font-size: 1.5rem;
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.alt-bg {
    background-color: #162032;
    /* Slightly lighter than bg-dark */
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
    /* Ensure cards are same height */
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);

    /* Flex alignment */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    /* Active scale effect */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.product-image-container {
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;

    /* Flex item check */
    flex-shrink: 0;
}

/* ... gradient classes ... */

.product-card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;

    /* Forced alignment height approx */
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card p {
    color: var(--text-muted);
    flex-grow: 1;
    /* Pushes content to fill space */
}

/* About */
.about-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Removed unused about-image styles since we switched to text-only center */


/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.detail-item {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer & Socials */
footer {
    background: black;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    transition: transform var(--transition-speed);
}

.social-icon img {
    width: 32px;
    height: 32px;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Below navbar */
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        height: 300px;
    }

    /* Stack Service Cards on Mobile */
    .service-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-icon-large {
        margin-bottom: 20px;
        align-self: flex-start;
    }
}

/* Hover Reveal Button */
.btn-hover-reveal {
    /* Box Model & Layout */
    width: 50%;
    max-width: 50%;
    /* Strictly enforce max width */
    box-sizing: border-box;
    /* Ensure padding includes in width */
    align-self: center;
    text-align: center;
    white-space: normal;
    /* Allow wrap */

    /* Animation Initial State: Hidden */
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;

    /* Transition */
    transition: all 0.4s ease-out;
}

/* Hover State: Reveal */
.service-card:hover .btn-hover-reveal {
    opacity: 1;
    max-height: 200px;
    margin-top: 30px;
    padding: 12px 24px;
    /* Restore padding matching btn-small roughly */
}



/* Button override for Services */
/* Modal Styles */

/* MAINTENANCE MODE OVERLAY */
/* This covers the entire site. To disable, set display to none or remove the HTML/CSS */
#maintenance-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    /* Clean white background */
    z-index: 99999;
    /* Higher than everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.maintenance-content {
    font-family: 'Outfit', sans-serif;
    color: #333;
    padding: 20px;
    max-width: 600px;
}

.maintenance-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.maintenance-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ... existing modal styles ... */

/* Services Grid (Wide Layout) */
.service-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for wide rows */
    gap: 40px;
    align-items: stretch;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    /* Vertically center image and text */
    text-align: left;
    gap: 30px;
    /* Space between image and content */
}

.service-card:hover {
    transform: translateX(5px);
    /* Slight slide right instead of up */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.service-icon-large {
    width: 120px;
    /* Larger icon for wide layout */
    height: 120px;
    flex-shrink: 0;
    /* Prevent squishing */
    margin-bottom: 0;
    /* Remove bottom margin */
    align-self: center;
}

.service-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Stack text and button */
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.5rem;
    text-align: left;
    /* Keep title left */
}

.service-intro {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-card .btn-small {
    align-self: center;
    margin-top: auto;
    width: 80%;
    /* Ensure standard width */
    text-align: center;
    display: block;
    /* Ensure block behavior inside flex */
}

/* About Us Optimization */
.about-text-full {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    width: 80%;
    max-width: 800px;
    border-radius: 20px;
    color: var(--text-light);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-modal {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.modal-body p,
.modal-body ul {
    margin-bottom: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}