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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a; /* Already a very dark grey, close to black */
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
    overflow-y: auto; /* Ensure scrolling is enabled by default on this page */
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000000, #050505, #101010);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
                        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: floatingLights 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes floatingLights {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-5deg); }
}





/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Changed for transparent "smog blur" effect */
    background: rgba(10, 10, 10, 0.5);
    /* More transparent */
    -webkit-backdrop-filter: blur(15px);
    /* For Safari, increased blur */
    backdrop-filter: blur(15px);
    /* Increased blur value */
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    /* Use flex to center the image if needed, though not strictly necessary here */
    align-items: center;
    /* Align items vertically */
    height: 60px;
    /* Fixed height for the logo container */
    margin-right: 1.5rem;
    /* Space between logo and nav */
    border-radius: 0.5rem;
    /* Rounded corners for the logo container */
}

/* Styles for the logo image */
.logo img {
    /* max-height: 100%; Ensure image scales within the logo container's height */
    height: 80px;
    width: auto;
    /* Maintain aspect ratio */
    border-radius: 0.375rem;
    /* Slightly rounded corners for the image itself */
    object-fit: contain;
    /* Ensure the entire image is visible within its bounds */
}

@keyframes logoGlow {

    /* Kept for reference but not applied to ::before */
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    }

    100% {
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.8);
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #3b82f6;
    transform: translateY(-2px);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger:hover span {
    background-color: #3b82f6;
}

/* Common Div Styles for animatable sections */
.common-div-style {
    padding: 100px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    /* Initial state for animation */
    transform: translateY(50px);
    /* Initial state for animation */
    transition: all 0.8s ease;
}

.common-div-style.animate {
    opacity: 1;
    transform: translateY(0);
}




/* Dropdown Specific Styles */
.dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(10, 10, 10, 0.9);
    /* Matching header background */
    -webkit-backdrop-filter: blur(15px);
    /* Matching header blur */
    backdrop-filter: blur(15px);
    /* Matching header blur */
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    /* Above header */
    list-style: none;
    padding: 10px 0;
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    /* Slightly below and then slide up */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out;
    transform-origin: top;
}

.dropdown-content li a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.dropdown-content li a:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    color: #3b82f6;
    transform: translateX(5px);
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    /* Slide into final position */
}











/* Main Contact Wrapper - Applies overall glassmorphism effect */
.main-contact-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
    max-width: 1200px;
    margin: 6rem auto; /* Adjusted margin */
    padding: 40px; /* Increased padding */
    gap: 40px; /* Increased gap between panels */
    width: 100%;

    /* Glassmorphism styling from your theme */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2); /* Subtle blue border */
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); /* Deeper shadow */
    animation: fadeInScale 0.6s ease-out forwards; /* Fade in animation */
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Info Panel (Left Side) */
.contact-info-panel {
    flex: 1; /* Allows it to grow */
    min-width: 300px; /* Minimum width before wrapping */
    padding: 20px; /* Internal padding */
    text-align: left;
    /* No specific background/border here, it inherits from main-contact-wrapper */
}

.contact-info-panel h2 {
    font-size: 2.2em; /* Increased font size */
    margin-bottom: 10px;
    color: #8C52FF; /* Vibrant purple from Branvidia theme */
}

.info-subtitle {
    color: #aaa;
    margin-bottom: 30px; /* Increased margin */
    font-size: 1.1em;
}

.contact-details {
    margin: 2.5rem 0; /* Adjusted margin */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1em;
    color: #d1d5db; /* Light grey text */
}

.contact-item i {
    font-size: 1.5em; /* Increased icon size */
    margin-right: 15px; /* Increased margin */
    color: #8C52FF; /* Vibrant purple for icons */
    width: 30px; /* Fixed width for alignment */
    text-align: center;
}

.contact-item a {
    color: #d1d5db; /* Default link color */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition */
}

.contact-item a:hover {
    color: #8C52FF; /* Vibrant purple on hover */
}

.social-media-links {
    margin-top: 3.5rem; /* Adjusted margin */
}

.social-media-links h3 {
    margin-bottom: 1.5rem; /* Adjusted margin */
    font-size: 1.3em;
    color: #f5f5f5; /* Match main text color */
}

.social-icons {
    display: flex;
    gap: 1.5rem; /* Increased gap */
    justify-content: flex-start;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Larger social icon circles */
    height: 50px; /* Larger social icon circles */
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1); /* Subtle blue background for icons */
    color: #f5f5f5; /* White icon color */
    font-size: 1.8em; /* Increased icon font size */
    transition: all 0.3s ease; /* Smooth transition */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-icons a:hover {
    background: linear-gradient(90deg, #6A1B9A 0%, #8C52FF 100%); /* Purple gradient on hover */
    color: white;
    transform: translateY(-5px) scale(1.05); /* Lift and slight scale on hover */
    box-shadow: 0 6px 15px rgba(140, 82, 255, 0.5); /* Themed shadow */
}

/* Contact Form Panel (Right Side) */
.contact-form-panel {
    flex: 1.5; /* Allows it to grow more than the info panel */
    min-width: 350px; /* Minimum width before wrapping */
    /* No specific background/border here, it inherits from main-contact-wrapper */
}

/* Styling for the actual form element */
.contact-form-actual {
    padding: 0; /* No padding here, handled by panel's gap */
    text-align: left;
    position: static;
}

.contact-form-actual h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #8C52FF; /* Vibrant purple */
    text-align: center;
}

