/* =========================================================
   Cronova Solutions — Main Stylesheet
   ========================================================= */

/* --- CSS Variables --- */
:root {
    --bg: #060608;
    --surface: #0e0e12;
    --border: rgba(255,255,255,0.07);
    --text: #f0f0f0;
    --muted: #8a8a9a;
    --primary: #00F0FF;
    --secondary: #B200FF;
    --glass: rgba(255,255,255,0.03);
    --font: 'Outfit', sans-serif;
    --ease: all 0.3s ease;
    --header-h: 76px;
    --radius: 14px;
}

[data-theme="light"] {
    --bg: #f0f2f5;
    --surface: #ffffff;
    --border: rgba(0,0,0,0.08);
    --text: #0d0d0d;
    --muted: #555;
    --primary: #0062cc;
    --secondary: #6f00cc;
    --glass: rgba(255,255,255,0.6);
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; transition: var(--ease); }
ul { list-style:none; }
p { color: var(--muted); margin-bottom:1rem; }

/* --- Typography --- */
h1,h2,h3,h4 { font-weight:700; line-height:1.2; margin-bottom:0.75rem; }

h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-align: center;
    margin-bottom: 3rem;
}

h3 { font-size: 1.3rem; }

/* --- Layout --- */
.container { max-width:1180px; margin:0 auto; padding:0 1.5rem; }
section { padding: 5rem 0; }

/* --- Glass Card --- */
.glass {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--ease);
    font-family: var(--font);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 18px rgba(0,240,255,0.25);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 0 28px rgba(0,240,255,0.5); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background:rgba(0,240,255,0.08); transform:translateY(-2px); }

/* --- Icon Button --- */
.icon-btn {
    display:flex; align-items:center; justify-content:center;
    width:40px; height:40px; border-radius:50%;
    background:var(--glass); border:1px solid var(--border);
    cursor:pointer; color:var(--text);
    transition:var(--ease);
}
.icon-btn:hover { border-color:var(--primary); color:var(--primary); }

/* --- Loader --- */
.loader {
    position:fixed; inset:0; z-index:9999;
    background:var(--bg);
    display:flex; align-items:center; justify-content:center;
    flex-direction:column; gap:1rem;
    transition:opacity 0.5s, visibility 0.5s;
}
.loader.hidden { opacity:0; visibility:hidden; pointer-events:none; }
.loader-ring {
    width:52px; height:52px; border-radius:50%;
    border:3px solid var(--border);
    border-top-color:var(--primary);
    animation:spin 0.9s linear infinite;
}
.loader p { color:var(--primary); font-size:0.85rem; letter-spacing:2px; text-transform:uppercase; }
@keyframes spin { to { transform:rotate(360deg); } }

/* ===== NAVBAR ===== */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.35s, box-shadow 0.35s;
}

header.scrolled {
    background: rgba(6,6,8,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] header.scrolled { background: rgba(255,255,255,0.9); }

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.logo img { height:40px; width:auto; object-fit:contain; }
.logo-fallback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight:700;
    color: var(--text);
}
.logo-fallback span { color:var(--text); }

.footer-logo img { height:36px; }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-links a {
    padding: 0.45rem 0.9rem;
    border-radius: 7px;
    font-weight:500;
    font-size:0.95rem;
    color:var(--muted);
    transition:var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color:var(--text); background:var(--glass); }

/* Nav actions */
.nav-actions { display:flex; align-items:center; gap:0.75rem; flex-shrink:0; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none; border: none;
    padding: 6px;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: var(--ease);
}
.hamburger.active span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity:0; }
.hamburger.active span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Mobile menu drawer */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-h); left:0; right:0;
    background: rgba(6,6,8,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    z-index: 999;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
}
[data-theme="light"] .mobile-menu { background: rgba(255,255,255,0.97); }

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}
.mobile-menu ul { display:flex; flex-direction:column; gap:0.5rem; }
.mobile-menu a {
    display:block; padding:0.75rem 1rem;
    border-radius:8px; font-weight:500;
    color:var(--text);
    transition:var(--ease);
}
.mobile-menu a:hover { background:var(--glass); color:var(--primary); }

