/* ============================================
   BG Mühendislik - Premium Corporate Design
   ============================================ */

:root {
    --primary: #1a1a2e;
    --accent: #c9a84c;
    --accent-light: #d4b866;
    --text: #2d2d3a;
    --text-light: #6b6b7b;
    --text-muted: #9b9bab;
    --bg: #fafaf8;
    --bg-alt: #f3f2ef;
    --white: #ffffff;
    --border: rgba(0,0,0,0.08);
    --border-light: rgba(0,0,0,0.04);
    --radius: 4px;
    --radius-lg: 8px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', sans-serif;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
    display: none;
}
@media (pointer: fine) {
    .cursor-dot { display: block; }
}

/* ============ NAVIGATION ============ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}
#navbar.scrolled {
    padding: 12px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Text */
.logo-text {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
}
.logo-apri { color: #f97316; }
.logo-dot { color: #f97316; }
#navbar.scrolled .logo-text { color: var(--text); }
#navbar.scrolled .logo-apri { color: #f97316; }
#navbar.scrolled .logo-dot { color: #f97316; }

.footer-logo-text {
    font-size: 24px;
    color: #fff;
    display: inline-block;
    margin-bottom: 20px;
}

.nav-logo img {
    height: 40px;
    transition: var(--transition);
}
#navbar.scrolled .nav-logo img { height: 34px; }

.nav-menu {
    display: flex;
    gap: 36px;
}
.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

#navbar.scrolled .nav-link { color: var(--text-light); }
#navbar.scrolled .nav-link:hover, #navbar.scrolled .nav-link.active { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.3px;
    transition: var(--transition);
}
.nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}
.nav-cta-icon {
    font-size: 11px;
    transition: var(--transition);
}
.nav-cta:hover .nav-cta-icon { transform: translateX(3px); }

#navbar.scrolled .nav-cta {
    border-color: var(--border);
    color: var(--text);
}
#navbar.scrolled .nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}
.hamburger span {
    height: 1.5px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}
.hamburger span:first-child { width: 100%; }
.hamburger span:last-child { width: 60%; margin-left: auto; }
.hamburger.active span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:last-child { width: 100%; transform: rotate(-45deg) translate(5px, -5px); }
#navbar.scrolled .hamburger span { background: var(--text); }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-menu-content { text-align: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.mobile-link {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}
.mobile-overlay.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-overlay.active .mobile-nav li:nth-child(1) .mobile-link { transition-delay: 0.1s; }
.mobile-overlay.active .mobile-nav li:nth-child(2) .mobile-link { transition-delay: 0.15s; }
.mobile-overlay.active .mobile-nav li:nth-child(3) .mobile-link { transition-delay: 0.2s; }
.mobile-overlay.active .mobile-nav li:nth-child(4) .mobile-link { transition-delay: 0.25s; }
.mobile-overlay.active .mobile-nav li:nth-child(5) .mobile-link { transition-delay: 0.3s; }
.mobile-overlay.active .mobile-nav li:nth-child(6) .mobile-link { transition-delay: 0.35s; }
.mobile-link:hover { color: var(--accent); }
.mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mobile-contact a {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease, transform 8s ease;
    transform: scale(1.05);
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-grain {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,46,0.4) 0%, rgba(26,26,46,0.7) 60%, rgba(26,26,46,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.hero-badge-line {
    width: 48px;
    height: 1px;
    background: var(--accent);
}
.hero-badge-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}
.hero-line {
    display: block;
    overflow: hidden;
}
.hero-word {
    display: inline-block;
}
.hero-word.accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 100px;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}
.btn-modern:hover { background: var(--accent-light); gap: 20px; }
.btn-modern.dark {
    background: var(--primary);
    color: #fff;
}
.btn-modern.dark:hover { background: #2a2a4e; }
.btn-modern.full { width: 100%; justify-content: center; }
.btn-arrow {
    display: flex;
    align-items: center;
    font-size: 12px;
    transition: var(--transition);
}

.btn-ghost {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding-bottom: 4px;
}
.btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.3);
    transition: var(--transition);
}
.btn-ghost:hover { color: #fff; }
.btn-ghost:hover::after { background: var(--accent); }

/* Hero slider nav */
.hero-slider-nav {
    position: absolute;
    bottom: 48px;
    right: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 20px;
}
.slider-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}
.slider-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 300;
}
.slider-current { color: #fff; font-weight: 600; font-size: 18px; }
.slider-divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

/* Hero scroll */
.hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 40px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    writing-mode: vertical-rl;
}
.hero-scroll span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.scroll-line {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollDown 2s ease infinite;
}
@keyframes scrollDown {
    0% { top: -100%; }
    100% { top: 100%; }
}

