/* =================================================
   DESIGN SYSTEM (TOKENS)
================================================= */

:root {
    --bg: #020617;

    --surface: linear-gradient(
        135deg,
        #1e293b 0%,
        #1b2a3a 40%,
        #0f172a 100%
    );

    --border: #2a3a4f;

    /* TEXT SYSTEM */
    --text-strong: #e2e8f0;
    --text-normal: #cbd5e1;
    --text-muted: #94a3b8;
    --text-faint: #64748b;

    --primary: #ff6b35;

    /* TYPOGRAPHY */
    --fs-xs: 13px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 18px;
    --fs-xl: 22px;
    --fs-2xl: 32px;
    --fs-3xl: 42px;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* SPACING */
    --space-xs: 6px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 40px;
    --space-xl: 100px;

    /* OTHER */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* =================================================
   RESET
================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =================================================
   BASE
================================================= */

body {
    font-family: Inter, system-ui, Arial, sans-serif;
    background: var(--bg);
    color: var(--text-normal);
    font-size: var(--fs-md);
    line-height: 1.7;
    padding-top: 70px;
}

html {
    scroll-behavior: smooth;
}

/* =================================================
   TYPOGRAPHY
================================================= */

h1 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--text-strong);
    letter-spacing: -0.5px;
}

h2 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    color: var(--text-strong);
    letter-spacing: -0.3px;
}

h3 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--text-strong);
}

p {
    color: var(--text-muted);
}

/* =================================================
   LAYOUT
================================================= */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xl) 0;
    border-top: 1px solid #1e293b;
}

.section-label {
    font-size: var(--fs-sm);
    color: var(--text-faint);
    margin-bottom: 10px;
}

.lead {
    font-size: var(--fs-lg);
    color: var(--text-muted);
}

/* =================================================
   NAVBAR
================================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1e293b;
    z-index: 1000;
}

.navbar a {
    position: relative;
    padding: 8px 14px;
    color: var(--text-normal);
    text-decoration: none;
}

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

.navbar a:hover,
.navbar a.active {
    color: var(--primary);
}

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

.nav-student {
    background: var(--primary);
    color: white;
    font-weight: var(--fw-bold);
    padding: 8px 16px;
    border-radius: var(--radius-md);
}

/* =================================================
   HERO
================================================= */

.hero {
    text-align: center;
    padding: 160px 0 140px;
}

.hero h2 {
    color: #06b6d4;
    margin-bottom: 10px;
}

/* =================================================
   BUTTONS
================================================= */

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px;
    border-radius: 999px;
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(255,107,53,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255,107,53,0.5);
}

.btn-secondary {
    background: #334155;
    color: white;
}

/* =================================================
   CARD SYSTEM
================================================= */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

/* =================================================
   PROJECTS
================================================= */

.projects-grid {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* KIEMELT DMR */
.projects-grid .project-box:first-child {
    border: 1.5px solid var(--primary);
    box-shadow: 0 0 0 1px rgba(255,107,53,0.15);
}

/* ICON + TITLE */
.project-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    color: var(--primary);
}

/* TEXT */
.dmr-lead {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.dmr-meta {
    color: var(--text-faint);
    font-size: var(--fs-sm);
    margin-top: 20px;
}

/* =================================================
   SERVICES
================================================= */

.services {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: var(--space-lg);
}

.service-card {
    text-align: center;
}

.service-icon {
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 8px;
}

/* =================================================
   VIDEO
================================================= */

.video-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: var(--space-lg);
}

.video-card img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* =================================================
   TESTIMONIAL
================================================= */

.testimonial-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: var(--space-lg);
}

.testimonial-card p {
    color: var(--text-normal);
    font-style: italic;
}

.testimonial-card h4 {
    color: var(--text-faint);
    font-size: var(--fs-sm);
}

/* =================================================
   FAQ (FLAT)
================================================= */

.faq {
    max-width: 900px;
    margin: var(--space-lg) auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq details {
    background: #1e293b;
    border-radius: 14px;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq summary {
    cursor: pointer;
    color: var(--text-strong);
    font-weight: var(--fw-medium);
}

.faq p {
    margin-top: 12px;
    color: var(--text-muted);
}

/* =================================================
   CONTACT
================================================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg);
    border: 1px solid #334155;
    color: var(--text-normal);
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
}

/* =================================================
   IMAGE
================================================= */

.contact-info img {
    width: 400px;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* =================================================
   FOOTER
================================================= */

.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-wrap .logo {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: var(--fw-bold);
    font-size: var(--fs-lg);
}

.footer-brand {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    color: var(--text-strong);
}

.footer-brand span {
    color: var(--primary);
}

.footer-bio {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    color: var(--text-strong);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--fs-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a i {
    font-size: 14px;
}

.footer-contact-item {
    margin-bottom: 12px;
}

.contact-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-faint);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--fs-sm);
    transition: color 0.3s;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-contact-item span {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.badge.green {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: var(--radius-sm);
    color: #4ade80;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: var(--fs-sm);
    color: var(--text-faint);
}

.footer-bottom span {
    color: var(--primary);
}

/* =================================================
   PROGRESS BAR
================================================= */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 2000;
}

.hero .container {
    max-width: 900px;
}

.hero h1 {
    max-width: 800px;
    line-height: 1.25;
    margin: 0 auto;
}

.hero .lead {
    max-width: 600px;
    margin: 25px auto;
}

.hero h6 {
    max-width: 600px;
    margin: 0 auto;
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info img {
        width: 100%;
        max-width: 300px;
    }
}