/* CSS Variables */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary-blue: #003366;
    /* Brand Blue */
    --primary-grey: #b0b0b0;
    /* Brand Grey */
    --accent-glow: #38bdf8;
    /* Cyan 400 for glow effects */
    --text-light: #f8fafc;
    --text-grey: #cbd5e1;
    --card-bg: rgba(30, 41, 59, 0.7);
    /* Transparent for glassmorphism */
    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-grey);
}

@media (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 51, 102, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: #004080;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(0, 51, 102, 0.6);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 10px 24px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-light);
}

/* Header */
.header {
    padding: 20px 0;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    /* Visual Fix: Make logo white to pop on dark/blue backgrounds */
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Dynamic Animated Gradient Background */
    background: linear-gradient(-45deg, #020617, #003366, #0f172a, #001f3f);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding-top: 60px;
    /* Offset for fixed header */
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Overlay pattern for texture */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 40% 20%, hsla(218, 100%, 70%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(340, 100%, 76%, 0.05) 0px, transparent 50%);
    pointer-events: none;
}

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

.sub-headline {
    font-size: 1.4rem;
    color: var(--text-grey);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Glassmorphism Cards (Shared) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

/* Introduction Section */
.introduction {
    padding: 100px 0;
    position: relative;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
}

.intro-content h2 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.intro-content .lead {
    font-size: 1.35rem;
    color: var(--primary-grey);
    margin-bottom: 2rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icon-wrapper {
    font-size: 2rem;
    color: var(--primary-grey);
    margin-bottom: 20px;
    /* Add library agnostic styling if FontAwesome fails to load */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    width: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

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

/* Technovo Difference Section */
.technovo-difference {
    padding: 100px 0;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.difference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.diff-item {
    padding: 20px;
}

.diff-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.2));
}

.diff-item h4 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 80px 0;
    background-color: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--primary-grey);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer a:hover {
    color: white;
    border-bottom-color: white;
}

.footer-legal p {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* Section Specific transition delays for staggered effect if desired, 
   but basic scroll reveal is usually sufficient for "clean" feel. */

@media (prefers-reduced-motion) {
    .hidden {
        transition: none;
        opacity: 1;
        transform: none;
    }
}