/* ==================== RESET & VARIABLES ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-card-hover: #222840;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-1: #3b82f6;
    --accent-2: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #06b6d4);
    --border-color: rgba(148, 163, 184, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0,0,0,0.3);
    --font: 'Inter', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 1.5rem; font-weight: 800; color: var(--text-primary);
    display: flex; align-items: center; gap: 4px;
}
.nav-logo-img {
    height: 32px; width: auto; display: inline-block; vertical-align: middle;
    margin-right: 4px;
}
.footer-logo-img {
    height: 36px; width: auto; display: inline-block; vertical-align: middle;
    margin-right: 6px;
}
.nav-links {
    list-style: none; display: flex; gap: 32px;
}
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    transition: color 0.3s; position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent-gradient);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span {
    display: block; width: 24px; height: 2px; background: var(--text-primary);
    margin: 5px 0; transition: all 0.3s;
}

/* ==================== HERO ==================== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,14,23,0.92) 0%, rgba(10,14,23,0.7) 50%, rgba(10,14,23,0.85) 100%);
}
.hero-content {
    position: relative; z-index: 1; text-align: center;
    max-width: 800px; padding: 0 24px;
}
.hero-badge {
    display: inline-block; padding: 8px 20px;
    background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3);
    border-radius: 100px; font-size: 0.85rem; font-weight: 500; color: var(--accent-2);
    margin-bottom: 24px;
    animation: fadeInDown 0.8s ease;
}
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1; margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary); max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
    display: flex; gap: 48px; justify-content: center; margin-top: 48px;
    animation: fadeInUp 0.8s ease 0.8s both;
}
.stat { text-align: center; }
.stat-number {
    display: block; font-size: 2rem; font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.85rem; color: var(--text-secondary); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 12px;
    font-family: var(--font); font-size: 0.95rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s; border: none;
}
.btn-primary {
    background: var(--accent-gradient); color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.4);
}
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}
.btn-outline:hover { border-color: var(--accent-1); background: rgba(59,130,246,0.08); }
.btn-full { width: 100%; }

/* ==================== SECTIONS ==================== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block; padding: 6px 16px;
    background: rgba(59,130,246,0.1); border-radius: 100px;
    font-size: 0.8rem; font-weight: 600; color: var(--accent-2);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800; margin-bottom: 12px;
}
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

/* ==================== PRODUCTS ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.product-card {
    background: var(--bg-card); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59,130,246,0.3);
    box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}
.product-img-wrap {
    position: relative; height: 200px; overflow: hidden;
}
.product-img-wrap img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-badge {
    position: absolute; top: 12px; right: 12px;
    padding: 4px 12px; border-radius: 8px;
    background: var(--accent-gradient);
    font-size: 0.75rem; font-weight: 700; color: #fff;
}
.product-info { padding: 20px; }
.product-category {
    font-size: 0.75rem; font-weight: 600; color: var(--accent-2);
    text-transform: uppercase; letter-spacing: 1px;
}
.product-info h3 { font-size: 1.1rem; font-weight: 700; margin: 6px 0 10px; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--accent-1); }

/* ==================== SERVICES ==================== */
.services-section { background: var(--bg-secondary); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 36px 28px; border: 1px solid var(--border-color);
    transition: all 0.4s; text-align: center;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6,182,212,0.3);
    box-shadow: 0 8px 30px rgba(6,182,212,0.1);
}
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ==================== BRANCHES ==================== */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.branch-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 32px; border: 1px solid var(--border-color);
    transition: all 0.4s;
}
.branch-card:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-4px);
}
.branch-icon { font-size: 2rem; margin-bottom: 12px; }
.branch-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.branch-address { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.branch-hours { color: var(--accent-2); font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.branch-phone { color: var(--text-secondary); font-size: 0.85rem; }

/* ==================== CONTACT FORM ==================== */
.contact-section { background: var(--bg-secondary); }
.contact-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 40px; border: 1px solid var(--border-color);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px;
    background: var(--bg-primary); border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: var(--font); font-size: 0.95rem;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-primary); }

.form-success {
    text-align: center; padding: 60px 20px;
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid rgba(6,182,212,0.3);
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 12px; }
.form-success p { color: var(--text-secondary); }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 24px;
}
.footer-main {
    display: flex; justify-content: space-between; gap: 40px;
    flex-wrap: wrap;
}
.footer-brand { max-width: 400px; }
.footer-logo {
    font-size: 1.4rem; font-weight: 800;
    display: flex; align-items: center; gap: 4px; margin-bottom: 12px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.footer-links a {
    color: var(--text-secondary); font-size: 0.9rem; transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent-2); }

.footer-divider {
    border: none; border-top: 1px solid var(--border-color);
    margin: 36px 0;
}
.footer-academic {
    padding: 24px 0;
}
.academic-info {
    display: flex; align-items: center; gap: 24px;
    background: var(--bg-card); border-radius: var(--radius);
    padding: 24px; border: 1px solid var(--border-color);
}
.cucei-logo {
    width: 80px; height: 80px; object-fit: contain;
    border-radius: 12px; flex-shrink: 0;
}
.academic-text p {
    color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 2px;
}
.academic-text p:first-child { color: var(--text-primary); font-size: 0.95rem; }

.footer-copy {
    text-align: center; color: var(--text-secondary);
    font-size: 0.8rem; margin-top: 24px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-target {
    opacity: 0; transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-target.animate-in {
    opacity: 1; transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--bg-secondary); flex-direction: column;
        padding: 80px 32px 32px; gap: 24px;
        transition: right 0.3s;
        border-left: 1px solid var(--border-color);
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-stats { gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .product-grid { grid-template-columns: 1fr; }
    .branches-grid { grid-template-columns: 1fr; }
    .academic-info { flex-direction: column; text-align: center; }
    .footer-main { flex-direction: column; }
}
