* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --tevora-blue: #5BC0EB;
    --tevora-dark: #1a1a2e;
    --tevora-light: #f8f9fa;
    --accent: #00d4ff;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #fff;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(91, 192, 235, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: transparent;
    /* removed blue frame behind logo */
    clip-path: none;
    /* disable decorative clip so PNG displays without colored shape */
    border-radius: 8px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* fill the icon area so no transparent edges show */
    display: block;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--tevora-dark);
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--tevora-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--tevora-blue);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--tevora-blue);
}

.nav-cta {
    background: var(--tevora-blue);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--tevora-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(91, 192, 235, 0.3);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--tevora-dark);
    cursor: pointer;
}

/* Page Container */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 3rem 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5fb 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(91, 192, 235, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--tevora-dark);
    letter-spacing: -2px;
}

.hero-content .highlight {
    color: var(--tevora-blue);
    position: relative;
    display: inline-block;
}

.hero-content p {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--tevora-blue);
    color: white;
    box-shadow: 0 10px 30px rgba(91, 192, 235, 0.3);
}

.btn-primary:hover {
    background: var(--tevora-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(91, 192, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--tevora-blue);
    border: 2px solid var(--tevora-blue);
}

.btn-secondary:hover {
    background: var(--tevora-blue);
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.hero-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circuit-node {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--tevora-blue);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--tevora-blue);
    animation: pulse-node 2s ease-in-out infinite;
}

@keyframes pulse-node {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--tevora-blue), transparent);
    height: 2px;
    animation: flow 3s linear infinite;
}

@keyframes flow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Features Section */
.features {
    padding: 8rem 3rem;
    background: white;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    color: var(--tevora-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--tevora-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    border-color: var(--tevora-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(91, 192, 235, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--tevora-blue), #00d4ff);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.6rem;
    color: var(--tevora-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 6rem 3rem;
    background: linear-gradient(135deg, var(--tevora-dark) 0%, #16213e 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--tevora-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Services Page */
.services-hero {
    padding: 12rem 3rem 6rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5fb 100%);
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 6rem 3rem;
}

.service-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(91, 192, 235, 0.2);
}

.service-image {
    height: 250px;
    background: linear-gradient(135deg, var(--tevora-blue), #00d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.service-content {
    padding: 3rem;
}

.service-content h3 {
    font-size: 2rem;
    color: var(--tevora-dark);
    margin-bottom: 1rem;
}

.service-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--tevora-blue);
    font-weight: 700;
}

/* About Page */
.about-section {
    padding: 8rem 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-content h2 {
    font-size: 3rem;
    color: var(--tevora-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-image {
    height: 400px;
    background: linear-gradient(135deg, var(--tevora-blue), #00d4ff);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.value-card {
    text-align: center;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h4 {
    font-size: 1.4rem;
    color: var(--tevora-dark);
    margin-bottom: 1rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 6rem 3rem;
}

.team-member {
    text-align: center;
    transition: all 0.3s;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--tevora-blue), #00d4ff);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* image inside team-photo should cover the box */
.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* fallback initials / emoji shown when image missing (kept visible by default) */
.team-photo .team-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    z-index: 1;
    pointer-events: none;
}

/* hide initials when an image loaded successfully */
.team-photo img+.team-initials {
    display: none;
}

.team-member:hover .team-photo {
    transform: scale(1.05);
}

.team-member h4 {
    font-size: 1.3rem;
    color: var(--tevora-dark);
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--tevora-blue);
    font-weight: 600;
}

/* Contact Page */
.contact-section {
    padding: 12rem 3rem 6rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9f5fb 100%);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.1);
}

.contact-info {
    padding: 4rem;
    background: linear-gradient(135deg, var(--tevora-dark) 0%, #16213e 100%);
    color: white;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--tevora-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-form {
    padding: 4rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--tevora-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--tevora-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: var(--tevora-dark);
    color: white;
    padding: 4rem 3rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--tevora-blue);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--tevora-blue);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-container,
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .services-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem !important;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* ===== EPIC/ADDITIONAL STYLES ===== */
/* top scroll progress bar */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tevora-blue), var(--accent));
    width: 0%;
    z-index: 1200;
    transition: width 0.15s linear;
    box-shadow: 0 0 20px rgba(91, 192, 235, 0.25);
}

/* floating epic glow in hero */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 30% 30%, rgba(91, 192, 235, 0.18), transparent 35%), radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.08), transparent 35%);
    filter: blur(70px);
    top: -120px;
    right: -120px;
    z-index: 0;
    pointer-events: none;
    animation: floaty 9s ease-in-out infinite;
}

@keyframes floaty {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(24px) rotate(6deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* mobile nav open state */
.nav-open .nav-links {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    z-index: 1100;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.nav-toggle-active {
    transform: rotate(90deg);
}

/* dark mode support (simple vars override) */
.dark {
    --tevora-blue: #57f3d7;
    --tevora-dark: #e6eef6;
    --tevora-light: #061025;
    background: linear-gradient(135deg, #030714 0%, #071024 100%);
    color: #e6eef6;
}

.dark nav {
    background: rgba(5, 10, 20, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.dark .btn-primary {
    background: var(--tevora-blue);
    color: #021018;
}

/* dark mode toggle button */
.dark-toggle {
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.06);
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.dark-toggle:hover {
    transform: translateY(-3px);
}

/* stat number subtle pop */
.stat-number.animate {
    transform: scale(1.08);
    transition: transform 0.6s cubic-bezier(.2, .9, .2, 1);
}

/* small ribbon under hero */
.epic-ribbon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    background: linear-gradient(90deg, rgba(91, 192, 235, 0.12), rgba(0, 212, 255, 0.08));
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    color: var(--tevora-dark);
    box-shadow: 0 10px 40px rgba(91, 192, 235, 0.08);
    z-index: 2;
}

@media (max-width:968px) {
    .hero-glow {
        display: none;
    }

    .nav-open .nav-links {
        top: 64px;
    }
}