/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

:root {
    /* Color Palette */
    --primary-dark: #1a2332;
    --primary-blue: #2d4a5e;
    --accent-teal: #3d6b7d;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --overlay-dark: rgba(26, 35, 50, 0.75);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    -webkit-overflow-scrolling: touch;
}

body {
    background-color: #0a0e14;
    /* Match section theme to hide flash */
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: "Poppins", sans-serif;
    background-color: #0a0e14;
    /* Match site theme to hide flickering gaps */
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Remove default focus border/box on click */
a:focus,
button:focus,
.nav-link:focus,
.more-projects-btn:focus,
.contact-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.projects-section {
    margin-top: -3px;
    margin-bottom: -3px;
}

.site-footer {
    margin-top: -2px;
}

.hero-banner {
    margin-bottom: -3px;
}

/* ===================================
   HERO BANNER SECTION
   =================================== */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -1px;
    /* Anti-vibration/glitter overlap */
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* z-index: 1; */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            transparent 20%,
            transparent 80%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    /* Kept the increased padding */
    display: flex;
    justify-content: space-between;
    /* Restore alignment */
    align-items: center;
    /* Restore alignment */
    z-index: 100;
}

.menu-bar {
    padding: 30px 30px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    /* Kept the increased padding */
    display: flex;
    justify-content: space-between;
    /* Restore alignment */
    /* align-items: center; */
    /* Restore alignment */
    z-index: 100;
}

.menu-icon {
    display: none;
}

/* Solid background navbar for other pages */
.navbar-solid {
    position: relative;
    background-color: #0c0f13;
    /* Dark background matching footer */
    padding: 30px 30px;
    /* Aligned padding */
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
    z-index: 100;
}

.info-details {
    text-align: left;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--text-white);
    transition: var(--transition-smooth);
}

.logo h1:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo img {
    height: 85px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    list-style: none;
    gap: 25px;
    /* Removed float: right */
}

.nav-close-btn {
    display: none;
}


.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    position: relative;

    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #FF677E;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:focus,
.nav-link:active {
    outline: none;
    box-shadow: none;
}

/* ===================================
   HERO CONTENT
   =================================== */
.hero-content {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    text-align: center;
    padding: 0 var(--spacing-md);
    max-width: 1200px;
    width: 100%;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 24px;
    }
}

/* ===================================
   ANIMATED SCROLL BUTTON
   =================================== */
.scroll-btn {
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;

    animation: fadeInUp 1s ease-out 0.3s both;
    padding: 0;
}

.scroll-btn:focus,
.scroll-btn:active,
.scroll-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.scroll-btn:hover .mouse-outline {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.scroll-text {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;

    color: var(--text-light);
    transition: var(--transition-smooth);
}

.scroll-btn:hover .scroll-text {
    color: var(--text-white);
}

/* Mouse Icon */
.mouse-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mouse-outline {
    width: 28px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    transition: var(--transition-smooth);
}

/* Animated Scroll Wheel */
.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--text-white);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================================
   SOCIAL LINKS
   =================================== */
.social-links {
    position: absolute;
    left: var(--spacing-md);
    top: 75%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;

}

/* Decorative line above LinkedIn */
.social-links::before {
    content: '';
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.4);

    align-self: center;
}

.social-link {
    color: var(--text-white);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: var(--transition-smooth);

}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(5px);
}

/* ===================================
   CONTACT INDICATOR
   =================================== */
.contact-indicator {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: right center;
    z-index: 100;
    cursor: pointer;
    transition: var(--transition-smooth);
    background-color: #000;
    padding: 10px 20px 35px;
    border-radius: 5px;
    backdrop-filter: blur(10px);
    font-size: 15px;
    color: #fff;
}

.contact-indicator:hover span {
    color: #fff;

}

.contact-indicator span {
    font-size: 16px;
    font-weight: 500;

    color: #fff;
    transition: var(--transition-smooth);
}

/* ===================================
   ABOUT US SECTION
   =================================== */
