/**
 * BhairavNex Custom Styles
 * Additional styling for forms, toasts, and accessibility
 */

/* Remove all top spacing from body and html */
* {
    box-sizing: border-box;
}

html {
    zoom: 0.9; /* Default zoom to 90% */
    -ms-zoom: 0.9; /* IE/Edge */
    -webkit-zoom: 0.9; /* Safari */
}

body,
html {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure no space above vanta elements */
body > #home,
body > #home.vanta-hero-section,
body .vanta-hero-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ==========================================
   Top Announcement Banner (Collapsible) - HIDDEN
   ========================================== */

.top-announcement-banner {
    display: none !important;
    position: fixed;
    top: -60px;
    left: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: top 0.3s ease-in-out;
}

.top-announcement-banner:hover,
.top-announcement-banner.show {
    top: 0;
}

/* Show banner on page load for 5 seconds */
.top-announcement-banner.initial-show {
    top: 0;
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    position: relative;
    height: 100%;
}

.announcement-icon {
    font-size: 20px;
    margin-right: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.announcement-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
}

.announcement-text strong {
    font-weight: 700;
    font-size: 16px;
}

.close-banner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.close-banner:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.close-banner i {
    font-size: 20px;
}

/* Hover trigger area - invisible area at top of screen */
.top-announcement-banner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 20px;
}

/* Mobile responsive */
@media (max-width: 767px) {
    .announcement-text {
        font-size: 12px;
        padding-right: 40px;
    }
    
    .announcement-text strong {
        font-size: 14px;
    }
    
    .announcement-icon {
        font-size: 16px;
        margin-right: 8px;
    }
}

/* ==========================================
   Stationary Logo/Menu with Collapsible Background
   ========================================== */

/* Navbar always stays at top - only background is collapsible */
.navbar-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9998 !important; /* Lower than 3D logo (999999) */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    pointer-events: none; /* Allow clicks to pass through to elements behind */
}

/* Re-enable pointer events for interactive navbar elements */
.navbar-area .navbar,
.navbar-area .navbar-nav,
.navbar-area .nav-link,
.navbar-area .navbar-brand,
.navbar-area .others-options {
    pointer-events: auto !important;
}

/* Exclude left area from navbar background where 3D logo is positioned */
.navbar-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 100%;
    z-index: 1000000 !important; /* Above everything to create exclusion zone */
    pointer-events: none;
    background: transparent;
}

/* Navbar background - this is what collapses */
.main-navbar {
    position: relative;
    background: transparent !important;
    padding: 12px 0 !important;
    min-height: 52px !important;
    transition: all 0.3s ease-in-out;
    z-index: 9998 !important; /* Lower than 3D logo (999999) */
}

/* Background layer that appears on hover/scroll */
.main-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 53, 136, 0.85);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -9999 !important; /* Way behind 3D logo (999999) */
    box-shadow: 0 2px 10px rgba(16, 53, 136, 0.3);
    /* Create a cutout for the logo area - exclude left 130px */
    clip-path: polygon(130px 0%, 100% 0%, 100% 100%, 130px 100%);
    -webkit-clip-path: polygon(130px 0%, 100% 0%, 100% 100%, 130px 100%);
}

/* Show background on hover or when scrolled */
.navbar-area:hover .main-navbar::before,
.navbar-area.show-navbar .main-navbar::before,
.navbar-area.is-sticky .main-navbar::before {
    opacity: 1;
}

.navbar {
    background: transparent !important;
    padding: 0 !important;
    min-height: 52px !important;
    z-index: 9998 !important; /* Lower than 3D logo (999999) */
}

/* Logo - always visible, increased by 50% */
.navbar-brand {
    padding: 8px 0 !important;
    position: relative;
    z-index: 9998 !important; /* Lower than 3D logo (999999) */
}

