/* ══════════════════════════════════════════
   Digital Agency — Main Stylesheet
   ══════════════════════════════════════════ */

:root {
    --dark-bg: #0a1628;
    --dark-blue: #0d2847;
    --medium-blue: #0f3460;
    --accent-cyan: #00d4ff;
    --accent-light-cyan: #4aefff;
    --teal: #1a8a9e;
    --white: #ffffff;
    --light-gray: #c8d6e5;
    --diamond-border: rgba(0, 212, 255, 0.3);
    --section-overlay: rgba(10, 22, 40, 0.85);
    --grid-dots: rgba(0, 212, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
}

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .stat-number {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.04em;
}

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

/* ── ANIMATED BACKGROUND ── */
.tech-bg {
    position: relative;
    overflow: hidden;
}
.tech-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0,212,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15,52,96,0.4) 0%, transparent 40%),
        linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-blue) 50%, var(--dark-bg) 100%);
    z-index: 0;
}
.tech-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--grid-dots) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    opacity: 0.5;
}
.tech-bg > * { position: relative; z-index: 1; }

/* ── CODE RAIN OVERLAY ── */
.code-rain {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 120px,
            rgba(0,212,255,0.015) 120px,
            rgba(0,212,255,0.015) 121px
        );
    z-index: 0;
    pointer-events: none;
}

/* ── DIAMOND SHAPE ── */
.diamond {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.diamond-border {
    position: relative;
}
.diamond-border::before {
    content: '';
    position: absolute;
    inset: -3px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, var(--accent-cyan), var(--teal), var(--accent-cyan));
    z-index: -1;
}

/* ── GEOMETRIC ACCENTS ── */
.geo-accent {
    position: absolute;
    border: 2px solid var(--diamond-border);
    transform: rotate(45deg);
    pointer-events: none;
}

/* ── NAVIGATION ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--teal));
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.logo img,
.custom-logo {
    max-height: 40px;
    width: auto;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    color: var(--accent-cyan);
}
.nav-links a:hover::after,
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after {
    width: 100%;
}

/* WP menu reset */
.nav-links li { list-style: none; }
.nav-links .sub-menu { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.95;
    margin-bottom: 20px;
}
.hero h1 span {
    display: block;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-light-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 16px;
}
.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--light-gray);
    max-width: 480px;
    margin-bottom: 32px;
}
.hero-diamond-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}
.hero-diamond {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-diamond-inner {
    width: 85%;
    height: 85%;
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(15,52,96,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.hero-diamond-icon {
    width: 64px; height: 64px;
    border: 2px solid var(--accent-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-diamond img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gear-svg { fill: var(--accent-cyan); }

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--teal));
    color: var(--dark-bg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 0;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,212,255,0.3);
}

.website-url {
    margin-top: 24px;
    font-size: 0.85rem;
    color: var(--light-gray);
    letter-spacing: 0.05em;
}

/* ── SECTION STYLES ── */
section {
    padding: 100px 0;
}
.section-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
}
.section-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--light-gray);
    max-width: 600px;
}
.cyan-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    margin: 24px 0;
}

/* ── ABOUT / WELCOME ── */
.about {
    border-top: 1px solid rgba(0,212,255,0.1);
}
.about .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}
.founder-card {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 8px;
}
.founder-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--medium-blue), var(--teal));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    overflow: hidden;
}
.founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-name {
    font-weight: 700;
    font-size: 1.05rem;
}
.founder-title {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-style: italic;
}
.founder-text {
    font-size: 0.85rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin-top: 8px;
}

.about-diamond-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.about-diamond {
    width: 340px;
    height: 340px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-diamond img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-diamond-label {
    text-align: center;
    font-family: 'Bebas Neue', sans-serif;
}
.about-diamond-label .big { font-size: 2rem; display: block; }
.about-diamond-label .small {
    font-size: 1rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── MISSION & VISION ── */
.mission {
    background: linear-gradient(180deg, rgba(13,40,71,0.4) 0%, var(--dark-bg) 100%);
}
.mission .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.mission-card {
    padding: 40px;
    background: rgba(0,212,255,0.03);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.mission-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-cyan), transparent);
}
.mission-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--accent-cyan);
}

