:root {
    --primary: #2B3B4C;
    --secondary: #00A6FB;
    --accent: #F5F7FA;
    --highlight: #7B61FF;
}

/* Gradient Effects */
.gradient-text {
    background: linear-gradient(120deg, var(--secondary), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Neural Background */
.neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(245, 247, 250, 0.95) 100%);
    z-index: 2;
}

/* Navigation Effects */
.nav-blur {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--secondary);
}

.nav-link.active::after {
    width: 100%;
}

/* Enhanced Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    left: 50%;
    width: 720px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, 10px);
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    display: block;
}

.dropdown-content {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
    width: 100%;
}

.dropdown-grid {
    display: flex;
    width: 100%;
}

.dropdown-column {
    flex: 1;
}

.dropdown-column:first-child {
    flex: 0 0 250px;
    background-color: #f8fafc;
    border-right: 1px solid #eef2f7;
}

.dropdown-column:last-child {
    flex: 0 0 450px;
    padding: 20px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--secondary);
}

.dropdown-item:hover .icon-box {
    background-color: var(--secondary);
    color: white;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background-color: #f1f5f9;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.dropdown-content-right h3 {
    color: var(--primary);
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    margin-top: 16px;
}

.dropdown-content-right h3:first-child {
    margin-top: 0;
}

.dropdown-content-right p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Arrow indicator for dropdown */
.dropdown-content:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

/* Adjust arrow position for tech dropdown */
.dropdown-container:nth-child(3) .dropdown-content:before {
    left: 60%;
}

/* Active dropdown item styling */
.dropdown-item.active {
    background-color: rgba(0, 166, 251, 0.1);
    color: var(--secondary);
}

.dropdown-item.active .icon-box {
    background-color: var(--secondary);
    color: white;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dropdown-menu {
        width: 680px;
    }
}

@media (max-width: 992px) {
    .dropdown-menu {
        width: 600px;
        max-width: 90vw;
    }
}

@media (max-width: 768px) {
    .dropdown-menu {
        width: 100%;
        left: 0;
        transform: none;
    }
    
    .dropdown-container:hover .dropdown-menu {
        transform: none;
    }
    
    .dropdown-grid {
        flex-direction: column;
    }
    
    .dropdown-column:first-child,
    .dropdown-column:last-child {
        flex: 1;
        width: 100%;
    }
    
    .dropdown-content:before {
        left: 25px;
    }
}
/* Button Animations */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Button Animations */
.secondary-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background-color: var(--secondary) !important;
    color: white !important;
}

/* Card Animations */
.floating-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary);
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--primary);
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* Reveal Animation */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

.reveal-section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Float Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsive Animations */
@media (max-width: 768px) {
    .floating-card:hover {
        transform: translateY(-5px);
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .dropdown-menu {
        width: 100%;
        left: 0;
    }
    
    .dropdown-grid {
        flex-direction: column;
    }
}

/* Form Animations */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: scale(1.02);
}

/* Contact page specific styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2B3B4C;
}

.contact-location {
    margin-bottom: 40px;
}

.contact-location h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-location p {
    color: #4B5563;
    line-height: 1.6;
}

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.contact-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 166, 251, 0.2);
    outline: none;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M8 12L1 5h14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.contact-button {
    background-color: #FFC107;
    color: #2B3B4C;
    font-weight: 600;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.contact-button:hover {
    background-color: #FFB300;
    transform: translateY(-2px);
}

/* Phone input styling */
.phone-input {
    display: flex;
    position: relative;
}

.country-select {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-right: none;
    border-radius: 6px 0 0 6px;
    height: 48px;
    cursor: pointer;
    min-width: 100px;
}

.country-select img {
    width: 24px;
    margin-right: 8px;
}

.country-select .arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #64748B;
    margin-left: 8px;
}

.country-list {
    position: absolute;
    top: 48px;
    left: 0;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.country-list.show {
    display: block;
}

.country-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.country-item:hover {
    background-color: #F3F4F6;
}

.country-item img {
    width: 24px;
    margin-right: 10px;
}

.country-item span.country-name {
    flex: 1;
    font-size: 14px;
}

.country-item span.country-code {
    color: #64748B;
    font-size: 14px;
}

.phone-number-input {
    flex: 1;
    border-radius: 0 6px 6px 0 !important;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-animation {
    width: 50px;
    height: 50px;
    border: 3px solid var(--accent);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s ease-in-out infinite;
}

#bouncing-balls-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: linear-gradient(to bottom right, #ffffff, #f5f5f5);
}

#bouncing-balls-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile Menu Styles */
.mobile-menu {
    display: none; /* Default state is hidden */
    position: fixed; /* Change from absolute to fixed */
    top: 64px;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 9999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 64px); /* Limit height to viewport minus header */
    overflow-y: auto; /* Add scrolling for long menus */
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu.active {
    display: block;
}

/* Mobile dropdown styles */
.mobile-dropdown {
    border-bottom: 1px solid #eee;
}

.mobile-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.mobile-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.mobile-dropdown-toggle.active svg {
    transform: rotate(180deg);
}

.mobile-dropdown-content {
    background-color: #f8fafc;
    overflow: hidden;
    max-height: 300px; /* Allow content to be visible */
    transition: max-height 0.3s ease;
    display: none; /* Hidden by default, JS will toggle this */
}

.mobile-dropdown-content.hidden {
    display: none;
}

/* Hamburger button styles */
.mobile-menu-button {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.mobile-menu-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 166, 251, 0.3);
}
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important; /* Force hide on desktop */
    }
}

/* Responsive Hero Section */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    /* Adjust button spacing on mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }
}

/* Responsive Bouncing Balls Container */
@media (max-width: 768px) {
    #bouncing-balls-container {
        height: 400px !important;
        min-height: 400px !important;
    }
}

/* Responsive Card Grid */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Responsive Spacing */
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .grid {
        gap: 2rem;
    }
}

/* Form Responsiveness */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Service Card Styles */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.service-card-link:hover {
    transform: translateY(-8px);
}

.service-card-link:hover .floating-card {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary);
}

.floating-card {
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.floating-card h3 {
    transition: color 0.3s ease;
}

.service-card-link:hover .floating-card h3 {
    color: var(--secondary);
}

/* Gradient border effect on hover */
.floating-card {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.floating-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--highlight));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.service-card-link:hover .floating-card::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Icon animation */
.floating-card .h-14 {
    transition: transform 0.3s ease;
}

.service-card-link:hover .floating-card .h-14 {
    transform: scale(1.1);
}

/* Responsive design refinements */
@media (max-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .service-card-link:hover {
        transform: translateY(-5px);
    }
    
    .floating-card {
        margin-bottom: 1.5rem;
    }
}

/* Ensure card heights are consistent */
.floating-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.floating-card > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.floating-card ul {
    flex-grow: 1;
}

/* Add this to your styles section */
.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 200;
}

.mobile-menu-button svg {
    stroke: #4B5563;
    width: 24px;
    height: 24px;
    pointer-events: none; /* This ensures clicks go to the button, not the SVG */
}