/* Global Styles & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0f172a;
    --brand: #0061ff;
    --brand-light: #60efff;
    --accent: #10b981; /* Emerald Green */
    --surface: #ffffff;
    --background: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
}

/* Top Bar */
.top-bar {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0061ff, #0f172a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite, slideDown 0.8s ease-out;
    color: white;
    padding: 10px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1001;
}

.top-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 5s infinite;
}

.top-bar-info {
    display: flex;
    gap: 25px;
}

.top-bar-info i {
    color: var(--brand-light);
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.top-bar-social {
    display: flex;
    gap: 15px;
}

.top-bar-social a {
    color: white;
    opacity: 0.8;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--brand-light);
    opacity: 1;
    transform: translateY(-2px) scale(1.2);
}

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

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-200%); }
}

/* Header & Sticky Nav */
header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: headerSlideDown 1s ease-out;
}

header.scrolled {
    padding: 8px 8%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.mobile-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    order: 2;
}

#navMenu {
    order: 1;
}

#navMenu > ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

#navMenu ul li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

#navMenu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: var(--transition);
    transform: translateX(-50%);
}

#navMenu ul li a:hover {
    color: var(--brand);
}

#navMenu ul li a:hover::after {
    width: 100%;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 15px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    list-style: none;
    z-index: 1000;
    border: 1px solid #f1f5f9;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    animation: none !important;
    opacity: 1 !important;
}

.dropdown-menu li a {
    padding: 12px 25px !important;
    display: block;
    font-size: 0.85rem !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
    color: var(--text-secondary) !important;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f8fafc;
    color: var(--brand) !important;
    padding-left: 30px !important;
}

.dropdown-menu li a::after {
    display: none !important;
}

@media (max-width: 1150px) {
    .dropdown-menu {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: #f1f5f9 !important;
        border: none !important;
        max-height: 0;
        overflow: hidden;
        padding: 0 !important;
        margin: 0 !important;
        transition: max-height 0.4s ease-out;
        width: 100% !important;
        display: block !important;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0 !important;
    }

    .dropdown-menu li {
        width: 100% !important;
        display: block !important;
    }

    .dropdown-menu li a {
        padding: 12px 10% 12px 15% !important;
        font-size: 0.9rem !important;
        color: var(--text-secondary) !important;
        border-bottom: 1px solid #e2e8f0 !important;
        background: transparent !important;
        display: flex !important;
        align-items: center;
        gap: 15px;
    }
}


/* Logo Styles */
.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.logo span {
    background: linear-gradient(120deg, var(--brand), var(--brand-light), var(--brand));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s linear infinite;
}


/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
    .featured {
        flex-direction: column !important;
    }
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-slider { height: 60vh; min-height: 400px; }
    .hero-content h1 { font-size: 2.2rem !important; }
    .hero-content p { font-size: 1rem !important; margin-bottom: 25px !important; }
    .btn-group { flex-direction: column; gap: 15px !important; width: 100%; }
    .btn { width: 100%; justify-content: center; padding: 12px 25px !important; }
    header .logo img { height: 50px !important; }
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 65vh;
    min-height: 450px;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: white;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.4));
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Slide Content Animations */
.slide.active .hero-content h1 {
    animation: slideInLeft 1s ease-out forwards;
}

.slide.active .hero-content p {
    animation: slideInLeft 1.2s ease-out forwards;
}

.slide.active .btn-group {
    animation: fadeInUp 1.5s ease-out forwards;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--brand);
    transform: scale(1.3);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    animation: slideInLeft 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: slideInLeft 1.2s ease-out;
}

.btn-group {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.5s ease-out;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 97, 255, 0.3);
}

.btn-primary:hover {
    background: #0051d6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 97, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Floating Blobs Background */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 97, 255, 0.1), rgba(96, 239, 255, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    animation: blobFloat 20s infinite alternate;
}

.blob-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.blob-2 { width: 300px; height: 300px; bottom: 100px; right: -50px; animation-delay: -5s; }

/* Enhanced Section Styling */
.section {
    padding: 120px 10%;
    position: relative;
}

/* Glassmorphism Cards */
.card-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 45px;
    border-radius: 30px;
    transition: var(--transition);
}

.card-glass:hover {
    background: white;
    transform: translateY(-20px) rotate(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Wave Divider */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: #f1f5f9;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.2); }
}

/* Grid & Cards Update */
.grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-title .divider {
    width: 80px;
    height: 5px;
    background: linear-gradient(to right, var(--brand), var(--brand-light));
    margin: 0 auto;
    border-radius: 10px;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

.card i {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Featured Section (Two Columns) */
.featured {
    display: flex;
    align-items: center;
    gap: 80px;
}

.featured-img {
    flex: 1;
    position: relative;
}

.featured-img img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.featured-img::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--brand);
    border-radius: 30px;
    z-index: -1;
}

.featured-content {
    flex: 1;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 97, 255, 0.1);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 100px 8% 40px;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 30px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--brand);
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(10px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 97, 255, 0.3);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Mobile Responsiveness & Media Queries */
@media (max-width: 1150px) {
    .top-bar {
        flex-direction: column;
        padding: 15px 5%;
        gap: 10px;
        text-align: center;
    }

    .top-bar-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }

    .top-bar-social {
        margin-top: 5px;
        justify-content: center;
    }

    header {
        padding: 12px 5%;
    }

    .mobile-toggle {
        display: block;
    }

    #navMenu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease-in-out;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-top: 1px solid #f1f5f9;
        z-index: 1000;
        display: block;
    }

    #navMenu.active {
        max-height: 500px;
    }

    #navMenu > ul {
        display: block;
        list-style: none;
        padding: 10px 0;
    }

    #navMenu ul li {
        width: 100%;
        animation: none;
        opacity: 1;
    }

    #navMenu ul li a {
        display: block;
        padding: 15px 10%;
        border-bottom: 1px solid #f8fafc;
        width: 100%;
    }

    #navMenu ul li a::after {
        display: none;
    }

    .logo { order: 0; }
    .mobile-toggle { order: 1; }

    .hero-slider { height: 60vh; }
    .hero h1 { font-size: 2.5rem; }
    .section { padding: 60px 5%; }
    .section-title h2 { font-size: 2rem; }
    .grid { grid-template-columns: 1fr !important; }
    .featured { flex-direction: column !important; }
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-links li a { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .contact-banner h1, .about-banner h1, .page-header h1 { font-size: 2rem; }
}
