:root {
    /* Colors */
    --color-primary: #007BFF;
    --color-secondary: #00C7E5;
    --color-background: #0A192F;
    --color-footer-bg: #040D1D;
    --color-button: #00C7E5;
    --color-text-light: #E0E0E0; /* Light grey for body text */
    --color-text-dark: #A0A0A0; /* For less prominent text */
    --color-border-glass: rgba(255, 255, 255, 0.1);
    --color-shadow-blue: rgba(0, 123, 255, 0.4);
    --color-shadow-teal: rgba(0, 199, 229, 0.4);
    --color-accent-glow: rgba(0, 199, 229, 0.8);

    /* Section Backgrounds */
    --section-bg-1: #002B4B;
    --section-bg-2: #0D2A4A;
    --section-bg-3: #081E35;
    --section-bg-4: #0A192F; /* Same as main background for subtle variations */

    /* Fonts */
    --font-family-headings: 'Inter', sans-serif;
    --font-family-body: 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-body);
    color: var(--color-text-light);
    background-color: var(--color-background);
    line-height: 1.7; /* Increased line-height for better readability */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 5px var(--color-accent-glow);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-text-light);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.05em; /* Slightly expanded letter-spacing for headings */
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    /* Deep blue to light blue gradient text fill for main titles */
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px var(--color-shadow-blue);
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-shadow: 0 0 8px var(--color-shadow-teal);
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
}

p {
    margin-bottom: var(--spacing-md);
}

/* Section Backgrounds */
.section-bg-1 {
    background-color: var(--section-bg-1);
}

.section-bg-2 {
    background-color: var(--section-bg-2);
}

.section-bg-3 {
    background-color: var(--section-bg-3);
}

.section-bg-4 {
    background-color: var(--section-bg-4);
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05); /* Subtle background opacity */
    border: 1px solid var(--color-border-glass);
    backdrop-filter: blur(15px); /* Stronger blur for visual impact */
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px 0 var(--color-shadow-blue);
    padding: var(--spacing-lg);
    transition: all var(--transition-speed) var(--transition-timing);
}

.glass-effect:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 8px 48px 0 var(--color-shadow-teal);
    transform: translateY(-2px); /* Slight lift on hover */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius-sm); /* Rounded rectangular */
    font-family: var(--font-family-headings);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    background: linear-gradient(45deg, var(--color-primary), var(--color-button)); /* Gradient from primary to secondary */
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) var(--transition-timing);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 15px var(--color-shadow-blue); /* Subtle inner shadow + outer glow */
}

.btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4), 0 2px 8px var(--color-shadow-blue);
}

.btn:hover {
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); /* Brighter gradient */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 6px 20px var(--color-shadow-teal); /* Enhanced shadow */
    animation: btn-pulse 1s infinite alternate; /* Pulse effect */
}

@keyframes btn-pulse {
    0% {
        transform: scale(1);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 4px 15px var(--color-shadow-blue);
    }
    100% {
        transform: scale(1.02);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 8px 25px var(--color-shadow-teal);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(10, 25, 47, 0.8); /* Slightly translucent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 199, 229, 0.2); /* Subtle border-bottom */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    width: 50px; /* Example size */
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23007BFF"/><stop offset="100%" stop-color="%2300C7E5"/></linearGradient></defs><path fill="url(%23g)" d="M50 0 L100 25 L75 100 L25 100 L0 25 Z M50 20 L20 40 L30 70 L70 70 L80 40 Z" /></svg>') no-repeat center center / contain; /* Abstract glowing logo */
    transition: all var(--transition-speed) var(--transition-timing);
}

.header .logo:hover {
    filter: drop-shadow(0 0 10px var(--color-accent-glow));
    transform: scale(1.05);
}

.header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header nav ul li {
    margin-left: var(--spacing-lg);
}

.header nav ul li a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed) var(--transition-timing);
}

.header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary); /* Vibrant teal underline */
    transition: width var(--transition-speed) var(--transition-timing);
}

.header nav ul li a:hover::after,
.header nav ul li a.active::after {
    width: 100%;
}

.header nav ul li a.active {
    color: var(--color-secondary);
    text-shadow: 0 0 5px var(--color-accent-glow);
}


/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    padding: var(--spacing-xl) var(--spacing-lg);
    color: var(--color-text-dark);
    font-size: 0.9rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 123, 255, 0.1);
}

.footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: var(--spacing-xs);
}

.footer ul li a {
    color: var(--color-text-dark);
    transition: color var(--transition-speed) var(--transition-timing), text-shadow var(--transition-speed) var(--transition-timing);
}

.footer ul li a:hover {
    color: var(--color-secondary);
    text-shadow: 0 0 8px var(--color-accent-glow); /* Glowing text on hover */
}

.footer .social-icons a {
    display: inline-block;
    margin-right: var(--spacing-md);
    font-size: 1.5rem;
    color: var(--color-text-dark);
    transition: color var(--transition-speed) var(--transition-timing), transform var(--transition-speed) var(--transition-timing);
}

.footer .social-icons a:hover {
    color: var(--color-secondary);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--color-accent-glow));
}

.footer .copyright {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 123, 255, 0.05);
    text-align: center;
    color: var(--color-text-dark);
}

/* Cards (Example of Glassmorphism application) */
.card {
    @extend .glass-effect; /* Inherit glassmorphism styles */
    padding: var(--spacing-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.card p {
    color: var(--color-text-dark);
}

/* Hero Section (Abstract Background) */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    background-color: var(--color-background); /* Fallback */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><defs><pattern id="circuit-pattern" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 0 L100 100 M100 0 L0 100" stroke="%23002B4B" stroke-width="0.5" /><circle cx="50" cy="50" r="2" fill="%23002B4B" /></pattern></defs><rect width="100%" height="100%" fill="url(%23circuit-pattern)" /></svg>') repeat;
    opacity: 0.1;
    z-index: 0;
    animation: background-pan 60s linear infinite; /* Subtle pan for circuit board */
    filter: blur(1px);
}

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

/* Dynamic background elements for hero */
.hero-section .animated-bg-element {
    position: absolute;
    background-color: var(--color-secondary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(50px);
    animation: float-glow 15s infinite ease-in-out alternate;
    z-index: 1;
}

.hero-section .animated-bg-element:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.hero-section .animated-bg-element:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 10%;
    animation-delay: 5s;
    background-color: var(--color-primary);
}
.hero-section .animated-bg-element:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float-glow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    50% { transform: translate(20px, 30px) scale(1.05); opacity: 0.15; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
}

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

/* General utility for spacing and layout (if not using Tailwind for every div) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

/* Subtle glowing elements (for icons, small details) */
.glowing-text {
    text-shadow: 0 0 5px var(--color-accent-glow), 0 0 10px var(--color-accent-glow);
}

.glowing-icon {
    filter: drop-shadow(0 0 5px var(--color-accent-glow));
    transition: filter var(--transition-speed) var(--transition-timing);
}

.glowing-icon:hover {
    filter: drop-shadow(0 0 10px var(--color-accent-glow));
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header {
        padding: var(--spacing-sm);
    }

    .header nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: var(--spacing-sm);
    }

    .header nav ul li {
        margin: var(--spacing-xs) 0;
    }

    .footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer .social-icons {
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 1rem;
    }

    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-xl) var(--spacing-md);
    }
}



/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}