/*
================================================================
| BITZETTA IT SOLUTIONS             |
================================================================
| Design Philosophy: "Digital Intelligence"                    |
| - Includes the AI dark theme with a full set of layout fixes |
| - Restores scrolling tech stack, card visibility, centering, |
|   and contact form layout.                                   |
----------------------------------------------------------------
*/

/* --- 1. ROOT VARIABLES & GLOBAL SETUP --- */
:root {
    --dark-bg: #0d1117;
    --card-bg: #161b22;
    --border-color: #30363d;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --accent-cyan: #00c6ff;
    --accent-orange: #FA5D0F;
    --white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --header-height: 70px;
    --border-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--dark-bg);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--accent-cyan); transition: color 0.3s ease; }
a:hover { color: var(--white); }
ul { list-style: none; }
.content-section { padding: 100px 0; position: relative; }
.bg-light { background-color: var(--card-bg); }

/* --- 2. TYPOGRAPHY & HEADINGS --- */
.section-title {
    text-align: center; font-size: 2.8rem; font-weight: 700;
    margin-bottom: 20px; color: var(--white); position: relative; padding-bottom: 20px;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-cyan));
    border-radius: 2px;
}
.subtitle {
    text-align: center; max-width: 700px; margin: -10px auto 50px auto;
    color: var(--text-secondary); font-size: 1.1rem;
}

/* --- 3. REUSABLE COMPONENTS (Buttons) --- */
.btn {
    display: inline-block; padding: 14px 35px; border-radius: 50px;
    font-weight: 600; transition: all 0.3s ease; border: 2px solid transparent;
    text-align: center; text-transform: uppercase; letter-spacing: 1px;
}
.btn-primary {
    background: var(--accent-orange); color: var(--white); border-color: var(--accent-orange);
    box-shadow: 0 0 20px rgba(250, 93, 15, 0.4);
}
.btn-primary:hover {
    background: transparent; color: var(--accent-orange); transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(250, 93, 15, 0.6);
}
.btn-secondary { background: transparent; color: var(--white); border-color: var(--accent-cyan); }
.btn-secondary:hover {
    background: var(--accent-cyan); color: var(--dark-bg); transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 198, 255, 0.4);
}

/* --- 4. HEADER & NAVIGATION --- */
.main-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    height: var(--header-height); transition: background 0.4s ease, border-bottom 0.4s ease;
}
.main-header.scrolled {
    background: rgba(13, 17, 23, 0.7); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.nav-logo img { height: 45px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--text-primary); font-weight: 500; transition: color 0.3s ease; }
.nav-link:hover { color: var(--accent-cyan); }
.nav-link.contact-btn {
    border: 2px solid var(--accent-orange); padding: 8px 20px;
    border-radius: 50px; color: var(--accent-orange); transition: all 0.3s;
}
.nav-link.contact-btn:hover { background: var(--accent-orange); color: var(--white); }
.hamburger { display: none; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: var(--white); }

/* --- 5. HERO SECTION --- */
.hero-section {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1f2c41, var(--dark-bg));
}
#particles-js { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero-content h1 {
    font-size: 4.5rem; font-weight: 700; margin-bottom: 15px;
    text-shadow: 0 0 30px rgba(0, 198, 255, 0.3);
}
.hero-content .tagline { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 40px; font-weight: 400; }
.tagline .accent-text { color: var(--accent-cyan); font-weight: 600; }
.cta-buttons a { margin: 0 10px; }

