:root {
    --bg-color: #030712;
    --text-color: #e2e8f0;
    --primary-color: #0ea5e9;
    --secondary-color: #6366f1;
    --accent-color: #00f3ff;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Parallax Background with Scroll Fade */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Navigation & Top Bar */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    z-index: 1001;
    position: relative;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contacts,
.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.sep {
    color: rgba(255, 255, 255, 0.1);
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-icon {
    transform: rotate(225deg);
    box-shadow: 0 0 25px var(--accent-color);
}

.blog-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.logo-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    transform: rotate(45deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #fff;
    transition: color 0.3s ease;
}

.logo-highlight {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), #0891d1);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-read:hover {
    background: linear-gradient(135deg, #0891d1, #0369a1);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    transform: translateX(5px);
}

.btn-read i {
    transition: transform 0.3s ease;
}

.btn-read:hover i {
    transform: translateX(3px);
}

/* Nav Actions & Search */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px;
    width: 150px;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
}

.search-box button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* New Hero Layout */
.hero-section {
    position: relative;
    z-index: 1;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    /* Reduced since nav isn't fixed absolute overlay */
    padding-bottom: 60px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content-left {
    text-align: left;
}

.hero-brand-mark {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-brand-mark::before {
    content: '';
    display: block;
    width: 30px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 90%;
}

.hero-cta-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 10px 10px 0;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
}

.cta-text {
    font-size: 0.95rem;
    color: #cbd5e1;
    margin: 0;
}

.btn-cta {
    align-self: flex-start;
    padding: 8px 25px;
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-diagram {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.2));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Full Width Hero Slider */
.hero-section.full-width-hero {
    padding: 0;
    min-height: 65vh;
    /* Increased height */
    display: block;
    margin-top: 0;
    position: relative;
}

.heroSwiper {
    width: 100%;
    height: 65vh;
    /* Increased height as requested */
    max-width: none;
    margin: 0;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay removed as requested */
    background: none;
    pointer-events: none;
    z-index: 2;
}

.hero-items-container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content-overlay {
    max-width: 800px;
    padding-top: 80px;
    /* Offset for Header/TopBar */
}

.swiper-pagination-bullet {
    background: var(--accent-color);
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color);
    opacity: 1;
    box-shadow: 0 0 10px var(--accent-color);
}

/* Hide unused */
.hero-visual-slide,
.hero-layout,
.hero-content-left,
.hero-content-right {
    display: none;
}

.hero-buttons {
    display: none;
}

/* Services Section */
.services-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: rgba(3, 7, 18, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.section-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(15, 23, 42, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px rgba(0, 243, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #fff;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.about-text p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--text-color);
    font-size: 1.05rem;
}

.features-list i {
    color: var(--accent-color);
    margin-right: 0.75rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    padding: 2rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Blog Grid (Horizontal Layout) */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
    width: 100%;
}

.blog-card-link {
    text-decoration: none;
    display: block;
}

.blog-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;

    /* Horizontal Flex */
    display: flex;
    flex-direction: row;
    height: 320px;
}

.blog-card-link:hover .blog-card {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(14, 165, 233, 0.3);
}

/* LEFT SIDE: IMAGE / PLACEHOLDER */
.blog-img {
    width: 340px;
    /* Fixed width to match cropper aspect ratio */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Placeholder Style */
.blog-placeholder {
    width: 340px;
    height: 100%;
    background: rgba(30, 41, 59, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-placeholder .logo-icon {
    width: 50px;
    height: 50px;
    box-shadow: 0 0 25px var(--accent-color);
}

.blog-placeholder .logo-text {
    font-size: 1.8rem;
}


/* RIGHT SIDE: CONTENT */
.blog-content {
    padding: 2.5rem;
    flex: 1;
    /* Take remaining space */
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.blog-date {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-read {
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

/* Responsive: Stack on mobile */
@media (max-width: 991px) {
    .blog-card {
        flex-direction: column;
        height: auto;
    }

    .blog-img,
    .blog-placeholder {
        width: 100%;
        height: 220px;
    }

    .blog-content {
        width: 100%;
        padding: 1.5rem;
    }

    .blog-title {
        font-size: 1.5rem;
    }
}

/* Contact Map */
.map-container {
    margin-top: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 300px;
}

/* Contact Section */
.contact-section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
    background: rgba(3, 7, 18, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: rgba(15, 23, 42, 0.6);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(30, 41, 59, 0.8);
}

.contact-form button {
    width: 100%;
    margin-top: 20px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #0891d1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.contact-form button:hover {
    background: linear-gradient(135deg, #0891d1, #0369a1);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* =========================================
   VISUAL POLISH RESTORATION (Parallax & Width)
   ========================================= */

/* 1. Blog & Content Width Fix */
.wide-container {
    max-width: 1400px !important;
    width: 92% !important;
    margin: 0 auto;
}

/* 2. Parallax Visibility for Contact Page */
/* Explicitly removing backgrounds from wrappers so canvas shows through */
.contact-section,
.contact-section .container,
.contact-content {
    background: transparent !important;
    background-color: transparent !important;
    position: relative;
    z-index: 1;
}

/* Ensure canvas is behind but visible */
#hero-canvas {
    z-index: 0 !important;
}

/* Ensure content sits above canvas */
.page-header,
.page-content,
.blog-content,
footer {
    position: relative;
    z-index: 1;
}

/* Footer */
.main-footer {
    position: relative;
    z-index: 1;
    background: rgba(3, 7, 18, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: #94a3b8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        flex-direction: column;
        padding: 2rem;
        display: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* --- Top Bar Mobile Fixes --- */
    .hide-mobile {
        display: none !important;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 5px;
    }

    .top-contacts {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        font-size: 0.8rem;
    }

    .top-links {
        justify-content: center;
        width: 100%;
    }

    /* Ensure social icons are cleanly centered */
    .social-icons {
        justify-content: center;
    }
}

/* Mobile Content Width & Padding Fixes */
@media (max-width: 768px) {
    .wide-container {
        width: 95% !important;
        /* Container 95% */
    }

    .blog-content {
        padding: 10px !important;
        /* Minimal padding for text */
    }

    .content-body {
        padding: 15px !important;
        /* Minimal padding */
    }
}

/* Wide Container Helper (Desktop Default) */
.wide-container {
    width: 80%;
    margin: 0 auto;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #00f3ff;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}