/* ============ STATS RIBBON ============ */
.stats-ribbon {
    background: var(--primary);
    padding: 64px 0;
    position: relative;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 48px;
    flex-wrap: wrap;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.stat-plus {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 300;
    color: var(--accent);
    margin-left: -4px;
}
.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    letter-spacing: 0.3px;
}
.stat-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.1);
}

/* ============ SECTION ELEMENTS ============ */
.section-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.section-label span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}
.section-label.light span { color: var(--accent-light); }
.label-line {
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.section-label.light .label-line { background: var(--accent-light); }

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
}
.section-heading.light { color: #fff; }
.text-accent {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-label { justify-content: center; }

.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}
.section-desc {
    max-width: 400px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ============ ABOUT ============ */
.about {
    padding: 140px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}
.about-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
}
.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.about-img-wrapper:hover img { transform: scale(1.03); }

.about-year-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--accent);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(201,168,76,0.3);
}
.year-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.year-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    opacity: 0.6;
}

.about-decoration {
    position: absolute;
    top: -24px;
    left: -24px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: -1;
}

.about-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 16px;
}
.about-text strong { color: var(--text); font-weight: 600; }

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 40px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.highlight-item:hover {
    border-color: var(--accent);
    background: rgba(201,168,76,0.04);
}
.highlight-icon {
    color: var(--accent);
    flex-shrink: 0;
}
.highlight-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

/* ============ SERVICES ============ */
.services {
    padding: 140px 0;
    background: var(--primary);
}

.services-list {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px;
    gap: 40px;
    align-items: center;
    padding: 36px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: var(--transition);
}
.service-row:hover {
    padding-left: 20px;
}

.service-number {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.3);
    transition: var(--transition);
}
.service-row:hover .service-number { color: var(--accent); }

.service-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    transition: var(--transition);
}
.service-row:hover .service-content h3 { color: var(--accent); }
.service-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    max-width: 560px;
}

.service-icon-wrap {
    font-size: 22px;
    color: rgba(255,255,255,0.15);
    transition: var(--transition);
    text-align: right;
}
.service-row:hover .service-icon-wrap { color: var(--accent); }

/* ============ PROJECTS ============ */
.projects {
    padding: 140px 0;
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}
.project-card:hover { transform: translateY(-4px); box-shadow: 0 24px 80px rgba(0,0,0,0.08); }
.project-card.featured { grid-column: 1 / -1; }

.project-img {
    overflow: hidden;
    aspect-ratio: 16/9;
}
.project-card.featured .project-img { aspect-ratio: 21/9; }
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.project-card:hover .project-img img { transform: scale(1.05); }