/* --- 6. COUNTERS, ABOUT, GRIDS --- */
.counters-section { background: var(--card-bg); padding: 40px 0; border-bottom: 1px solid var(--border-color); }
.counter-container { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.counter-item h3 { font-size: 3rem; color: var(--accent-orange); font-weight: 700; }
.counter-item p { color: var(--text-secondary); font-weight: 500; }

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-section img { border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.text-content h2 { text-align: left; }

.grid-layout-3, .grid-layout-4 { display: grid; gap: 30px; margin-top: 50px; }
.grid-layout-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-layout-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* --- 7. CARDS (Capabilities, etc.) --- */
.card {
    background: var(--card-bg); padding: 40px 30px; text-align: center;
    border: 1px solid var(--border-color); border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at 50% 0, rgba(0, 198, 255, 0.15), transparent 70%);
    opacity: 0; transition: opacity 0.4s ease;
}
.card:hover {
    transform: translateY(-10px); border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.card:hover::before { opacity: 1; }
.card-icon { font-size: 3rem; margin-bottom: 20px; color: var(--accent-cyan); }
.card h3 { color: var(--white); }
.card p { color: var(--text-secondary); }

/* --- 7B. TECHNOLOGY STACK (SCROLLING) - RESTORED --- */
.tech-stack-section {
    padding: 40px 0;
    background: var(--dark-bg);
    overflow: hidden;
    position: relative;
}
.tech-stack-section::before, .tech-stack-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.tech-stack-section::before { left: 0; background: linear-gradient(to right, var(--dark-bg), transparent); }
.tech-stack-section::after { right: 0; background: linear-gradient(to left, var(--dark-bg), transparent); }

.scrolling-wrapper { display: flex; }
.tech-logos {
    display: flex; align-items: center; gap: 80px;
    padding: 0 40px;
    animation: scroll 25s linear infinite;
    flex-shrink: 0;
}
.tech-logos span { font-size: 1.5rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; transition: color 0.3s; }
.tech-logos span:hover { color: var(--white); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* --- 7C. INDUSTRIES WE SERVE - RESTORED --- */
.industry-card {
    background: var(--card-bg);
    padding: 30px; text-align: center;
    border-radius: var(--border-radius); border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.industry-card:hover { transform: translateY(-5px); border-color: var(--accent-cyan); }
.industry-icon { font-size: 3rem; color: var(--accent-cyan); }
.industry-card h3 { color: var(--white); margin-top: 15px; }

/* --- 7D. INTERNSHIP & COLLABORATE CTA - RESTORED --- */
#internship, #collaborate { text-align: center; }
#collaborate {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-cyan));
    color: var(--white);
}
#collaborate h2 { color: var(--white); }
#collaborate p { color: rgba(255, 255, 255, 0.9); max-width: 600px; margin: 0 auto 30px auto; }
#collaborate .btn-primary {
    background: var(--white); color: var(--accent-orange);
    border-color: var(--white); box-shadow: none;
}
#collaborate .btn-primary:hover { background: transparent; color: var(--white); border-color: var(--white); }
#collaborate .btn-secondary { border-color: var(--white); }
#collaborate .btn-secondary:hover { background: var(--white); color: var(--dark-bg); }

/* --- 8. TEAM SECTION --- */
.team-member { position: relative; overflow: hidden; border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.team-member img {
    /* 1. Define the fixed height and width */
    height: 350px;
    width: 100%;

    /* 2. Change 'cover' to 'contain' to ensure the full image fits */
    object-fit: contain; /* <-- THE KEY CHANGE */

    /* 3. Add a background color to fill empty space behind the image */
    background-color: #010409; /* A very dark color that matches the footer */

    /* 4. Keep the hover transition effect */
    transition: transform 0.4s ease;
}
.team-member:hover img { transform: scale(1.05); }
.team-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(13, 17, 23, 0.95), transparent);
    color: var(--white); padding: 40px 20px 20px 20px;
}
.social-links a {
    display: inline-block; width: 35px; height: 35px;
    background: var(--accent-cyan); color: var(--dark-bg);
    border-radius: 50%; line-height: 35px; text-align: center;
    font-weight: bold; transition: all 0.3s ease;
}
.social-links a:hover { transform: scale(1.1); box-shadow: 0 0 15px var(--accent-cyan); }

/* --- 9. TESTIMONIALS & CAROUSEL --- */
.carousel-item { min-width: 100%; display: none; }
.carousel-item.active { display: block; }
.carousel-inner { display: flex; transition: transform 0.5s ease-in-out; }
.carousel { position: relative; max-width: 900px; margin: auto; overflow: visible; }
.testimonial-card {
    background: var(--card-bg); border: 1px solid var(--border-color);
    padding: 40px 40px 80px 40px; /* Padding for buttons */
    border-radius: var(--border-radius); text-align: center;
}
.avatar {
    width: 80px !important; height: 80px !important; border-radius: 50% !important;
    border: 4px solid var(--accent-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
    margin: 0 auto 25px auto; object-fit: cover !important;
}
.quote { font-size: 1.1rem; font-style: italic; margin-bottom: 20px; color: var(--text-secondary); }
.client-name { color: var(--white); font-weight: 600; font-size: 1.2rem; }
.company-name { font-size: 1rem; color: var(--accent-cyan); }
.carousel-control {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--border-color); color: var(--white);
    border: none; border-radius: 50%; width: 45px; height: 45px;
    font-size: 20px; cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.carousel-control.prev { left: -60px; }
.carousel-control.next { right: -60px; }
.carousel-control:hover { background: var(--accent-cyan); color: var(--dark-bg); }
#testimonial-carousel .carousel-control {
    top: auto; bottom: 20px; transform: none;
}
#testimonial-carousel .prev { left: calc(50% - 55px); }
#testimonial-carousel .next { right: calc(50% - 55px); }

/*
============================================================
| FIX: UNIFORM IMAGE SIZING FOR SOLUTIONS CAROUSEL          |
============================================================
*/

#solutions-carousel .carousel-item img {
    /* 1. Define a fixed height for a consistent slideshow size. */
    height: 400px; /* Adjust this value as needed for your design */

    /* 2. Set width to 100% to fill the container's width. */
    width: 100%;

    /* 3. This is the key property:
       'contain' ensures the ENTIRE image fits inside the 400px height
       without being cropped. It maintains its aspect ratio. */
    object-fit: contain;
    
    /* 4. Optional: Add a subtle background color to the image container
       for images that don't fill the entire width (like vertical ones). */
    background-color: #000; /* A black background for letterboxing */
    
    /* 5. Ensure the image has the correct border-radius to match the container. */
    border-radius: var(--border-radius);
}