.navbar-brand img {
    max-height: 45px !important;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* White Logo on Left Extreme - HIDDEN */
.logo-left {
    display: none !important;
}

/* Black Logo on Right Extreme - HIDDEN */
.logo-right {
    display: none !important;
}

/* Menu items - always visible, increased size */
.navbar-nav {
    margin: 0 auto;
    position: relative;
    z-index: 9998 !important; /* Lower than 3D logo (999999) */
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    padding: 12px 16px !important;
    font-size: 15px !important;
}

.navbar-nav .nav-link:hover {
    color: #FFD700 !important; /* Golden Yellow */
    font-weight: bold !important;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Theme toggle button - smaller, always visible */
.others-options {
    position: relative;
    z-index: 9998 !important; /* Lower than 3D logo (999999) */
}

.others-options .switch-box {
    transform: scale(0.8);
}

/* Sticky behavior - darker blue background */
.navbar-area.is-sticky .main-navbar::before {
    background: rgba(11, 58, 102, 0.90);
    box-shadow: 0 2px 15px rgba(16, 53, 136, 0.4);
}

/* ==========================================
   Theme Toggle Below Navbar (Two Lines Below)
   ========================================== */

.theme-toggle-below-navbar {
    position: fixed;
    top: 70px; /* Two lines below navbar (approximately 52px navbar + 18px spacing) */
    right: 50px;
    z-index: 9998;
    padding: 10px 15px;
    background: rgba(16, 53, 136, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.theme-toggle-below-navbar .switch-box {
    display: flex;
    align-items: center;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .theme-toggle-below-navbar {
        top: 60px;
        right: 20px;
        padding: 8px 12px;
    }
    
    .theme-toggle-label {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .theme-toggle-below-navbar {
        top: 55px;
        right: 15px;
        padding: 6px 10px;
    }
    
    .theme-toggle-label {
        font-size: 11px;
    }
}

/* Mobile menu background */
.mean-container .mean-nav {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Hide the main responsive navbar at top */
.main-responsive-nav {
    display: none !important;
}

/* ==========================================
   Toast Notifications
   ========================================== */

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-in-out;
    z-index: 9999;
    overflow: hidden;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
}

.toast-header.error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.toast-body {
    padding: 16px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.close-toast {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-toast:hover {
    opacity: 1;
}

.theme-dark .toast-notification {
    background: #1a1a2e;
}

.theme-dark .toast-body {
    color: #ffffff;
}

/* ==========================================
   Form Enhancements
   ========================================== */

#submitBtn {
    transition: all 0.3s ease;
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.help-block.with-errors {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.form-check {
    margin: 20px 0;
    padding-left: 0;
}

.form-check-input {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.form-check-label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    user-select: none;
}

.theme-dark .form-check-label {
    color: #ccc;
}

/* ==========================================
   Keyboard Navigation Focus States
   ========================================== */

body.keyboard-nav *:focus {
    outline: 3px solid #667eea !important;
    outline-offset: 2px;
}

body.keyboard-nav button:focus,
body.keyboard-nav a:focus,
body.keyboard-nav input:focus,
body.keyboard-nav textarea:focus,
body.keyboard-nav select:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
}

/* ==========================================
   Certification Boxes with Tooltips
   ========================================== */

.single-certification-box {
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: help;
    margin-bottom: 30px;
}

.single-certification-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.single-certification-box .icon {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.single-certification-box h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.single-certification-box p {
    color: #666;
    margin: 0;
}

.theme-dark .single-certification-box {
    background: #1a1a2e;
}

.theme-dark .single-certification-box p {
    color: #ccc;
}

/* ==========================================
   Case Study Cards
   ========================================== */

.single-case-study {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.single-case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.case-study-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-case-study:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 25px;
}

.case-study-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.case-study-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.theme-dark .single-case-study {
    background: #1a1a2e;
}

.theme-dark .case-study-content p {
    color: #ccc;
}

/* ==========================================
   Projects Timeline List
   ========================================== */

.projects-list {
    background: #f9fafb;
    padding: 40px;
    border-radius: 8px;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.timeline-list li {
    padding: 15px 0;
    padding-left: 30px;
    border-left: 3px solid #667eea;
    margin-bottom: 15px;
    position: relative;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    width: 13px;
    height: 13px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid #f9fafb;
}

.timeline-list li strong {
    color: #667eea;
    font-weight: 600;
}

.theme-dark .projects-list {
    background: #0e1726;
}

.theme-dark .timeline-list li::before {
    border-color: #0e1726;
}

/* ==========================================
   Security & Gradient Sections
   ========================================== */

.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.security-note h3,
.tech-strip h3 {
    font-size: 24px;
    font-weight: 600;
}

/* ==========================================
   PDF Download Button
   ========================================== */

.pdf-download-btn {
    cursor: pointer;
    position: relative;
}

.pdf-download-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================
   Accessibility - Skip to Main Content
   ========================================== */

.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
}

.skip-to-main:focus {
    top: 0;
}

/* ==========================================
   Responsive Adjustments
   ========================================== */

@media only screen and (max-width: 767px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }

    .projects-list {
        padding: 20px;
    }

    .single-certification-box {
        margin-bottom: 20px;
    }
}

/* ==========================================
   3D Rotating Logo - Top Left Corner
   ========================================== */

.rotating-3d-logo {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 999999 !important; /* Always above navbar (9998) */
    perspective: 1000px;
    pointer-events: auto !important; /* Ensure logo is clickable */
}

.rotating-3d-logo img {
    width: 120px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    transform-style: preserve-3d;
    animation: rotate3D 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.rotating-3d-logo:hover img {
    filter: drop-shadow(0 10px 40px rgba(255, 215, 0, 0.9))
            drop-shadow(0 0 30px rgba(255, 215, 0, 0.7));
    transform: scale(1.1);
}

/* 3D Rotation Animation - Sideways 30 degrees */
@keyframes rotate3D {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(30deg) rotateX(5deg);
    }
    50% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    75% {
        transform: rotateY(-30deg) rotateX(-5deg);
    }
}

/* Mobile responsive for 3D logo */
@media (max-width: 991px) {
    .rotating-3d-logo {
        top: 12px;
        left: 15px;
    }
    
    .rotating-3d-logo img {
        width: 90px;
    }
}

@media (max-width: 767px) {
    .rotating-3d-logo {
        top: 10px;
        left: 10px;
    }
    
    .rotating-3d-logo img {
        width: 70px;
    }
}

/* ==========================================
   Vanta.NET 3D Effects - Hero Background
   ========================================== */

/* Vanta Hero Section Container - NO SPACE ABOVE */
.vanta-hero-section,
.vanta-hero-section.main-banner,
#home.vanta-hero-section,
#home.main-banner,
.main-banner.vanta-hero-section {
    position: relative !important;
    overflow: hidden;
    min-height: 100vh;
    margin-top: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    border: none !important;
    transform: translateY(0) !important;
}

/* Centered Hero Heading Above Image */
.hero-centered-heading {
    position: absolute;
    top: calc(30% - 124px); /* Pushed down by 1 line (24px from previous -148px) */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
}

.hero-main-title {
    font-size: 43px;
    font-weight: 900;
    color: #ffffff;
    text-transform: capitalize;
    margin: -5px 0 8px 0;
    line-height: 1.2;
    letter-spacing: 2px;
    text-shadow: 
        0 0 6px rgba(255, 215, 0, 0.5),
        0 0 12px rgba(255, 215, 0, 0.4),
        0 0 18px rgba(255, 215, 0, 0.3),
        0 0 24px rgba(255, 215, 0, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.8);
    animation: goldenGlow 3s ease-in-out infinite;
}

@keyframes goldenGlow {
    0%, 100% {
        text-shadow: 
            0 0 6px rgba(255, 215, 0, 0.5),
            0 0 12px rgba(255, 215, 0, 0.4),
            0 0 18px rgba(255, 215, 0, 0.3),
            0 0 24px rgba(255, 215, 0, 0.2),
            0 4px 20px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.7),
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 4px 20px rgba(0, 0, 0, 0.8);
    }
}

.hero-main-caption {
    font-size: 19.5px;
    font-weight: 700;
    color: #ffffff;
    text-transform: capitalize;
    margin: 0 0 5px 0;
    line-height: 1.4;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

/* Mobile responsive for centered heading */
@media (max-width: 991px) {
    .hero-main-title {
        font-size: 34px;
    }
    
    .hero-main-caption {
        font-size: 14.25px;
    }
    
    .hero-centered-heading {
        top: calc(28% - 104px); /* Pushed down by 1 line (24px from previous -128px) */
    }
}

@media (max-width: 767px) {
    .hero-centered-heading {
        top: calc(22% - 84px); /* Pushed down by 1 line (24px from previous -108px) */
    }
    
    .hero-main-title {
        font-size: 29px;
    }
    
    .hero-main-caption {
        font-size: 10.5px;
    }
}

/* Centered Image on Wave Animation - Below Heading */
.vanta-center-image {
    position: absolute;
    top: calc(55% - 96px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
    animation: floatImage 6s ease-in-out infinite;
}

.vanta-center-image img {
    max-width: 450px;
    width: 52vw;
    height: 262px;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

/* Float animation for center image */
@keyframes floatImage {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0px);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

/* Hover effect - make image more visible */
.vanta-center-image:hover img {
    opacity: 0.3;
}

/* Shift hero description down to align with button and contact */
.main-banner-content .hero-description {
    margin-top: 69px !important; /* Moved up by one line (24px from 93px) */
    position: relative;
}

/* Position the bottom left content container for perfect alignment */
.main-banner-content {
    position: relative;
}

.col-lg-6.col-md-12:first-child {
    display: flex;
    align-items: flex-end;
    padding-bottom: calc(354px - 80px);
}

/* Hide the button in bottom left hero content */
.main-banner-content .btn-box {
    display: none !important;
}

/* Hero CTA Button - Centered, same line as description and contact */
.hero-cta-button {
    position: absolute;
    bottom: 315px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    text-align: center;
}

.hero-cta-button .default-btn {
    padding: 12px 35px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

/* Hero Contact Info - Bottom Right, pushed one line below */
.hero-contact-info {
    position: absolute;
    bottom: 260px;
    right: 50px;
    z-index: 15;
    text-align: left;
}

.contact-line {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 3px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.contact-line > span,
.contact-line > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Golden Glowing Emojis */
.golden-emoji {
    font-size: 24px;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9))
            drop-shadow(0 0 16px rgba(255, 215, 0, 0.7))
            drop-shadow(0 0 24px rgba(255, 215, 0, 0.5))
            drop-shadow(0 0 32px rgba(255, 215, 0, 0.3));
    animation: emojiGlow 2s ease-in-out infinite;
}

@keyframes emojiGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9))
                drop-shadow(0 0 16px rgba(255, 215, 0, 0.7))
                drop-shadow(0 0 24px rgba(255, 215, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1.0))
                drop-shadow(0 0 24px rgba(255, 215, 0, 0.9))
                drop-shadow(0 0 36px rgba(255, 215, 0, 0.7))
                drop-shadow(0 0 48px rgba(255, 215, 0, 0.5));
    }
}

.contact-separator {
    display: none !important;
}

.contact-line span {
    color: #ffffff;
}

.contact-line a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 1px solid transparent;
}

.contact-line a:hover {
    color: #ffd700;
    border-bottom: 1px solid #ffd700;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Mobile responsive for contact info */
@media (max-width: 991px) {
    .hero-contact-info {
        bottom: 180px;
        right: 30px;
        font-size: 14px;
    }
    
    .golden-emoji {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .hero-contact-info {
        bottom: 140px;
        right: 20px;
        font-size: 11px;
    }
    
    .contact-line {
        gap: 6px;
        flex-direction: column;
        align-items: flex-end;
    }
    
    .contact-separator {
        display: none;
    }
    
    .golden-emoji {
        font-size: 18px;
    }
}

/* Vanta.NET Background Container - NO SPACE ABOVE */
#vanta-bg,
.vanta-background,
#home #vanta-bg,
.vanta-hero-section #vanta-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    z-index: 1;
    background: linear-gradient(135deg, #000000 0%, #1a3a5c 50%, #3a7bd5 100%);
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    transform: translateY(0) !important;
}

/* Optional overlay for improved text contrast */
.vanta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 12, 0.35);
    z-index: 2;
    pointer-events: none;
}

/* Ensure Vanta canvas is properly positioned - NO SPACE ABOVE */
.vanta-canvas,
canvas.vanta-canvas,
#vanta-bg canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Hero content layers - must be above Vanta background */
#home .d-table {
    position: relative;
    z-index: 10;
}

#home .d-table-cell {
    position: relative;
    z-index: 10;
}

#home .main-banner-content,
#home .banner-image {
    position: relative;
    z-index: 15;
}

/* Enhanced text shadows for better readability over animated background */
.main-banner-content {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.main-banner-content h1 {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.main-banner-content .sub-title {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.main-banner-content .hero-tagline {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.main-banner-content .hero-description {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Contact Section - Push down two lines */
#contact.contact-area {
    margin-top: 40px;
}

/* Hide decorative shapes (including X icon) */
.main-banner .shape1,
.main-banner .shape2,
.main-banner .shape3,
.main-banner .shape4,
.main-banner .shape5 {
    display: none !important;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .vanta-hero-section {
        min-height: 100vh;
    }
    
    .vanta-overlay {
        background: rgba(4, 8, 12, 0.45);
    }
    
    /* Slightly stronger text shadows on mobile for better readability */
    .main-banner-content h1 {
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
    }
}

/* ==========================================
   Partners & Clients Section
   ========================================== */

.partner-item {
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item img {
    max-width: 180px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.partner-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.partner-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-dark .partner-name {
    color: #ffffff;
}

/* Mobile responsive for partners */
@media (max-width: 767px) {
    .partner-item img {
        max-width: 140px;
    }
    
    .partner-name {
        font-size: 16px;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .toast-notification,
    .go-top,
    .navbar-area,
    .buy-now-btn {
        display: none !important;
    }
    
    .vanta-canvas {
        display: none !important;
    }
}

