/* --- 1. Global Styles & Variables --- */
:root {
    --primary-blue: #0047FF;
    --deep-black: #0A0A0A;
    --white: #FFFFFF;
    --electric-cyan: #00E5FF;
    --metallic-grey: #BFC5D2;
    --light-grey-bg: #f8f9fa;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--deep-black);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section--grey {
    background-color: var(--light-grey-bg);
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--deep-black);
}

.section__intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- 2. Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

strong {
    color: var(--primary-blue);
}

/* --- 3. Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.4); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    padding: 10px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.logo:hover {
    transform: rotateY(360deg);
}

.nav__list {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav__item {
    margin-left: 30px;
}

.nav__link {
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    transform-style: preserve-3d;
}

.nav__link:hover {
    color: var(--electric-cyan);
    transform: rotateX(10deg) translateZ(10px);
}

.nav__link--btn {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav__link--btn:hover {
    background-color: var(--electric-cyan);
    color: var(--deep-black);
    transform: translateY(-2px);
}

/* --- 3. Header & Navigation --- */


.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    border: none;
    background: none;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0; /* This creates space for the new lines */
    transition: 0.3s;
    position: relative; /* This is essential for positioning the new lines */
}

/* --- ADD THIS NEW CODE --- */
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

.hamburger::before {
    top: -8px; /* Moves the top line up */
}

.hamburger::after {
    bottom: -8px; /* Moves the bottom line down */
}

/* --- 4. Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn--primary:hover {
    background-color: var(--deep-black);
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn--secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn--large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* --- 5. Homepage Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    /* FIXED: Removed extra parenthesis */
    background: linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.5)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80') no-repeat center center/cover;
    color: var(--white);
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    max-width: 900px;
    margin: 0 auto 20px auto;
}

.hero__subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}

.hero__ctas .btn {
    margin: 0 10px;
}

/* --- 6. Services Section (with 3D) --- */
.services-grid {
    display: grid;
    /* FIXED: Removed extra parenthesis */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.service-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 1px solid #eee;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(10deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card__icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--electric-cyan);
}

.service-card__title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--deep-black);
}

.service-card__description {
    color: #555;
    margin-bottom: 20px;
}

.service-card__link {
    font-weight: 600;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.service-card__link:hover {
    color: var(--electric-cyan);
}

/* --- 7. Features Section (Why Choose Us) --- */
.features-grid {
    display: grid;
    /* FIXED: Removed extra parenthesis */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature__title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.feature__description {
    color: #555;
}

/* --- 8. Portfolio Section --- */
.portfolio-grid {
    display: grid;
    /* FIXED: Removed extra parenthesis */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-item__image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-item__content {
    padding: 25px;
}

.portfolio-item__title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.portfolio-item__description {
    color: #555;
}

/* --- 9. Testimonials Section (Slider) --- */
.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 20px;
}

.testimonial__text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
}

.testimonial__author {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background-color: var(--deep-black);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn--prev {
    left: -60px;
}

.carousel-btn--next {
    right: -60px;
}

/* Carousel Dot Indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--metallic-grey);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

/* --- 10. CTA Section (Gradient) --- */
.cta-section {
    background-image: linear-gradient(to right, var(--primary-blue), var(--electric-cyan));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section__title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-section__subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn {
    background-color: var(--white);
    color: var(--primary-blue);
}

.cta-section .btn:hover {
    background-color: var(--deep-black);
    color: var(--white);
}

/* --- 11. Footer --- */
.footer {
    background-color: var(--deep-black);
    color: var(--metallic-grey);
    padding: 60px 0 20px 0;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand .logo {
    color: var(--white);
    margin-bottom: 10px;
}

.footer__brand p {
    color: var(--metallic-grey);
}

.footer__nav h4,
.footer__contact h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 15px;
}

.footer__nav ul,
.footer__contact p {
    list-style: none;
}

.footer__nav li {
    margin-bottom: 10px;
}

.footer__nav a,
.footer__contact a {
    color: var(--metallic-grey);
    transition: color 0.3s ease;
}

.footer__nav a:hover,
.footer__contact a:hover {
    color: var(--electric-cyan);
}

.footer__bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- 12. Page Hero (for About, Services, Contact) --- */
.page-hero {
    /* FIXED: Removed extra parenthesis */
    background: linear-gradient(rgba(10, 10, 10, 0.5), rgba(10, 10, 10, 0.5)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80') no-repeat center center/cover;
    color: var(--white);
    padding: 150px 0 80px 0;
    text-align: center;
}

.page-hero__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero__subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- 13. Contact Page Specific Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper h2,
.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--deep-black);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--deep-black);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-blue);
}