.about-section {
    height: 100Vh;
    background: #0a0e14;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -2px;
    /* Anti-vibration/glitter overlap */
    margin-bottom: -1px;
}

.about-section .container-fluid {
    max-width: 1400px;
    padding-left: 80px;
    padding-right: 80px;
}

/* For larger screens */
@media (min-width: 1920px) {
    .about-section .container-fluid {
        max-width: 1600px;
        padding-left: 120px;
        padding-right: 120px;
    }
}

/* For extra large screens */
@media (min-width: 2560px) {
    .about-section .container-fluid {
        max-width: 2000px;
        padding-left: 200px;
        padding-right: 200px;

    }

    .social-links {
        top: 85%;
    }
}

.about-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Logo Section */
.about-logo {
    text-align: right;
}

.about-logo img {
    width: 250px;
    height: auto;
    margin-bottom: 20px;
    padding-left: 60px;
}

.logo-tagline {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Content Section */
.about-content {
    color: var(--text-white);
    margin-left: 50px;
}

/* Specific styling for 1024px to 1440px */
@media (min-width: 1024px) and (max-width: 1440px) {
    .about-title {
        font-size: 35px !important;
    }

}

/* Specific styling for 1024px to 1440px */
@media (min-width: 768px) and (max-width: 1300px) {
    .posi {
        right: 50px !important;
    }

}

@media (max-width: 1024px) {
    .social-links {
        top: 75%;
        left: 20px;
    }
}

@media (min-width: 1500px) {
    .social-links {
        top: 85%;
    }
}


/* Adjust content margins for larger screens */
@media (min-width: 1920px) {
    .about-content {
        margin-left: 60px;
    }

    .about-logo img {
        width: 280px;
    }
}

.about-label {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 20px !important;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

.about-label .highlight {
    color: #FF677E;
    font-weight: 500;
    font-size: 25px;
    display: inline-block;
}

.about-title {
    font-size: 45px;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    color: var(--text-white);
    margin-bottom: 0px;
    line-height: 1.2;
}

.about-description {
    font-size: 14px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 400;
}

/* Building Illustration at Bottom */
.building-illustration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 425px;
    height: 100px;
    background-image: url("img/bg-1.png");
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: auto 100%;
    z-index: 1;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-logo img {
        width: 200px;
    }

    .about-title {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .about-section {
        padding: 60px 20px 100px;
    }

    .hero-content img {
        margin-bottom: 20px !important;
        width: 90px !important;
    }

    .menu-icon {
        margin-right: 15px;
    }

    .contact-us-form textarea.form-input {
        height: 50px !important;
    }

    /* .contact-modal-content {
        height: 775px !important;
    } */

    .contact-info-side {
        flex: 0.2 !important;
    }

    .contact-form-side {
        flex: 0 !important;
    }

    .about-logo img {
        width: 150px;
        padding-left: 0px !important;
    }

    .info-content {
        padding: 30px 30px !important;
    }

    .about-title {
        font-size: 28px;
    }

    .about-description {
        font-size: 13px;
        text-align: justify;
    }

    .building-illustration {
        height: 100px;
    }

    .banner-content {
        margin-left: 0 !important;
        text-align: left;
    }



    .copyright-text {
        padding: 10px;
    }

    .navbar-solid {
        padding: 25px !important;
        align-items: center;
    }


    .navbar {
        padding: 10px !important;
        /* Equal spacing left/top */

    }

    .logo {
        padding: 0;
    }

    .menu-bar {
        padding: 20px 30px;
        align-items: center;
    }

    .logo img {
        height: 60px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 480px) {

    .navbar {
        padding: 10px !important;
        /* Equal spacing left/top */

    }

    .info-content {
        padding: 30px 30px !important;
    }

    .navbar-solid {
        padding: 25px !important;
        align-items: center;
    }

    .nav-menu {
        gap: var(--spacing-md);
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: var(--spacing-md);
    }

    .nav-menu {
        gap: var(--spacing-md);
    }


}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }

    .nav-menu {
        gap: var(--spacing-sm);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-content {
        bottom: 20vh;
    }

    .hero-title {
        letter-spacing: 2px;
        line-height: 30px !important;
        margin-bottom: 25px !important;
    }

    .social-links {
        left: 20px;
        top: 65%;
        transform: translateY(-50%);
        flex-direction: column;
    }



    .contact-indicator {
        display: block !important;
        /* Force show */
        right: 6px;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg);
        /* Keep rotation */
    }
}

.hero-title {
    margin-bottom: 15px !important;
}

@media (max-width: 991px) {

    /* Hamburger Menu Icon */
    .menu-icon {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 101;
        position: relative;
    }

    .menu-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #ffffff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Side Drawer Menu */
    .nav-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 190px;
        height: 100vh;
        background: #0c0f13;
        padding: 80px 20px 30px;
        /* Adjusted padding as per user preference */
        display: flex;
        transform: translateX(100%);
        /* Fixed syntax error */
        /* Hidden */
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 2500;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }


    .nav-menu.active {
        transform: translateX(0);
        /* Slide in */
    }

    /* Close Button */
    /* Close Button positioned top-right */
    .nav-close-btn {
        display: block !important;
        position: absolute;
        top: 25px;
        right: 25px;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
        transition: 0.3s;
        z-index: 2600;
    }

    .nav-close-btn:hover {
        transform: rotate(90deg);
        color: #e64d67;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        /* Visible separator */
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    /* Special handling for the close button list item to avoid border */
    .nav-menu li.nav-close-li {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        position: static;
        height: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        display: inline-block;
        width: fit-content;
        padding: 5px 0;
        color: #fff;
        text-align: left;
        position: relative;
    }

    /* Correct underline matching text width */
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #e64d67;
        transition: width 0.3s ease;
    }

    .nav-link.active::after,
    .nav-link:hover::after {
        width: 100% !important;
        /* Force full width of the text container */
    }
}

