/* ============================================================
   Mizan Dijital — Corporate Site
   ============================================================ */

:root {
    --clr-primary: #1E3A5F;
    --clr-primary-light: #3B82F6;
    --clr-primary-dark: #152B4A;
    --clr-bg: #F8FAFC;
    --clr-surface: #FFFFFF;
    --clr-surface-alt: #EFF6FF;
    --clr-text: #0F172A;
    --clr-text-muted: #64748B;
    --clr-border: #CBD5E1;

    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;

    --header-h: 72px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
    --clr-primary: #60A5FA;
    --clr-primary-light: #93C5FD;
    --clr-primary-dark: #3B82F6;
    --clr-bg: #0B1425;
    --clr-surface: #111D32;
    --clr-surface-alt: #162440;
    --clr-text: #E2E8F0;
    --clr-text-muted: #94A3B8;
    --clr-border: #1E3050;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, .3);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--ff-body);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Gradient text ---- */
.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    transition: background .3s, box-shadow .3s;
}

.header.scrolled {
    background: rgba(248, 250, 252, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(11, 20, 37, .92);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--clr-text);
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    color: #fff;
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.logo__text {
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ---- Nav ---- */
.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--clr-text-muted);
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s;
}

.nav a:hover {
    color: var(--clr-primary);
}

/* ---- Theme toggle ---- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    background: var(--clr-surface);
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: color .2s, border-color .2s, background .2s;
}

.theme-toggle:hover {
    color: var(--clr-primary);
    border-color: var(--clr-primary);
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
    color: #fff;
    box-shadow: 0 4px 16px rgba(30, 58, 95, .25);
}

.btn--primary:hover {
    box-shadow: 0 6px 24px rgba(30, 58, 95, .35);
}

[data-theme="dark"] .btn--primary {
    color: #0B1425;
    box-shadow: 0 4px 16px rgba(96, 165, 250, .2);
}

[data-theme="dark"] .btn--primary:hover {
    box-shadow: 0 6px 24px rgba(96, 165, 250, .3);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
}

.hero__inner {
    max-width: 640px;
}

.hero__tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    background: var(--clr-surface-alt);
    border: 1px solid var(--clr-border);
    color: var(--clr-primary);
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 24px;
}

.hero__title {
    font-family: var(--ff-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__desc {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: clamp(60px, 10vw, 100px) 0;
}

.section--alt {
    background: var(--clr-surface-alt);
}

.section__tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 99px;
    background: var(--clr-surface-alt);
    border: 1px solid var(--clr-border);
    color: var(--clr-primary);
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 16px;
}

.section--alt .section__tag {
    background: var(--clr-surface);
}

.section__title {
    font-family: var(--ff-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 48px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about__card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    transition: transform .2s, box-shadow .2s;
}

.about__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.about__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--clr-surface-alt);
    color: var(--clr-primary);
    margin-bottom: 20px;
}

.about__card h3 {
    font-family: var(--ff-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about__card p {
    color: var(--clr-text-muted);
    font-size: .92rem;
    line-height: 1.65;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    text-decoration: none;
    color: var(--clr-text);
    transition: transform .2s, box-shadow .2s;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.project-card__icon {
    flex-shrink: 0;
}

.project-card__content {
    flex: 1;
}

.project-card__content h3 {
    font-family: var(--ff-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-card__content p {
    color: var(--clr-text-muted);
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.project-card__tech {
    font-size: .8rem;
    font-weight: 600;
    color: var(--clr-primary);
}

.project-card__arrow {
    font-size: 1.5rem;
    color: var(--clr-primary-light);
    flex-shrink: 0;
    transition: transform .2s;
}

.project-card:hover .project-card__arrow {
    transform: translateX(4px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.contact__desc {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--clr-border);
    padding: 32px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    color: var(--clr-text-muted);
    font-size: .85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---- Dark mode: about card hover ---- */
[data-theme="dark"] .about__card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}

@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: .85rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-h) + 32px) 0 60px;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .project-card__arrow {
        display: none;
    }

    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header__inner {
        padding: 0 16px;
    }

    .nav {
        gap: 10px;
    }

    .nav a {
        font-size: .75rem;
    }

    .logo__icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .logo__text {
        font-size: .95rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .btn--lg {
        padding: 14px 24px;
        font-size: .95rem;
    }
}

@media (max-width: 360px) {
    .logo__text {
        display: none;
    }

    .nav a {
        font-size: .73rem;
    }

    .nav {
        gap: 8px;
    }
}