/* --- 14. Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* New Slide-in Animations */
.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- 15. Portfolio Filter --- */
.portfolio-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background-color: transparent;
    color: var(--deep-black);
    border: 2px solid var(--metallic-grey);
    padding: 10px 25px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* --- 16. Blog Page Styles --- */
.blog-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.blog-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card__content {
    padding: 25px;
}

.blog-card__category {
    color: var(--electric-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card__title {
    font-size: 1.5rem;
    margin: 10px 0;
}

.blog-card__title a {
    color: var(--deep-black);
    transition: color 0.3s ease;
}

.blog-card__title a:hover {
    color: var(--primary-blue);
}

.blog-card__excerpt {
    color: #555;
    margin-bottom: 15px;
}

.blog-card__meta {
    font-size: 0.9rem;
    color: #777;
}

.blog-card__meta span {
    margin-right: 15px;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: var(--light-grey-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.sidebar-widget__title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--deep-black);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 10px;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 12px;
}

.sidebar-links a {
    color: var(--deep-black);
    transition: color 0.3s ease;
}

.sidebar-links a:hover {
    color: var(--primary-blue);
}

/* --- 17. About Us Page Specific Styles (3D & Sliding) --- */

/* Our Approach Slider */
.approach-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    perspective: 1200px;
}

.approach-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach-slide {
    flex: 0 0 100%;
    padding: 40px;
}

.approach-slide__content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.approach-slide__content:hover {
    transform: rotateY(5deg) translateZ(20px);
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 20px;
}

.approach-slide__title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--deep-black);
}

.approach-slide__description {
    font-size: 1.1rem;
    color: #555;
}

/* Founder's Expertise with 3D Tilt */
.founder-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.founder-section__visual {
    perspective: 1000px;
}

.founder-image-wrapper {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.founder-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.founder-section__content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--deep-black);
}

.founder-section__content p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

/* Company Values with 3D Tilt Cards */
.values-grid-3d {
    display: grid;
    /* FIXED: Removed extra parenthesis */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.value-card-3d {
    perspective: 1000px;
    height: 400px;
}

.value-card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.value-card-3d:hover .value-card-3d-inner {
    transform: rotateY(10deg) rotateX(-10deg) scale(1.05);
}

.value-card-3d-front {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.value-card-3d:hover .value-card-3d-front {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.value-card-3d-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value-card-3d-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 30px;
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- 18. Responsive Design --- */
@media (max-width: 992px) {
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
    .footer__brand {
        grid-column: 1 / -1;
        text-align: center;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .blog-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: static;
        margin-top: 40px;
    }
    .founder-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .founder-section__visual {
        max-width: 400px;
        margin: 0 auto;
    }
    .values-grid-3d {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--deep-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease-in-out;
    }

    .nav__list--active {
        left: 0;
    }

    .nav__item {
        margin: 15px 0;
    }
    
    .nav__link {
        color: var(--white);
    }

    .nav__toggle {
        display: flex;
    }
    
    .hero__ctas {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero__ctas .btn {
        margin: 0;
        width: 80%;
    }

    .section__title {
        font-size: 2rem;
    }

    .cta-section__title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 200px;
        text-align: center;
    }
}

/* --- Contact Page Map --- */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    border: 0; /* Removes default iframe border */
}

/* --- 3. Header & Navigation --- */
.header {
    /* ... existing styles ... */
}

/* Add this new rule for the logo image */
.logo-img {
    height: 40px; /* Adjust this value to control the logo's height */
    width: auto; /* This keeps the logo's aspect ratio correct */
    transition: transform 0.6s ease, filter 0.3s ease; /* Adds a nice hover effect */
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2); /* Adds a subtle brightness on hover */
}

/* ... rest of the header styles ... */