/* --- ROOT VARIABLES & BASE STYLLES --- */
:root {
    --color-background: #000000;
    --color-surface: #1A1A1A;
    --color-accent: #00E5FF;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A0A0A0;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    margin: 0;
    overflow-x: hidden;
}
main {
    position: relative;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* --- CANVAS BACKGROUND --- */
#synapse-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.6;
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    font-family: var(--font-body);
    transition: color 0.3s ease;
    position: relative;
}

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

.navbar-link:hover {
    color: var(--color-accent);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.navbar-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* --- SCROLL ANIMATIONS & SECTION STYLING --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
section {
    padding: 50px 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
}
.section-title {
    font-family: var(--font-heading); font-weight: 700; font-size: 3.5rem; letter-spacing: 1.5px;
    text-transform: uppercase; text-align: center; margin: 0 0 40px 0; color: var(--color-text-primary);
}

/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 40px;
}
.hero-layout {
    display: flex; align-items: center; justify-content: space-between; gap: 60px;
}
.hero-content {
    flex-basis: 35%;
    text-align: left;
}
.hero-image {
    flex-basis: 65%;
}
.hero-title {
    font-family: var(--font-heading); font-weight: 700; font-size: 4.5rem;
    letter-spacing: 2px; text-transform: uppercase; line-height: 1.1; margin: 0;
}
.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400; max-width: 550px; margin: 25px 0 0 0;
    line-height: 1.7; color: var(--color-text-secondary);
}
.hero-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(255, 0, 100, 0.2);
}

/* --- SECTION DIVIDER --- */
.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0));
    margin: 0 auto;
    max-width: 80%;
}

.page-break {
    padding: 30px 0; 
    position: relative; 
    overflow: hidden;
}

.page-break-line {
    height: 1px; 
    max-width: 1200px; 
    margin: 0 auto; 
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent); 
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* --- SERVICES HUB --- */
.hub-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    grid-auto-rows: 1fr;
}
.service-card-link {
    text-decoration: none;
    display: block;
}
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-card-link:hover .service-card {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}
.card-image-container img { width: 100%; height: 200px; object-fit: cover; border-radius: 15px; }
.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
}
.card-content {
    padding: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
    text-align: center;
}
.card-icon-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    backdrop-filter: blur(10px);
    overflow: hidden;
}
.card-icon-wrapper i {
    font-size: 26px;
}
.category {
    color: var(--color-accent); font-weight: 700; font-size: 0.75rem; letter-spacing: 1px;
    margin: 0 0 12px 0; text-transform: uppercase;
}
.title {
    font-family: var(--font-heading); font-weight: 500; font-size: 2rem;
    margin: 0 0 12px 0; color: var(--color-text-primary); transition: color 0.3s ease;
}
.service-card-link:hover .title { color: var(--color-accent); }
.description { font-size: 0.95rem; font-weight: 400; color: var(--color-text-secondary); line-height: 1.6; margin: 0; }

/* --- CLIENTS SECTION --- */
.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.client-logo {
    display: inline-block;
    height: 60px;
    margin: 0 40px;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- CONTACT SECTION & FOOTER --- */
#contact { text-align: center; }
/* NEW RULE to reduce the gap */
#contact .section-title {
    margin-bottom: 25px;
}
.contact-subtitle { font-size: 1.1rem; margin-bottom: 40px; color: var(--color-text-secondary); }

.contact-image-container {
    max-width: 900px;
    margin: 0 auto 50px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.contact-image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center 95%; /* UPDATED to crop more from the top */
    display: block;
}

.cta-button {
    display: inline-block; background-color: var(--color-accent); color: var(--color-background);
    border: 2px solid var(--color-accent); padding: 12px 35px; border-radius: 5px; font-weight: 700;
    font-size: 1rem; text-decoration: none; text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.cta-button:hover { background-color: transparent; color: var(--color-accent); }
.main-footer { text-align: center; padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: var(--color-text-secondary); }

/* --- VISION PATH --- */
.vision-path-section {
    padding: 40px 20px;
}

.vision-path-title {
    color: #00d4ff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center;
}

.our-products-title {
    color: #00d4ff;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    margin-top: 40px;
    text-align: center;
}

.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    overflow: hidden;
}

.cards-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
    padding: 0 20px;
}

.cards-wrapper:active {
    cursor: grabbing;
}

.carousel-card {
    min-width: calc(33.333% - 14px);
    flex: 0 0 calc(33.333% - 14px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.carousel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    backdrop-filter: blur(10px);
}

.card-icon-wrapper i {
    font-size: 26px;
}

.card-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.8;
}

.card-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.card-list li .bullet {
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #00d4ff;
    width: 30px;
    border-radius: 6px;
}

/* --- GET IN TOUCH --- */
.footer-section {
    padding: 10px 40px 0 40px; 
    position: relative; 
    overflow: hidden;
}

