:root {
    --bg-dark: #020617;
    --bg-main: #0f172a;
    --primary: #38bdf8;
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --border: #1e293b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-x: hidden;
}

body.page-loaded {
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

img {
    max-width: 100%;
    height: auto;
}

.logo-box {
    display: flex;
    align-items: center;
}

/* Logo image */
.logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

/* Hover effect */
.logo-link:hover .logo-img {
    transform: scale(1.1);
}

/* Tagline */
.tagline {
    font-size: 12px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;   /* smaller on mobile */
    }

    .tagline {
        font-size: 10px;
        text-align: center;
    }
}



.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding: 64px 0 34px;
}

.footer-brand-link {
    display: inline-flex;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo {
    width: 176px;
    height: auto;
}

.footer-brand p {
    max-width: 360px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.footer-column h4 {
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    width: fit-content;
    margin-bottom: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-main);
    transform: translateX(6px);
}

.footer-column p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-column p a {
    display: inline;
    margin: 0;
    color: inherit;
}

.footer-column i {
    width: 16px;
    margin-top: 4px;
    color: var(--primary);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #020617;
    transform: translateY(-4px);
}

.footer-bottom {
    padding: 24px 0 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom strong {
    color: var(--text-main);
}

.footer-tagline {
    margin-top: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand p {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 56px 0 28px;
    }

    .footer-brand,
    .footer-column {
        text-align: center;
    }

    .footer-brand-link,
    .footer-column a {
        width: auto;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-column p,
    .social-icons {
        justify-content: center;
    }

    .footer-column p {
        text-align: left;
    }
}



/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    position: relative;
}

/* LOGO + TAGLINE */
.logo-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
}

.tagline {
    font-size: 9.5px;
    color: var(--text-muted);
    letter-spacing: 0.6px;
}

/* LOGO LINK */
.logo-link {
    text-decoration: none;
}

.logo-link:hover .logo {
    opacity: 0.9;
}


/* REMOVE UNDERLINE FROM LOGO LINK */
.logo-link,
.logo-link:hover,
.logo-link:focus,
.logo-link:active {
    text-decoration: none !important;
    border: none;
}

/* EXTRA SAFETY: prevent underline on children */
.logo-link * {
    text-decoration: none !important;
}


.nav {
    display: flex;
    align-items: center;
}

.nav a {
    color: var(--text-main);
    margin-left: 24px;
    padding: 4px 0;
    text-decoration: none;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: -6px;
    left: 0;
    transition: 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

/* MOBILE MENU ICON */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-main);
    margin: 4px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* HERO */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at top right, rgba(56,189,248,0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(56,189,248,0.1), transparent 40%);
}

.hero h2 {
    font-size: 52px;
    font-weight: 800;
}

.hero p {
    max-width: 650px;
    margin: 20px auto;
    color: var(--text-muted);
}

.hero-buttons {
    margin-top: 35px;
}

/* BUTTONS */
.btn {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 6px;
    display: inline-block;
    transition: 0.3s;
}

.primary {
    background: var(--primary);
    color: #020617;
    box-shadow: 0 10px 30px rgba(56,189,248,0.35);
}

.primary:hover {
    transform: translateY(-4px);
}

.secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
}




/* SECTIONS */
section {
    padding: 90px 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 50px;
}

.section-intro p {
    color: #9aa6bd;
    max-width: 600px;
    margin: 10px auto 0;
}





/* ABOUT */
.about {
    text-align: center;
}

.about h3 {
    font-size: 34px;
}




/* SERVICES */
.services {
    background: var(--bg-dark);
}

.services h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 34px;
}

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

.service-card {
    background: var(--bg-main);
    padding: 35px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}




/* WHY US */
.why-us {
    text-align: center;
}

.why-us ul {
    list-style: none;
    max-width: 500px;
    margin: 30px auto 0;
}

.why-us li {
    padding: 12px;
    border-bottom: 1px dashed var(--border);
}

/* CTA */
.cta {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    color: #020617;
    text-align: center;
}

.cta .btn.primary {
    color: #000000;
    background: linear-gradient(135deg, #facc15, #f59e0b);
    border: 1px solid transparent;
    box-shadow: 0 14px 28px rgba(250, 204, 21, 0.35);
}

.cta .btn.primary:hover,
.cta .btn.primary:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #dc2626);
    box-shadow: 0 22px 36px rgba(250, 155, 24, 0.55);
    transform: translateY(-2px) scale(1.03);
}