.project-meta {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.project-cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 100px;
}
.project-meta h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.project-meta p {
    width: 100%;
    font-size: 14px;
    color: var(--text-light);
    margin-top: -12px;
}
.project-arrow {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.project-card:hover .project-arrow {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* ============ REFERENCES ============ */
.references {
    padding: 100px 0;
    background: var(--white);
    overflow: hidden;
}

.refs-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    margin-top: 20px;
}
.refs-track {
    display: flex;
    gap: 64px;
    animation: marquee 30s linear infinite;
    width: max-content;
}
.ref-item {
    flex-shrink: 0;
    height: 48px;
    display: flex;
    align-items: center;
    opacity: 0.4;
    filter: grayscale(1);
    transition: var(--transition);
}
.ref-item:hover { opacity: 1; filter: grayscale(0); }
.ref-item img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ CONTACT ============ */
.contact {
    padding: 140px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.contact-card:hover {
    border-color: var(--accent);
    background: rgba(201,168,76,0.03);
}
.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(201,168,76,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-card-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-card-value {
    display: block;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.contact-social {
    display: flex;
    gap: 12px;
}
.contact-social a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}
.contact-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: transparent;
    font-size: 15px;
    color: var(--text);
    transition: var(--transition);
    outline: none;
    border-radius: 0;
    -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

/* ============ MAP ============ */
.map-section {
    position: relative;
}
.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--primary);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand { max-width: 280px; }
.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: 24px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-contact-list li {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}
.footer-contact-list a {
    color: rgba(255,255,255,0.5);
}
.footer-contact-list a:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
}
.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}
.footer-credit a {
    color: #fff;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: -0.3px;
}
.footer-credit a:hover { color: var(--accent-light); }
.footer-credit .logo-apri { color: #f97316; }
.footer-credit .logo-dot { color: #f97316; }

/* ============ FLOATING ELEMENTS ============ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    z-index: 90;
    box-shadow: 0 4px 24px rgba(37,211,102,0.3);
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px rgba(37,211,102,0.4);
}

/* ============ ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ---- Large tablets / small laptops ---- */
@media (max-width: 1280px) {
    .container { padding: 0 32px; }
    .nav-container { padding: 0 32px; }
    .hero-content { padding: 0 32px; }
    .footer-top { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; }
    .about-grid { gap: 60px; }
    .contact-grid { gap: 60px; }
}

/* ---- Tablets landscape ---- */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }
    .nav-container { padding: 0 28px; }
    .nav-menu { gap: 24px; }
    .nav-link { font-size: 12px; }

    /* Hero */
    .hero-content { padding: 0 28px; }
    .hero-title { font-size: clamp(36px, 5vw, 56px); }
    .hero-slider-nav { right: 28px; }
    .hero-scroll { left: 28px; }

    /* Stats */
    .stats-grid { flex-wrap: wrap; justify-content: center; gap: 24px 0; }
    .stat-divider { display: none; }
    .stat-item { padding: 12px 32px; min-width: 160px; justify-content: center; }
    .stat-number { font-size: 44px; }

    /* About */
    .about { padding: 100px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-visual { max-width: 520px; margin: 0 auto; }
    .about-img-wrapper { aspect-ratio: 3/4; }
    .about-year-badge { bottom: -16px; right: -16px; width: 100px; height: 100px; }
    .year-number { font-size: 28px; }
    .about-decoration { top: -16px; left: -16px; width: 100px; height: 100px; }

    /* Services */
    .services { padding: 100px 0; }
    .service-row { grid-template-columns: 60px 1fr 48px; gap: 24px; padding: 28px 0; }
    .service-content h3 { font-size: 20px; }

    /* Projects */
    .projects { padding: 100px 0; }
    .section-header-flex { flex-direction: column; align-items: flex-start; gap: 16px; }
    .section-desc { max-width: 100%; }

    /* Contact */
    .contact { padding: 100px 0; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form-wrapper { padding: 40px; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { max-width: 100%; }

    /* References */
    .references { padding: 80px 0; }
    .ref-item { height: 40px; }
    .refs-track { gap: 48px; }
}

/* ---- Tablets portrait ---- */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-container { padding: 0 20px; }

    /* Nav */
    .nav-menu { display: none; }
    .nav-cta-text { display: none; }
    .nav-cta { padding: 10px 14px; }
    .nav-cta-icon { font-size: 14px; }
    .hamburger { display: flex; }
    #navbar { padding: 16px 0; }
    #navbar.scrolled { padding: 10px 0; }
    .nav-logo img { height: 34px; }
    #navbar.scrolled .nav-logo img { height: 30px; }
    .nav-container { justify-content: space-between; }
    .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
    .logo-text { font-size: 24px; }

    /* Hero */
    .hero { padding-bottom: 80px; min-height: 100svh; min-height: 600px; align-items: center; padding-top: 80px; }
    .hero-content { padding: 0 20px; }
    .hero-badge { margin-bottom: 24px; }
    .hero-badge-line { width: 32px; }
    .hero-badge-text { font-size: 11px; letter-spacing: 2px; }
    .hero-title { font-size: clamp(32px, 8vw, 48px); margin-bottom: 20px; }
    .hero-desc { font-size: 14px; margin-bottom: 32px; max-width: 100%; }
    .hero-desc br { display: none; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 320px; }
    .btn-modern { justify-content: center; padding: 14px 28px; font-size: 13px; }
    .btn-ghost { text-align: center; padding: 14px 0; }
    .hero-slider-nav { right: 20px; bottom: 20px; gap: 12px; }
    .slider-btn { width: 40px; height: 40px; font-size: 12px; }
    .slider-counter { gap: 8px; }
    .slider-current { font-size: 15px; }
    .slider-divider { width: 24px; }
    .hero-scroll { display: none; }

    /* Stats */
    .stats-ribbon { padding: 40px 0; }
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; justify-items: center; }
    .stat-item { flex-direction: column; align-items: center; text-align: center; padding: 0; min-width: unset; gap: 4px; }
    .stat-number { font-size: 36px; }
    .stat-plus { font-size: 24px; }
    .stat-label { font-size: 12px; text-align: center; }

    /* Sections */
    .about, .services, .projects, .contact { padding: 72px 0; }
    .section-header { margin-bottom: 36px; }
    .section-heading { font-size: clamp(28px, 6vw, 36px); }
    .section-label span { font-size: 11px; letter-spacing: 2px; }
    .label-line { width: 24px; }

    /* About */
    .about-visual { max-width: 100%; }
    .about-img-wrapper { aspect-ratio: 4/3; }
    .about-year-badge { width: 90px; height: 90px; bottom: -12px; right: -8px; }
    .year-number { font-size: 24px; }
    .year-text { font-size: 9px; letter-spacing: 1.5px; }
    .about-decoration { width: 80px; height: 80px; top: -12px; left: -12px; }
    .about-text { font-size: 14px; line-height: 1.7; }
    .about-highlights { grid-template-columns: 1fr; gap: 10px; margin: 24px 0 32px; }
    .highlight-item { padding: 12px 14px; }
    .highlight-item span { font-size: 13px; }

    /* Services */
    .service-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
    .service-row:hover { padding-left: 12px; }
    .service-number { display: none; }
    .service-icon-wrap { display: none; }
    .service-content h3 { font-size: 18px; margin-bottom: 4px; }
    .service-content p { font-size: 13px; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .project-card.featured { grid-column: auto; }
    .project-card.featured .project-img { aspect-ratio: 16/10; }
    .project-img { aspect-ratio: 16/10; }
    .project-meta { padding: 20px; gap: 12px; }
    .project-meta h3 { font-size: 17px; }
    .project-meta p { font-size: 13px; margin-top: -4px; }
    .project-cat { font-size: 10px; padding: 5px 12px; letter-spacing: 1.5px; }
    .project-arrow { width: 36px; height: 36px; font-size: 11px; }

    /* References */
    .references { padding: 60px 0; }
    .ref-item { height: 36px; }
    .refs-track { gap: 40px; }

    /* Contact */
    .contact-desc { font-size: 14px; margin-bottom: 28px; }
    .contact-card { padding: 16px; gap: 12px; }
    .contact-card-icon { width: 40px; height: 40px; }
    .contact-card-value { font-size: 13px; }
    .contact-form-wrapper { padding: 24px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group input, .form-group textarea, .form-group select { font-size: 14px; padding: 12px 0; }
    .form-group label { font-size: 11px; }

    /* Map */
    .map-section iframe { height: 300px; }

    /* Footer */
    .footer { padding: 60px 0 0; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
    .footer-brand { max-width: 100%; }
    .footer-brand p { font-size: 13px; }
    .footer-col h5 { margin-bottom: 16px; font-size: 11px; }
    .footer-col a { font-size: 13px; }
    .footer-col ul { gap: 10px; }
    .footer-contact-list li { font-size: 13px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 20px 0; }
    .footer-bottom p { font-size: 12px; }

    /* Floating */
    .whatsapp-float { bottom: 20px; left: 20px; width: 48px; height: 48px; font-size: 24px; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }

    /* Mobile menu */
    .mobile-link { font-size: 28px; }
    .mobile-contact a { font-size: 13px; }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .nav-container { padding: 0 16px; }

    /* Nav */
    .logo-text { font-size: 22px; }

    /* Hero */
    .hero { min-height: 100svh; padding-top: 60px; padding-bottom: 60px; }
    .hero-content { padding: 0 16px; }
    .hero-title { font-size: clamp(28px, 9vw, 40px); }
    .hero-desc { font-size: 13px; line-height: 1.6; }
    .hero-badge-text { font-size: 10px; }
    .hero-badge-line { width: 24px; }
    .hero-actions { max-width: 100%; }
    .btn-modern { padding: 13px 24px; font-size: 13px; gap: 12px; }
    .hero-slider-nav { right: 16px; bottom: 16px; gap: 8px; }
    .slider-btn { width: 36px; height: 36px; font-size: 11px; }
    .slider-counter { display: none; }

    /* Stats */
    .stats-ribbon { padding: 32px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
    .stat-number { font-size: 30px; }
    .stat-plus { font-size: 20px; }
    .stat-label { font-size: 11px; }

    /* Sections */
    .about, .services, .projects, .contact { padding: 56px 0; }
    .section-header { margin-bottom: 28px; }
    .section-heading { font-size: clamp(24px, 7vw, 32px); }

    /* About */
    .about-img-wrapper { aspect-ratio: 1/1; }
    .about-year-badge { width: 80px; height: 80px; bottom: -10px; right: -6px; }
    .year-number { font-size: 22px; }
    .year-text { font-size: 8px; }
    .about-decoration { display: none; }
    .about-text { font-size: 13px; }
    .highlight-item { padding: 10px 12px; gap: 10px; }
    .highlight-icon svg { width: 20px; height: 20px; }
    .highlight-item span { font-size: 12px; }
    .btn-modern.dark { width: 100%; justify-content: center; }

    /* Services */
    .service-content h3 { font-size: 16px; }
    .service-content p { font-size: 12px; line-height: 1.5; }
    .service-row { padding: 16px 0; }

    /* Projects */
    .projects-grid { gap: 12px; }
    .project-img { aspect-ratio: 16/11; }
    .project-card.featured .project-img { aspect-ratio: 16/11; }
    .project-meta { padding: 16px; gap: 10px; }
    .project-meta h3 { font-size: 15px; }
    .project-meta p { font-size: 12px; margin-top: -2px; }
    .project-cat { font-size: 9px; padding: 4px 10px; }
    .project-arrow { width: 32px; height: 32px; font-size: 10px; }

    /* References */
    .references { padding: 48px 0; }
    .ref-item { height: 30px; }
    .refs-track { gap: 32px; }

    /* Contact */
    .contact-desc { font-size: 13px; }
    .contact-card { padding: 14px; gap: 10px; flex-direction: row; }
    .contact-card-icon { width: 36px; height: 36px; min-width: 36px; }
    .contact-card-icon svg { width: 16px; height: 16px; }
    .contact-card-label { font-size: 10px; }
    .contact-card-value { font-size: 12px; word-break: break-word; }
    .contact-social a { width: 40px; height: 40px; font-size: 14px; }
    .contact-form-wrapper { padding: 20px; }
    .form-group { margin-bottom: 16px; }
    .form-group label { font-size: 10px; margin-bottom: 6px; }
    .form-group input, .form-group textarea, .form-group select { font-size: 14px; padding: 10px 0; }
    .btn-modern.full { padding: 14px 20px; font-size: 13px; }

    /* Map */
    .map-section iframe { height: 240px; }

    /* Footer */
    .footer { padding: 48px 0 0; }
    .footer-top { gap: 24px; padding-bottom: 32px; }
    .footer-logo { height: 30px; margin-bottom: 16px; }
    .footer-col h5 { margin-bottom: 12px; }
    .footer-col ul { gap: 8px; }

    /* Floating */
    .whatsapp-float { bottom: 16px; left: 16px; width: 44px; height: 44px; font-size: 22px; }
    .back-to-top { bottom: 16px; right: 16px; width: 36px; height: 36px; }

    /* Mobile menu */
    .mobile-link { font-size: 24px; }
    .mobile-nav { gap: 20px; margin-bottom: 36px; }
}

/* ---- Extra small phones (Galaxy Fold, etc.) ---- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .nav-container { padding: 0 12px; }
    .hero-content { padding: 0 12px; }
    .logo-text { font-size: 20px; }
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 12px; }
    .hero-badge { margin-bottom: 20px; gap: 10px; }
    .hero-badge-text { font-size: 9px; }
    .btn-modern { padding: 12px 20px; font-size: 12px; }
    .btn-ghost { font-size: 12px; }
    .stats-grid { gap: 20px 8px; }
    .stat-number { font-size: 26px; }
    .stat-label { font-size: 10px; }
    .section-heading { font-size: 22px; }
    .section-label span { font-size: 10px; letter-spacing: 1.5px; }
    .about-text { font-size: 12px; }
    .about-year-badge { width: 70px; height: 70px; }
    .year-number { font-size: 20px; }
    .highlight-item span { font-size: 11px; }
    .service-content h3 { font-size: 15px; }
    .service-content p { font-size: 11px; }
    .project-meta h3 { font-size: 14px; }
    .project-meta p { font-size: 11px; }
    .contact-form-wrapper { padding: 16px; }
    .form-group input, .form-group textarea, .form-group select { font-size: 13px; }
    .mobile-link { font-size: 22px; }
    .mobile-nav { gap: 16px; }
}

/* ---- Landscape phones ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: 100vh; padding-top: 70px; padding-bottom: 40px; align-items: center; }
    .hero-title { font-size: clamp(24px, 4vh, 36px); margin-bottom: 12px; }
    .hero-desc { font-size: 12px; margin-bottom: 20px; }
    .hero-badge { margin-bottom: 16px; }
    .hero-actions { flex-direction: row; gap: 16px; }
    .btn-modern { padding: 10px 24px; font-size: 12px; }
    .hero-slider-nav { bottom: 12px; }
    .stats-ribbon { padding: 24px 0; }
    .stats-grid { gap: 16px; }
    .stat-number { font-size: 32px; }
}

/* ---- Touch device optimizations ---- */
@media (hover: none) {
    .cursor-dot { display: none !important; }
    .project-card:hover { transform: none; }
    .service-row:hover { padding-left: 0; }
    .about-img-wrapper:hover img { transform: none; }
    .project-card:hover .project-img img { transform: none; }
    .highlight-item:hover { border-color: var(--border); background: transparent; }
    .contact-card:hover { border-color: var(--border); background: transparent; }
    .ref-item { opacity: 0.5; filter: grayscale(0.5); }

    /* Larger tap targets */
    .nav-cta { min-height: 44px; }
    .hamburger { min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
    .slider-btn { min-width: 44px; min-height: 44px; }
    .contact-social a { min-width: 44px; min-height: 44px; }
    .back-to-top { min-width: 44px; min-height: 44px; }
    .whatsapp-float { min-width: 48px; min-height: 48px; }
}

/* ---- Safe area insets (notch phones) ---- */
@supports (padding: env(safe-area-inset-bottom)) {
    .footer-bottom { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    .whatsapp-float { bottom: calc(16px + env(safe-area-inset-bottom)); left: calc(16px + env(safe-area-inset-left)); }
    .back-to-top { bottom: calc(16px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); }
    .hero { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    #navbar { padding-top: calc(16px + env(safe-area-inset-top)); }
    .mobile-overlay { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
}

/* ---- Print ---- */
@media print {
    .hero, .whatsapp-float, .back-to-top, .cursor-dot, #navbar, .mobile-overlay, .hero-slider-nav, .hero-scroll { display: none !important; }
    .about, .services, .projects, .contact { padding: 40px 0; }
    body { color: #000; }
    .footer { background: #f5f5f5; color: #333; }
}
