@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
    --bg-color: #0a192f;
    --text-color: #e6f1ff;
    --accent-color: #64ffda;
    --secondary-bg: #112240;
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 50% 10%, #112240 0%, #0a192f 100%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Mesh Effect (Pseudo-element) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(100, 255, 218, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(230, 241, 255, 0.02) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    color: var(--text-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
}

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

/* Header */
header {
    background-color: #0a192f;
    /* Solid background for better readability */
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Standard size */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #e6f1ff;
    /* Brighter white */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover,
.nav-links a.highlight {
    color: var(--accent-color);
}

.cta-btn {
    border: 1px solid var(--accent-color);
    padding: 10px 25px;
    border-radius: 4px;
    color: var(--accent-color) !important;
    background: rgba(100, 255, 218, 0.05);
}

.cta-btn:hover {
    background-color: rgba(100, 255, 218, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Darker overlay for better text contrast */
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.9)), url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding-top: 100px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    /* Centered layout for impact */
}

.hero h5 {
    color: var(--accent-color);
    font-family: var(--body-font);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5rem;
    /* Adjustable for mobile */
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

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

.hero p {
    font-size: 1.2rem;
    color: #ccd6f6;
    /* Brighter than original */
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #e6f1ff;
    position: relative;
}


.section-title::after {
    content: '';
    height: 1px;
    background-color: #233554;
    flex-grow: 1;
    max-width: 300px;
    margin-left: 20px;
}

/* Services Cards Enhancement */
/* Services Cards Enhancement */
.service-card {
    background-color: #112240;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Content padding handled by inner div */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.4);
}

.card-img-holder {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img-holder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 34, 64, 0) 0%, #112240 100%);
}

.card-content {
    padding: 30px;
    position: relative;
    flex-grow: 1;
}

.card-content i.highlight {
    position: absolute;
    top: -40px;
    right: 20px;
    background: #0a192f;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-color);
    font-size: 1.5rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 2;
}

.service-card:hover .card-content i.highlight {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.card-content h3 {
    margin-top: 10px;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #e6f1ff;
}

.service-card p {
    color: #a8b2d1;
    /* Lighter than #8892b0 */
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (max-width: 768px) {
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grid items */
.service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.service-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* Refined Typography & Spacing */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

.section-title {
    margin-bottom: 60px;
}

/* Blog Grid Refinements */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

/* Floating Animation */
.floating-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.2) 0%, rgba(10, 25, 47, 0) 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.float-item {
    position: absolute;
    background: #112240;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.item-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: float 6s ease-in-out infinite;
}

.item-2 {
    bottom: 20px;
    left: 0;
    animation: float 6s ease-in-out infinite 2s;
}

.item-3 {
    bottom: 20px;
    right: 0;
    animation: float 6s ease-in-out infinite 4s;
}

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

    50% {
        transform: translateY(-20px) translateX(-50%);
    }

    100% {
        transform: translateY(0px) translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: #8892b0;
    background-color: #020c1b;
    border-top: 1px solid #112240;
}

/* Brand Logo Styling */
.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    background: linear-gradient(to right, #64ffda, #e6f1ff, #64ffda);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(100, 255, 218, 0.3));
    animation: shine 5s linear infinite;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.brand-text:hover {
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.8));
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--accent-color);
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.3s ease;
    padding: 10px;
    z-index: 1100;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .container {
        padding: 0 40px;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Add "MENU" text after the icon dynamically via CSS if possible, but easier via HTML.
       Let's stick to CSS refinement for now. */
    .menu-toggle::before {
        content: 'MENU';
        font-size: 0.8rem;
        font-family: var(--heading-font);
        letter-spacing: 1px;
    }

    .brand-text {
        font-size: 2.2rem !important;
        letter-spacing: 2px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: #0a192f;
        /* Solid background for clarity */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 50px;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 2000;
        /* Higher than header */
        gap: 30px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.8rem;
        display: block;
        padding: 10px;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    /* Grids */
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .section-title::after {
        display: none;
    }

    /* Hide decorative items */
    .floating-container {
        display: none !important;
    }

    .hero-visual {
        display: none !important;
        /* Save space on mobile */
    }
}

@media (max-width: 480px) {
    .brand-text {
        font-size: 1.8rem !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    section {
        padding: 50px 0;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
        display: block;
    }
}