/* Optional: Adjust the overall carousel container for a cleaner look */
#solutions-carousel .carousel-inner {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: #000; /* Ensures a consistent background */
}

/* We remove the border-radius from the caption because the container has it now */
.carousel-caption {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    text-align: left;
    background: var(--card-bg);
}

/* --- 10. CONTACT FORM & MAP - RESTORED --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-secondary); }
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.2);
}
/* === CONTACT FORM STATUS ALERTS === */
.contact-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.contact-info h3 { color: var(--white); margin-bottom: 20px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 15px; font-size: 1.1rem; }
.contact-info strong { color: var(--text-primary); }
.map-container {
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.map-container iframe { filter: invert(90%) grayscale(80%); }

/* --- 11. FOOTER --- */
.main-footer { background: #010409; color: var(--text-secondary); padding-top: 60px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-about h4, .footer-links h4, .footer-contact h4 { color: var(--white); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-cyan); }
.footer-bottom { text-align: center; padding: 20px 0; border-top: 1px solid var(--border-color); font-size: 0.9rem; }
.footer-social { margin-top: 20px; display: flex; gap: 15px; }
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--border-color);
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem; 
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.footer-social a:hover { background-color: var(--accent-cyan); color: var(--dark-bg); transform: translateY(-3px); }
/* === FOOTER WATERMARK STYLES === */

/* 1. Prepare the main footer container */
.main-footer {
  position: relative; /* This is CRUCIAL for positioning the watermark inside it */
  overflow: hidden;   /* Prevents the watermark from spilling out on small screens */
}

/* 2. Style the watermark image itself */
.footer-watermark {
  position: absolute;   /* Lifts the image out of the normal document flow */
  bottom: 100px;         /* Positions it 10px from the bottom of the footer */
  right: 200px;          /* Positions it 20px from the right of the footer */
  
  max-width: 100px;     /* Controls the size of the logo */
  opacity: 0.1;        /* THIS CREATES THE FAINT WATERMARK EFFECT. Adjust between 0.03 to 0.1 for desired faintness. */
  
  pointer-events: none; /* Makes the image un-clickable so it doesn't block links underneath */
  z-index: 0;           /* Puts the watermark on the lowest layer */
}

/* 3. Ensure the footer text and links are on top of the watermark */
.footer-grid, .footer-bottom {
  position: relative; /* Lifts the content into a new stacking context */
  z-index: 1;         /* Puts the content on a layer above the watermark */
}
/* --- 12. SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 13. RESPONSIVE DESIGN --- */
html, body {
    overflow-x: hidden;
}

/* 2. Constrain Carousel Buttons on Mobile and Tablet */
/* This media query targets screens smaller than 1024px */
@media (max-width: 1024px) {
    .carousel-control.prev {
        /* Move the button from -60px (outside) to 10px (inside) */
        left: 10px;
    }
    .carousel-control.next {
        /* Move the button from -60px (outside) to 10px (inside) */
        right: 10px;
    }

    /* Optional: Make buttons semi-transparent on mobile so they don't block content too much */
    .carousel-control {
        background-color: rgba(48, 54, 61, 0.7); /* Use var(--border-color) with transparency */
    }
}


/* 3. Refine Existing Media Queries for Better Box Fitting */
/* This is an update to your existing @media blocks */

@media(max-width: 992px) {
    .section-title { font-size: 2.2rem; }
    .hero-content h1 { font-size: 3rem; }
    .two-column, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .about-section .text-content { order: 2; text-align: center; }
    .about-section .image-content { order: 1; }
    .text-content h2 { text-align: center; }
    .footer-grid { text-align: center; }
    .footer-social { justify-content: center; }
}

@media(max-width: 768px) {
    .content-section { padding: 80px 0; }
    
    .nav-menu {
        position: fixed; left: -100%; top: var(--header-height);
        flex-direction: column; background-color: var(--dark-bg);
        width: 100%; text-align: center; transition: 0.3s;
        height: calc(100vh - var(--header-height));
        padding-top: 40px; gap: 25px;
    }
    .nav-menu.active { left: 0; }
    
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .counter-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .tagline { font-size: 1.2rem;}
    .btn { padding: 12px 28px; font-size: 0.9rem; }
    
    /* Ensure carousel buttons are inside the screen */
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }

    /*
     * THE CRUCIAL FIX FOR THE CAPABILITIES BOXES IS HERE:
     * This forces the grids to stack vertically into a single column.
     */
    .grid-layout-3, .grid-layout-4 {
        grid-template-columns: 1fr;
    }
}
/* === WATERMARK MEDIA QUERY FOR MOBILE === */

/* This rule applies to screens 768px wide or smaller */
@media (max-width: 768px) {

    .main-footer {
        display: flex;
        flex-direction: column; 
        align-items: center;    
    }

    /* 2. Target the watermark image specifically on mobile */
    .footer-watermark {
       position: absolute;   
       bottom: 90px;         
       right: auto;          
  max-width: 50px;     
  opacity: 0.1;          
  pointer-events: none; 
  z-index: 0;    }

}