@media (max-width: 767px) {

    .hero-content {
        bottom: 15vh;
    }

    .hero-title {
        letter-spacing: 2px;
        line-height: 35px !important;
        margin-bottom: 25px !important;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .mouse-outline {
        width: 24px;
        height: 38px;
    }

    .scroll-text {
        font-size: 0.7rem;
    }

    .social-links {
        flex-direction: column;
        left: 20px;
        top: 68%;
        transform: translateY(-50%);
    }

    .social-links::before {
        display: block;
        height: 40px;
        margin-bottom: 10px;
    }



    .about-logo {
        text-align: left;
    }

    .about-content {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--text-white);
    outline-offset: 4px;
}

/* ===================================
   CONTACT MODAL STYLES
   =================================== */
/* ===================================
   CONTACT MODAL STYLES
   =================================== */
/* ===================================
   PROJECT MODAL STYLES
   =================================== */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2100;
    /* Higher than contact modal just in case */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    max-height: 100vh;
    /* Prevent overlay from scrolling */
    background-color: rgba(0, 0, 0, 0.9);
    /* Darker overlay */
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center horizontally and vertically */
    padding: 20px;
    opacity: 1;
}


.project-modal .modal-content {
    background-color: #121212;
    /* Dark card background */
    margin: auto;
    width: 100%;
    max-width: 870px;

    /* Consistent minimum height */
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: visible;
    /* Allow close button outside */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-modal.show .modal-content {
    transform: scale(1);
}

.site-footer {
    margin-bottom: -2px;
}

.modal-image-container {
    width: 100%;
    height: auto;
    max-height: 65vh;
    /* Limit height to allow title area visibility */
    overflow-y: auto;
    /* Enable internal scrolling for tall images */
    display: flex;
    /* Support centering */
    justify-content: center;
    /* Center horizontally */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    /* CRITICAL: anchor for buttons */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-image-container {
    position: relative;
    width: 100%;
    /* Ensure sizing */
}

.modal-image-container img {
    width: auto;
    /* Allow natural width */
    max-width: 100%;
    /* Don't overflow container */
    height: auto;
    /* Allow image to grow to its natural proportions */
    display: block;
    object-fit: contain;
    /* Ensure full image is visible */
    padding: 15px;
    border-radius: 25px;
    box-sizing: border-box;
}

.modal-details {
    padding: 15px;
    color: #fff;
    background: #121212;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700 !important;
    margin-bottom: 15px;
    color: #fff;
}

.modal-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

/* Close Button Centered Outside Top */
.project-modal .close-btn {
    position: absolute;
    top: -45px;
    /* Above the card */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.2s ease;
}

.project-modal .close-btn:hover {
    transform: translateX(-50%) scale(1.1);
}

/* Modal Navigation Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.4);
    /* Slightly or more visible */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 105;
    /* Above image */
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    /* Premium feel */
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.modal-prev-btn {
    left: 22px;
}

.modal-next-btn {
    right: 22px;
}

.modal-nav-btn svg {
    color: #000;
    opacity: 0.4;
}

.modal-nav-btn:hover svg {
    opacity: 1;
}

/* Hide navigation buttons on small screens */
@media (max-width: 768px) {
    .modal-nav-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.6);
        /* More visible on mobile */
    }

    .modal-prev-btn {
        left: 25px;
    }

    .modal-next-btn {
        right: 25px;
    }
}