.form-subtitle {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 1.1em;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #d1d5db; /* Light grey for labels */
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(59, 130, 246, 0.3); /* Subtle blue border */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for inputs */
    color: #f5f5f5; /* Text color inside inputs */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for focus */
}




.contact-item i.fa-phone-alt,
.contact-item i.fa-phone {
    transform: scaleX(-1); /* Flips the icon horizontally */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #8C52FF; /* Vibrant purple on focus */
    box-shadow: 0 0 0 3px rgba(140, 82, 255, 0.3); /* Purple glow on focus */
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    /* Gradient from your Branvidia theme buttons */
    background: linear-gradient(90deg, #6A1B9A 0%, #8C52FF 100%); 
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Smooth transitions */
    box-shadow: 0 4px 10px rgba(140, 82, 255, 0.4); /* Themed shadow */
}

.submit-btn:hover {
    background: linear-gradient(90deg, #8C52FF 0%, #6A1B9A 100%); /* Inverted gradient on hover */
    transform: translateY(-3px) scale(1.02); /* More prominent lift and scale on hover */
    box-shadow: 0 8px 20px rgba(140, 82, 255, 0.7); /* Stronger shadow on hover */
}

/* Custom Modal Styles for Alerts */
.custom-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7); /* Dark overlay */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.custom-modal-content {
    background: rgba(0, 0, 0, 0.8); /* Darker glassmorphism */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(140, 82, 255, 0.5); /* Purple border for modal */
    border-radius: 15px;
    padding: 30px 40px;
    width: 80%;
    max-width: 450px; /* Slightly wider modal */
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(140, 82, 255, 0.6); /* Purple glow shadow for modal */
    animation: fadeInModal 0.3s ease-out forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.custom-modal-close-btn {
    color: #fff;
    font-size: 30px; /* Larger close button */
    font-weight: bold;
    position: absolute;
    top: 15px; /* Adjusted position */
    right: 20px; /* Adjusted position */
    cursor: pointer;
    transition: color 0.2s ease;
}

.custom-modal-close-btn:hover,
.custom-modal-close-btn:focus {
    color: #8C52FF; /* Vibrant purple on hover */
}

#custom-modal-text {
    font-size: 1.2em; /* Slightly larger text */
    color: #f5f5f5;
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Form message (for internal form feedback, though modal is primary) */
.form-message {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.form-message.success {
    background-color: rgba(144, 238, 144, 0.2); /* Keep green for success */
    color: #90ee90;
    opacity: 1;
}

.form-message.error {
    background-color: rgba(255, 99, 71, 0.2); /* Keep tomato for error */
    color: #ff6347;
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) { /* Adjust breakpoint for stacking */
    .main-contact-wrapper {
        flex-direction: column; /* Stack columns vertically */
        gap: 30px;
        padding: 30px;
    }
    .contact-info-panel,
    .contact-form-panel {
        min-width: unset;
        width: 100%;
        padding: 25px; /* Adjusted internal padding when stacked */
    }
    .contact-info-panel h2,
    .social-media-links h3,
    .contact-form-actual h2,
    .form-subtitle {
        text-align: center; /* Center headings/subtitles */
    }
    .social-icons {
        justify-content: center; /* Center social icons */
    }
}

@media (max-width: 600px) {
    .main-contact-wrapper {
        padding: 20px;
        gap: 20px;
    }
    .contact-info-panel h2,
    .contact-form-actual h2 {
        font-size: 1.8em;
    }
    .info-subtitle,
    .form-subtitle {
        font-size: 1em;
    }
    .contact-item {
        font-size: 1em;
        margin-bottom: 1rem;
    }
    .contact-item i {
        font-size: 1.2em;
        margin-right: 10px;
    }
    .social-icons a {
        font-size: 1.6em;
        width: 45px;
        height: 45px;
    }
    .contact-form-actual input,
    .contact-form-actual textarea,
    .submit-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
    .custom-modal-content {
        padding: 25px 30px;
        width: 90%;
    }
}















/* Sticky WhatsApp Button */
.whatsapp-sticky-button {
    position: fixed; /* Makes it stick to the viewport */
    bottom: 20px; /* 20px from the bottom */
    left: 92%; /* 20px from the left */
    background-color: #000000; /* WhatsApp green */
    color: white;
    border-radius: 50%; /* Makes it a perfect circle */
    width: 70px; /* Size of the button */
    height: 70px; /* Size of the button */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2em; /* Size of the WhatsApp icon */
    text-decoration: none; /* Remove underline */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Subtle shadow */
    z-index: 990; /* Ensure it's above most content but below preloader/header */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-sticky-button:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5); /* Slightly stronger shadow on hover */
}

/* Responsive adjustments for the sticky button */
@media (max-width: 768px) {
    .whatsapp-sticky-button {
        width: 50px; /* Smaller on mobile */
        height: 50px;
        font-size: 1.8em; /* Smaller icon on mobile */
        bottom: 15px; /* Closer to bottom on mobile */
        left: 15px; /* Closer to left on mobile */
    }
}







/* Footer */
footer {
    text-align: center;
    padding: 40px 5%;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 50px 30px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(59, 130, 246, 0.2);
    }

    nav ul.active {
        right: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .contact-section {
        margin: 20px;
        padding: 40px 20px;
    }

    /* Mobile menu dropdown adjustments */
    nav ul.active .dropdown-content {
        position: static;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        min-width: unset;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
    }

    nav ul.active .dropdown-content li a {
        padding: 8px 16px;
    }

    nav ul.active .dropdown .dropdown-arrow {
        transform: none;
        display: none;
    }
}