/* ===== PAGE HEADER ===== */
.page-header {
    padding: calc(var(--header-h) + 5rem) 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content:'';
    position:absolute; inset:0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,240,255,0.08), transparent);
    pointer-events:none;
}
.page-header .container { position:relative; z-index:1; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 4rem) 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute; inset:0;
    z-index: 0;
    overflow: hidden;
}

/* Animated cyber grid */
.hero-bg::before {
    content:'';
    position:absolute; inset:0;
    background-image:
        linear-gradient(rgba(0,240,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,240,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-bg::after {
    content:'';
    position:absolute; inset:0;
    background: radial-gradient(ellipse 70% 60% at 80% 40%, rgba(178,0,255,0.06), transparent),
                radial-gradient(ellipse 60% 50% at 20% 70%, rgba(0,240,255,0.06), transparent);
}

.particle {
    position:absolute;
    background:var(--primary);
    border-radius:50%;
    pointer-events:none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.hero p {
    font-size: clamp(1rem,2vw,1.2rem);
    color: var(--muted);
    max-width: 580px;
    margin-bottom: 2rem;
}

.hero-btns { display:flex; flex-wrap:wrap; gap:1rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    max-width: 600px;
}

.stat-card {
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: var(--radius);
}
.stat-number {
    font-size: 2.2rem;
    font-weight:700;
    color:var(--primary);
    line-height:1;
    margin-bottom:0.4rem;
}
.stat-label { font-size:0.85rem; color:var(--muted); }

/* ===== GRID ===== */
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1.75rem; }
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(400px,1fr)); gap:1.75rem; }

/* ===== CARDS ===== */
.card {
    padding: 2rem;
    display:flex;
    flex-direction:column;
    gap:0.5rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
    transform:translateY(-8px);
    box-shadow:0 12px 40px rgba(0,240,255,0.08);
    border-color: rgba(0,240,255,0.3);
}
.card-icon {
    width:48px; height:48px; margin-bottom:0.5rem;
    color:var(--primary);
}
.card h3 { color:var(--text); }
.card ul { padding-left:1.2rem; color:var(--muted); display:flex; flex-direction:column; gap:0.3rem; font-size:0.9rem; }
.card .btn { align-self:flex-start; margin-top:auto; padding-top:0.75rem; }

/* ===== CYBER BADGE ===== */
.cyber-badge {
    display:inline-block;
    padding:0.35rem 1rem;
    border:1px solid var(--primary);
    background:rgba(0,240,255,0.07);
    color:var(--primary);
    border-radius:20px;
    font-size:0.75rem;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:1.25rem;
}

/* ===== SECTION HEADING ===== */
.section-heading { text-align:center; margin-bottom:3rem; }
.section-heading p { max-width:560px; margin:0 auto; }

/* ===== TEAM ===== */
.team-photo {
    width:100%; height:260px;
    background: linear-gradient(135deg,#0e0e18,#1a0a2e);
    border-radius:10px;
    display:flex; align-items:center; justify-content:center;
    color:var(--muted); font-size:0.85rem;
    margin-bottom:1.25rem;
    overflow:hidden;
    border: 1px solid var(--border);
}
.team-photo img { width:100%; height:100%; object-fit:cover; }
.team-role { color:var(--primary); font-weight:600; font-size:0.9rem; margin-bottom:0.5rem; }
.team-social { display:flex; gap:0.75rem; margin-top:1rem; }
.team-social a {
    width:36px; height:36px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    background:var(--glass); border:1px solid var(--border);
    color:var(--muted); transition:var(--ease);
}
.team-social a:hover { background:var(--primary); color:#000; border-color:var(--primary); }

/* ===== PROJECT CARD ===== */
.project-thumb {
    width:100%; height:190px;
    background:#0a0a10;
    display:flex; align-items:center; justify-content:center;
    color:var(--muted); font-size:0.85rem;
    border-bottom:1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow:hidden;
}
.project-thumb img { width:100%; height:100%; object-fit:cover; }
.project-body { padding:1.5rem; display:flex; flex-direction:column; gap:0.75rem; }
.project-body h3 { color:var(--text); margin:0; }
.project-btns { display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:0.5rem; }

/* Tech badges */
.tech-badges { display:flex; flex-wrap:wrap; gap:0.4rem; }
.tech-badge {
    font-size:0.72rem; padding:0.2rem 0.55rem;
    background:rgba(255,255,255,0.06); border-radius:4px;
    color:var(--muted); border:1px solid var(--border);
}

/* ===== TIMELINE ===== */
.timeline { position:relative; max-width:760px; margin:0 auto; }
.timeline::before {
    content:''; position:absolute;
    left:50%; top:0; bottom:0; width:2px;
    background:linear-gradient(var(--primary),var(--secondary));
    transform:translateX(-50%);
}
.tl-item { display:flex; gap:2rem; padding:1rem 0; }
.tl-item:nth-child(even) { flex-direction:row-reverse; }
.tl-dot {
    position:relative; z-index:1;
    flex-shrink:0;
    width:44px; height:44px; border-radius:50%;
    background:var(--bg); border:3px solid var(--primary);
    display:flex; align-items:center; justify-content:center;
    color:var(--primary); font-weight:700; font-size:0.8rem;
    margin-top:0.5rem;
    align-self: flex-start;
}
.tl-content { flex:1; }
.tl-year { color:var(--primary); font-size:0.8rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; margin-bottom:0.25rem; }

/* ===== TESTIMONIALS ===== */
.quote-mark { font-size:4rem; line-height:1; color:var(--primary); opacity:0.15; margin-bottom:-1rem; }
.testimonial-author { display:flex; align-items:center; gap:1rem; margin-top:1.25rem; }
.author-avatar {
    width:48px; height:48px; border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    flex-shrink:0;
}
.author-name { font-weight:700; font-size:0.95rem; }
.author-title { color:var(--muted); font-size:0.82rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom:1.25rem; }
.form-group label { display:block; font-weight:600; font-size:0.9rem; margin-bottom:0.45rem; color:var(--text); }
input, textarea, select {
    width:100%; padding:0.85rem 1rem;
    background:var(--glass); border:1px solid var(--border);
    border-radius:8px; color:var(--text);
    font-family:var(--font); font-size:0.95rem;
    outline:none; transition:var(--ease);
}
input:focus, textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(0,240,255,0.1); }
textarea { resize:vertical; min-height:130px; }

/* Newsletter form in footer */
.newsletter-form { display:flex; flex-direction:column; gap:0.75rem; }
.newsletter-form input { margin:0; }

/* ===== CONTACT INFO CARDS ===== */
.contact-info-grid { display:flex; flex-direction:column; gap:1.25rem; }
.contact-info-item { display:flex; align-items:flex-start; gap:1rem; padding:1.25rem; }
.contact-info-item svg { color:var(--primary); flex-shrink:0; margin-top:2px; }
.contact-info-item strong { display:block; margin-bottom:0.2rem; color:var(--text); }
.contact-info-item p { margin:0; font-size:0.9rem; }

/* Map placeholder */
.map-placeholder {
    width:100%; height:360px; border-radius:var(--radius);
    border:1px solid var(--border);
    background:#080810;
    display:flex; align-items:center; justify-content:center;
    color:var(--muted); font-size:0.9rem; flex-direction:column; gap:1rem;
}

/* ===== BLOG ===== */
.blog-card { overflow:hidden; border-radius:var(--radius); display:flex; flex-direction:column; }
.blog-thumb {
    height:190px; background:#0a0a10;
    display:flex; align-items:center; justify-content:center;
    color:var(--muted); font-size:0.85rem;
    border-bottom:1px solid var(--border);
    overflow:hidden;
}
.blog-thumb img { width:100%; height:100%; object-fit:cover; }
.blog-body { padding:1.5rem; display:flex; flex-direction:column; gap:0.75rem; flex:1; }
.blog-meta { display:flex; align-items:center; gap:1rem; font-size:0.82rem; color:var(--muted); }
.blog-body h3 { color:var(--text); margin:0; line-height:1.4; }
.blog-body .btn { align-self:flex-start; margin-top:auto; }

/* Search bar */
.search-bar { position:relative; max-width:480px; margin:0 auto; }
.search-bar svg { position:absolute; left:1rem; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.search-bar input { padding-left:2.75rem; }

/* ===== CTA BANNER ===== */
.cta-banner {
    text-align:center; padding:4rem 2rem;
    background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(178,0,255,0.05));
    border-radius:var(--radius);
    border:1px solid var(--border);
}
.cta-banner h2 { margin-bottom:1rem; }
.cta-banner p { max-width:500px; margin:0 auto 2rem; }
.cta-banner .btn-group { display:flex; justify-content:center; flex-wrap:wrap; gap:1rem; }

/* ===== FOOTER ===== */
footer {
    border-top:1px solid var(--border);
    padding:5rem 0 2rem;
    background:rgba(0,0,0,0.25);
}
.footer-grid {
    display:grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap:2.5rem;
    margin-bottom:3rem;
}
.footer-brand { max-width:340px; }
.footer-desc { font-size:0.9rem; margin:1rem 0; color:var(--muted); }
.footer-col h4 { font-size:1rem; margin-bottom:1.25rem; color:var(--text); }
.footer-col ul { display:flex; flex-direction:column; gap:0.75rem; }
.footer-col ul a { color:var(--muted); font-size:0.9rem; transition:var(--ease); }
.footer-col ul a:hover { color:var(--primary); padding-left:4px; }

.social-links { display:flex; gap:0.75rem; margin-top:1.25rem; }
.social-links a {
    width:38px; height:38px; border-radius:50%;
    background:var(--glass); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    color:var(--muted); transition:var(--ease);
}
.social-links a:hover { background:var(--primary); color:#000; border-color:var(--primary); transform:translateY(-3px); }

.footer-bottom {
    text-align:center; padding-top:2rem;
    border-top:1px solid var(--border);
    font-size:0.85rem; color:var(--muted);
}

/* ===== OPEN POSITIONS ===== */
.position-card {
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:1rem;
    padding:1.5rem 2rem;
    margin-bottom:1rem;
    transition:var(--ease);
}
.position-card:hover { border-color:rgba(0,240,255,0.3); }
.position-info h3 { margin:0 0 0.25rem; font-size:1.1rem; }
.position-info p { margin:0; font-size:0.85rem; }
.position-tags { display:flex; gap:0.5rem; margin-top:0.5rem; flex-wrap:wrap; }
.pos-tag {
    padding:0.15rem 0.6rem; font-size:0.72rem;
    border-radius:4px; border:1px solid var(--border);
    color:var(--muted);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%   { transform:translateY(0) translateX(0); opacity:0.08; }
    50%  { opacity:0.4; }
    100% { transform:translateY(-120px) translateX(60px); opacity:0.08; }
}
@keyframes fadeUp {
    from { opacity:0; transform:translateY(30px); }
    to   { opacity:1; transform:translateY(0); }
}
.gsap-up { will-change:transform; }

.glow-text {
    text-shadow: 0 0 40px rgba(0,240,255,0.25);
}

/* Active nav link */
.nav-links a.active { color:var(--primary) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
    .footer-grid { grid-template-columns:1fr 1fr; }
    .footer-brand { grid-column:1/-1; max-width:100%; }
}

@media (max-width:768px) {
    :root { --header-h: 68px; }

    .nav-links { display:none !important; }
    .nav-cta { display:none !important; }
    .hamburger { display:flex !important; }
    .mobile-menu { display:block; }

    h2 { margin-bottom:2rem; }
    section { padding:3.5rem 0; }

    .hero { padding:calc(var(--header-h) + 3rem) 0 4rem; }
    .hero-stats { grid-template-columns:1fr 1fr; gap:1rem; }

    .page-header { padding:calc(var(--header-h) + 3rem) 0 3rem; }

    .grid, .grid-2 { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr; }

    .timeline::before { left:22px; }
    .tl-item, .tl-item:nth-child(even) { flex-direction:row; gap:1rem; }
    .tl-dot { width:36px; height:36px; font-size:0.7rem; }
    .tl-content { flex:1; }

    .cta-banner { padding:2.5rem 1rem; }
    .contact-info-grid .glass { padding:1rem; }
}

@media (max-width:480px) {
    .hero-stats { grid-template-columns:1fr; }
    .hero-btns { flex-direction:column; }
    .hero-btns .btn { width:100%; justify-content:center; }
    .stat-number { font-size:1.8rem; }
}