.footer-section h2 {
    color: #00d4ff; 
    font-size: 48px; 
    font-weight: 700; 
    margin-bottom: 20px; 
    line-height: 1.2; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.contact-input{
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
}

.contact-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.contact-input:focus{
    background:rgba(255, 255, 255, 0.12);
    border-color:#00d4ff;
    box-shadow:0 0 20px rgba(0, 212, 255, 0.3);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-12, .col-lg-5, .col-lg-7, .col-md-6 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; }

@media (min-width: 992px) {
    .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
}

.mb-4, .my-4 { margin-bottom: 1.5rem !important; }
.mb-5, .my-5 { margin-bottom: 3rem !important; }
.text-center { text-align: center !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .container { max-width: 90%; }
    #hero {
        padding-top: 60px;
        padding-bottom: 30px;
    }
    .hero-layout { flex-direction: column; text-align: center; gap: 30px; }
    .hero-content { order: 2; text-align: center; }
    .hero-image { order: 1; max-width: 100%; }
    .hero-subtitle { margin: 20px auto 0 auto; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.4rem; }
    .hub-container { grid-template-columns: repeat(2, 1fr); }
    .service-card {
        padding: 25px;
    }
    .card-icon-wrapper {
        width: 140px;
        height: 140px;
        margin-bottom: 15px;
    }
    .card-icon-wrapper i {
        font-size: 22px;
    }
    .title {
        font-size: 1.5rem;
    }
    .card-glow {
        width: 100px;
        height: 100px;
    }
    .carousel-card {
        min-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
    .vision-path-title {
        font-size: 32px;
    }
    .carousel-container {
        padding: 25px 0;
    }
    .footer-section h2 {
      font-size: 32px !important;
      text-align: center;
    }
    .footer-section .col-lg-5 p:first-of-type {
      text-align: center;
    }
    .footer-section .col-lg-5 > div {
      max-width: 500px;
      margin: 0 auto;
    }
}
@media (max-width: 768px) {
    .navbar-nav { margin: 0; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .hub-container { grid-template-columns: 1fr; }
    .service-card {
        padding: 20px;
    }
    .card-icon-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: 12px;
    }
    .card-icon-wrapper i {
        font-size: 20px;
    }
    .title {
        font-size: 1.3rem;
    }
    .description {
        font-size: 0.9rem;
    }
    .card-glow {
        width: 80px;
        height: 80px;
    }
    .contact-image-container img {
        height: 300px;
    }
    .vision-path-section {
      padding: 30px 15px;
    }
    .vision-path-title {
      font-size: 28px;
      margin-bottom: 30px;
      margin-top: 30px;
    }
    .carousel-container {
      padding: 20px 0;
    }
    .carousel-card {
      min-width: calc(100% - 40px);
      flex: 0 0 calc(100% - 40px);
      padding: 25px;
    }
    .cards-wrapper {
      gap: 15px;
      padding: 0 10px;
    }
    .card-title {
      font-size: 18px;
      margin-bottom: 15px;
    }
    .card-list {
      font-size: 13px;
    }
    .card-icon-wrapper {
      width: 50px;
      height: 50px;
      margin-bottom: 15px;
    }
    .card-icon-wrapper i {
      font-size: 22px;
    }
    .dots-container {
      margin-top: 30px;
    }
    .card-glow {
      width: 100px;
      height: 100px;
    }
    .footer-section {
      padding: 60px 20px 0 20px !important;
    }
    .footer-section h2 {
      font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    #hero {
        padding-top: 30px;
        padding-bottom: 15px;
    }
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
        padding: 0 10px;
    }
    .hero-content {
        padding: 0 10px;
    }
    .hero-video {
        max-height: 200px;
        border-radius: 6px;
    }
    .service-card {
        padding: 15px;
    }
    .card-icon-wrapper {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }
    .card-icon-wrapper i {
        font-size: 18px;
    }
    .title {
        font-size: 1.1rem;
    }
    .description {
        font-size: 0.85rem;
    }
    .card-glow {
        width: 60px;
        height: 60px;
    }
    .vision-path-title {
      font-size: 20px;
    }
    .carousel-card {
      padding: 15px;
    }
    .card-title {
      font-size: 14px;
    }
    .card-list {
      font-size: 11px;
      line-height: 1.5;
    }
    .card-list li {
      margin-bottom: 8px;
    }
    .card-icon-wrapper {
      width: 40px;
      height: 40px;
    }
    .card-icon-wrapper i {
      font-size: 18px;
    }
}
/* --- MOBILE NAVBAR STYLES --- */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 40px;
        transition: left 0.3s ease;
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-link {
        font-size: 20px;
    }
    
    #hero {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 10px 0;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .navbar-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 30px;
    }
    
    .navbar-link {
        font-size: 18px;
    }
    
    #hero {
        padding-top: 60px;
    }
}