@media (max-width: 768px) {
    /* .modal-image-container {
        height: 250px;
    } */

    .modal-title {
        font-size: 14px !important;
    }
}

/* ===================================
   CONTACT MODAL STYLES
   =================================== */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Allow scrolling for the modal wrapper if content is tall */
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    /* Add padding to prevent edge touching on small screens */
}

.contact-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center vertically */
    opacity: 1;
}

.contact-modal-content {
    background-color: transparent;
    border-radius: 20px;
    width: 850px;
    /* Slightly wider to accommodate card */
    max-width: 95%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    margin: auto;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.contact-modal.show .contact-modal-content {
    transform: scale(1);
}

.contact-split-layout {
    display: flex;
    border-radius: 25px;
    /* Rounded corners for the container */
    overflow: visible;

    width: 100%;
    background-color: #1a1a1a;
    /* Dark background for the whole split area */
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

/* Left Side: Info */
/* Left Side: Info - THE WHITE CARD */
.contact-info-side {
    flex: 0.8;
    background-color: transparent;
    /* Parent is transparent */
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    position: relative;
}

.info-content {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    height: 90%;
    /* Occupy most of the height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to flex-start */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.info-title {
    color: #ff5773 !important;
    font-size: 1.3rem;
    /* Slightly smaller */
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: left;
    width: 100%;
}

.more-projects-btn a:hover {
    color: #ff5773 !important;
}

.info-details p {
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
}

/* Right Side: Form */
.contact-form-side {
    flex: 1.2;
    background-color: transparent;
    /* Transparent to show dark #1a1a1a */
    padding: 40px 50px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-us-form .form-group {
    margin-bottom: 15px;
}

.contact-us-form label {
    display: block;
    font-size: 0.8rem;
    color: #ffffff;
    /* White labels */
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-us-form .form-input {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 5px;
    color: #333;
    font-family: inherit;
    font-size: 0.9rem;
    height: 26px;
}

.contact-us-form textarea.form-input {
    resize: none;
    height: 50px;
    /* Taller textarea */
}

.submit-btn {
    width: 100%;
    background-color: #ff5773;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    margin-top: 0px;
    transition: background 0.3s ease;
    font-size: 14px;
}

.submit-btn:hover {
    background-color: #e64d67;
}

.contact-close-btn {
    position: absolute;
    top: -40px;
    /* Moved further up */
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    background: #fff;
    width: 25px;
    /* Slightly larger for easier clicking */
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    /* Ensure above everything */
}

.contact-close-btn:hover {
    background: #e0e0e0;
}

.mob-v {
    display: none;
}

.desk-v {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .mob-v {
        display: block;
    }

    .hero-content div {
        position: relative !important;
        right: inherit !important;
        bottom: 0px !important;
    }

    .desk-v {
        display: none;
    }

    .contact-modal.show {
        align-items: flex-start;
        /* Align to top on mobile for scrolling */
        padding-top: 60px;
        /* Space for close button */
    }

    .contact-modal-content {
        height: auto;
        /* Fit content naturally */
        min-height: auto;
    }

    .contact-split-layout {
        flex-direction: column;
    }

    .contact-info-side {
        padding: 15px;
        order: 1;
        /* Ensure info is viewed */
    }

    .contact-form-side {
        padding: 15px;
        order: 2;
    }

    .contact-split-layout {
        height: auto;
    }

    .contact-us-form .form-group {
        margin-bottom: 8px;
        /* Reduced spacing */
    }

    .contact-us-form label {
        margin-bottom: 2px;
        /* Reduced specific spacing */
    }

    .contact-close-btn {
        top: -45px;
        /* Adjust top position */
        /* Keep it above content */
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
        height: 35px;
    }

    .ananda {
        height: 26px !important;
        /* Match other inputs */
    }

    textarea.ananda {
        height: 80px !important;
        /* Keep textarea taller but reasonable */
    }
}

.nav-menu {
    pointer-events: auto !important;
}

.nav-link {
    cursor: pointer !important;
}

.menu-icon {
    cursor: pointer !important;
}

/* ===================================
   CFD & SMOKE ANALYSIS SECTION
   =================================== */
.cfd-section {
    padding: 100px 0;
    position: relative;
    background-color: #0a0e14;
    z-index: 10;
}

.cfd-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0;
    color: #FF677E !important;
    margin-bottom: 20px !important;
    display: block;
}

.cfd-title .highlight {
    color: #FF677E;
}

.cfd-description {
    font-size: 14px;
    line-height: 25px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
    text-align: justify;
}

.cfd-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cfd-image-wrapper img {
    border-radius: 20px;
    /* Ensure image respects border radius if wrapper fails */
}


/* Custom Carousel Navigation */
.cfd-controls .carousel-control-prev,
.cfd-controls .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: none;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cfd-controls .carousel-control-prev:hover,
.cfd-controls .carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* 
   POSITIONING ARROWS RELATIVE TO THE IMAGE COLUMN 
   Since controls are outside the carousel, we use percentage based positioning relative to the container.
   The container has two cols: 50% left, 50% right.
   Prev arrow: Left of the image (e.g. 2% from left edge of container)
   Next arrow: Right of the image (e.g. 48% from left edge of container, just before center)
*/

.cfd-controls .carousel-control-prev {
    left: 0px;
    /* Adjust as needed */
}

.cfd-controls .carousel-control-next {}

@media (min-width: 1400px) {}


/* Responsive */
@media (max-width: 991px) {
    .cfd-title {
        font-size: 25px;
    }

    .cfd-section {
        padding: 80px 0;
    }

    .cfd-controls .carousel-control-next {
        left: 43%;
    }
}

@media (max-width: 768px) {
    .cfd-section {
        padding: 60px 0;
        text-align: center;
    }

    .cfd-title {
        font-size: 23px;
        text-align: left;
    }

    .cfd-description {
        text-align: left;
        font-size: 14px;
    }

    .cfd-content {
        margin-top: 10px;
        /* Space for arrows below image */
        padding: 0 15px;
    }

    /* On mobile, standard side positioning */
    .cfd-controls .carousel-control-prev {
        left: 10px;
    }

    .cfd-controls .carousel-control-next {
        left: auto;
        right: 10px;
    }

    /* Move arrows up to be centered on the image area only */
    .cfd-controls .carousel-control-prev,
    .cfd-controls .carousel-control-next {
        top: 30%;
        /* Approximate center of image on stack */
    }
}
.about-description{
    text-align: justify;
}