/* FOOTER */
.footer {
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.12), transparent 34%),
        linear-gradient(180deg, #050b16 0%, #020617 100%);
    color: var(--text-muted);
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .container {
        width: min(100% - 32px, 1200px);
    }

    .navbar .container {
        padding: 14px 0;
    }

    .nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 18px 20px;
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .nav a {
        margin: 0;
        padding: 10px 0;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        padding: 72px 0;
    }

    .hero h2 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn,
    .contact-form .btn,
    .cta .btn {
        width: 100%;
        max-width: 320px;
        margin: 0;
    }

    .about h3,
    .services h3,
    .contact h2,
    .section-intro h2 {
        font-size: clamp(1.85rem, 7vw, 2.2rem);
    }

    .portfolio-hero,
    .about-page {
        padding: 96px 0 48px;
    }

    .portfolio-hero h1,
    .about-page h1 {
        font-size: clamp(2rem, 9vw, 2.625rem);
    }

    .service-card,
    .portfolio-card,
    .founder-card {
        padding: 24px 20px;
    }

    .contact-tabs,
    .portfolio-filters {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .tab-btn,
    .filter-btn {
        margin: 0;
    }

    .tab-btn {
        flex: 1 1 180px;
        text-align: center;
    }

    .founder {
        padding: 72px 0;
    }

    .founder-box {
        gap: 24px;
    }

    .founder-card img {
        width: 112px;
        height: 112px;
    }

}



/* CONTACT FORM */
.contact {
    padding: 90px 0;
    text-align: center;
}

.contact h2 {
    font-size: 34px;
    margin-bottom: 10px;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-main);
    color: var(--text-main);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.success {
    color: #22c55e;
    margin-top: 10px;
}

.error {
    color: #ef4444;
    margin-top: 10px;
}


/* CONTACT TABS */
.contact-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.tab-btn {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.contact-form select {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border);
}


/* AUTO HIDE MESSAGE */
.auto-hide {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.auto-hide.hide {
    opacity: 0;
    transform: translateY(-10px);
}
/* PORTFOLIO */
.portfolio-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 44px;
}

.portfolio-hero p {
    color: var(--text-muted);
    margin-top: 10px;
}

.portfolio {
    padding: 80px 0;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.filter-btn.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: linear-gradient(145deg, #0b1220, #0f172a);
    border-radius: 14px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.portfolio-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.portfolio-content span {
    font-size: 13px;
    color: var(--primary);
}




/* ============================
   FOUNDER / TEAM – PREMIUM UI
============================= */

.founder {
    padding: 80px 0;
    background: linear-gradient(180deg, #070b18 0%, #0b1220 100%);
}

.founder-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px;
    max-width: 900px;
    margin: 0 auto;
}

/* CARD */
.founder-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}

.founder-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 194, 255, 0.4);
    box-shadow: 0 22px 45px rgba(0,0,0,0.45);
}

/* IMAGE */
.founder-card img {
    display: block;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 194, 255, 0.7);
    padding: 3px;
    background: linear-gradient(135deg, #00c2ff, #0077ff);
    margin: 0 auto 16px;
}

/* NAME */
.founder-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

/* ROLE */
.founder-card span {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #00c2ff;
    margin-bottom: 14px;
}

/* BIO */
.founder-card p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #b6c0d1;
    width: 100%;
    margin-bottom: 22px;
}

/* LINKEDIN BUTTON */
.founder-card .btn.secondary {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0,194,255,0.6);
    color: #00c2ff;
    background: transparent;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.founder-card .btn.secondary:hover {
    background: #00c2ff;
    color: #050914;
    box-shadow: 0 10px 25px rgba(0,194,255,0.35);
}

/* FADE-IN ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}
.founder-card:nth-child(1) { transition-delay: 0.1s; }
.founder-card:nth-child(2) { transition-delay: 0.25s; }



/* About Section */
.about-page {
    padding: 120px 0 60px;
    text-align: center;
}

.about-page h1 {
    font-size: 42px;
}

.about-intro {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--text-muted);
}

.about-mission,
.about-values {
    padding: 70px 0;
    text-align: center;
}

.about-values ul {
    list-style: none;
    max-width: 500px;
    margin: 20px auto 0;
}

.about-values li {
    padding: 10px 0;
}



/* HERO ANIMATION */
.hero h2,
.hero p,
.hero .hero-buttons {
    opacity: 0;
    transform: translateY(20px);
}

.hero.animate h2 {
    animation: heroFade 0.8s ease forwards;
}

.hero.animate p {
    animation: heroFade 0.8s ease forwards;
    animation-delay: 0.15s;
}

.hero.animate .hero-buttons {
    animation: heroFade 0.8s ease forwards;
    animation-delay: 0.3s;
}

@keyframes heroFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ROLE WITH ICON */
.founder-card .role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #00c2ff;
    margin-bottom: 14px;
}

.role-icon {
    font-size: 15px;
    line-height: 1;
}



.team-name a {
    text-decoration: none;
    color: inherit;
}

.team-name a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .btn {
        padding: 13px 20px;
    }

    .nav {
        padding: 16px 18px;
    }

    .tab-btn,
    .filter-btn {
        width: 100%;
    }

    .contact-form {
        margin-top: 32px;
    }

    .portfolio {
        padding-top: 64px;
    }
}