/* ── STATS / PROJECTS COMPLETED ── */
.stats {
    border-top: 1px solid rgba(0,212,255,0.1);
}
.stats .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.stat-card {
    padding: 24px;
    background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,212,255,0.02));
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 8px;
    text-align: center;
}
.stat-number {
    font-size: 2.4rem;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-light-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--light-gray);
    margin-top: 4px;
}

.stats-diamond-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}
.stats-diamond {
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.stats-diamond img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stats-diamond-inner {
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 100px;
}
.chart-bar {
    width: 16px;
    background: linear-gradient(0deg, var(--teal), var(--accent-cyan));
    border-radius: 3px 3px 0 0;
    animation: barGrow 1.5s ease-out forwards;
}
@keyframes barGrow {
    from { height: 0; }
}

/* ── TEAM ── */
.team {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(13,40,71,0.3) 100%);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}
.team-card {
    text-align: center;
    padding: 32px 20px;
    background: rgba(0,212,255,0.03);
    border: 1px solid rgba(0,212,255,0.1);
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
}
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--medium-blue), var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-cyan);
    border: 2px solid rgba(0,212,255,0.2);
    overflow: hidden;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-name {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.team-role {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    font-style: italic;
}

/* ── PROJECTS ── */
.projects {
    border-top: 1px solid rgba(0,212,255,0.1);
}
.projects .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.project-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}
.project-card {
    padding: 28px;
    border-radius: 8px;
    transition: transform 0.3s;
}
.project-card:hover { transform: translateY(-4px); }
.project-card:nth-child(odd) {
    background: linear-gradient(135deg, var(--accent-cyan), #38d9a9);
    color: var(--dark-bg);
}
.project-card:nth-child(even) {
    background: linear-gradient(135deg, var(--medium-blue), var(--teal));
}
.project-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.project-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.9;
}

.projects-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.projects-diamond {
    width: 380px;
    height: 380px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.projects-diamond img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── GOALS ── */
.goals {
    background: linear-gradient(180deg, rgba(13,40,71,0.3) 0%, var(--dark-bg) 100%);
}
.goals .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.goal-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px;
    background: linear-gradient(90deg, rgba(0,212,255,0.06), transparent);
    border-left: 3px solid var(--accent-cyan);
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}
.goal-stat {
    flex-shrink: 0;
    text-align: center;
}
.goal-stat .stat-number { font-size: 2.8rem; }
.goal-stat .stat-label { margin-top: 0; }
.goal-row h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.goals-diamond-wrapper {
    display: flex;
    justify-content: center;
}
.goals-diamond {
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.goals-diamond img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── CTA ── */
.cta {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid rgba(0,212,255,0.1);
}
.cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}
.cta p {
    color: var(--light-gray);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ── FOOTER ── */
.site-footer {
    padding: 48px 0 32px;
    border-top: 1px solid rgba(0,212,255,0.1);
    text-align: center;
}
.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    list-style: none;
    margin-bottom: 24px;
}
.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent-cyan); }
.footer-copy {
    font-size: 0.75rem;
    color: rgba(200,214,229,0.5);
}

/* ── WP ADMIN BAR FIX ── */
.admin-bar .navbar {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

/* ── ANIMATIONS ── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
    .hero .container,
    .about .container,
    .stats .container,
    .projects .container,
    .goals .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-diamond-wrapper,
    .about-diamond-wrapper,
    .stats-diamond-wrapper,
    .projects-visual,
    .goals-diamond-wrapper {
        display: none;
    }
    .mission .container {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10,22,40,0.98);
        padding: 24px;
        gap: 16px;
        backdrop-filter: blur(12px);
    }
    section { padding: 60px 0; }
    .team-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .project-cards { grid-template-columns: 1fr; }
}
