/* Base Styles and Variables */
:root {
    --primary-color: #056B94;
    --secondary-color: #568294;
    --accent-color: #34A5D5;
    --dark-bg-color: #1E3F4F;
    --light-bg-color: #F0F4F8;
    --text-color: #333333;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-bg-color), #2D5A6E);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition-standard: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Typography Enhancements */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.01em;
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Animated Gradient */
.animated-gradient {
    background: linear-gradient(-45deg, var(--primary-color), var(--accent-color), var(--dark-bg-color), var(--secondary-color));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Modern Card Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-standard);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: var(--transition-standard);
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    font-weight: 600;
    padding: 0.5rem 0;
    margin: 0 1rem;
    font-size: 1rem;
    transition: var(--transition-standard);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--white);
    transition: width 0.4s cubic-bezier(0.58, 0.3, 0.005, 1);
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Improved Desktop Navigation - Large Screens */
@media (min-width: 1280px) {
    .nav-link {
        font-size: 1.05rem;
        padding: 0.7rem 0;
        letter-spacing: 0.01em;
    }
    
    .nav-link:after {
        height: 3px;
        border-radius: 1.5px;
    }
    
    .nav-link.active {
        color: var(--accent-color);
    }
    
    .nav-link.active:after {
        width: 100%;
        background: var(--accent-color);
    }
    
    /* Improve header button for larger screens */
    header .container {
        max-width: 1400px;
    }
    
    header .bg-gradient-to-r {
        background-size: 200% auto;
        animation: gradientShift 3s ease infinite;
    }
    
    @keyframes gradientShift {
        0% { background-position: 0% center; }
        50% { background-position: 100% center; }
        100% { background-position: 0% center; }
    }
}

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-standard);
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover {
    background-color: rgba(5, 107, 148, 0.05);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 2rem;
}

/* Hero Section Enhancements */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(52, 165, 213, 0.3), rgba(30, 63, 79, 0.8) 70%);
    z-index: 1;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: var(--transition-standard);
    box-shadow: 0 8px 15px rgba(5, 107, 148, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-standard);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(5, 107, 148, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--white);
    transition: var(--transition-standard);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

/* Animations */
.floating-animation {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.pulse-animation {
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 165, 213, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(52, 165, 213, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 165, 213, 0); }
}

/* Form styling */
input, textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(5, 107, 148, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: var(--transition-standard);
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 165, 213, 0.3);
    border-color: var(--accent-color);
}

/* Network overlay animation */
#network-overlay {
    opacity: 0.3;
}

/* Responsive styles */
@media (max-width: 768px) {
    #mobile-menu {
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: 0 0 16px 16px;
        z-index: 50;
        overflow: hidden;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .feature-card, .glass-card {
        padding: 1.5rem;
    }
}

/* Particle Animations */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(52, 165, 213, 0.6);
    border-radius: 50%;
}

.particle-1 {
    top: 20%;
    left: 20%;
    animation: float-particle 8s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    left: 70%;
    animation: float-particle 10s ease-in-out infinite reverse;
}

.particle-3 {
    top: 80%;
    left: 30%;
    animation: float-particle 12s ease-in-out infinite;
}

.particle-4 {
    top: 40%;
    left: 80%;
    animation: float-particle 9s ease-in-out infinite reverse;
}

@keyframes float-particle {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% { 
        transform: translate(-30px, -50px) scale(1.2);
        opacity: 0.8;
    }
    50% { 
        transform: translate(30px, -100px) scale(0.8);
        opacity: 0.4;
    }
    75% { 
        transform: translate(-20px, -70px) scale(1.1);
        opacity: 0.7;
    }
}

/* Added scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
