@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Light Mode — Clean Corporate */
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --text: #0f0f0f;
    --text-secondary: #555;
    --text-muted: #999;
    --border: #eaeaea;
    --card-bg: #ffffff;
    --card-hover: #f5f5f5;
    --nav-bg: rgba(255,255,255,0.92);
    --accent: #0f0f0f;
    --accent-soft: rgba(15,15,15,0.06);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --text: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --border: #1e1e1e;
    --card-bg: #141414;
    --card-hover: #1a1a1a;
    --nav-bg: rgba(10,10,10,0.92);
    --accent: #ffffff;
    --accent-soft: rgba(255,255,255,0.06);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

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

a { color: inherit; text-decoration: none; }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 5%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.navbar .logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--text);
}

.navbar .logo img {
    transition: filter var(--transition);
}

[data-theme="dark"] .navbar .logo img {
    filter: brightness(0) invert(1);
}

.navbar .nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar .nav-menu a {
    padding: 0.5rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.navbar .nav-menu a:hover,
.navbar .nav-menu a.active {
    color: var(--text);
    background: var(--accent-soft);
}

.theme-toggle {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    margin-left: 0.75rem;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--card-hover);
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper { padding-top: 72px; }

/* ===== HERO ===== */
.hero {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    position: relative;
}

.hero-content { max-width: 720px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 { margin-bottom: 1.5rem; }

.hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 560px;
    margin-bottom: 2.5rem;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--text);
    background: var(--accent-soft);
}

/* ===== SECTIONS ===== */
.section {
    padding: 5rem 5%;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header .overline {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header p {
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.8;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ===== GRIDS ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2-1 { grid-template-columns: 1.2fr 1fr; gap: 4rem; }

/* ===== SERVICE CARDS ===== */
.service-card {
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { font-size: 0.95rem; line-height: 1.7; }

/* ===== PORTFOLIO CARDS ===== */
.portfolio-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.portfolio-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.portfolio-media img, .portfolio-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-media iframe {
    border: none;
}

.portfolio-card:hover .portfolio-media img,
.portfolio-card:hover .portfolio-media video {
    transform: scale(1.04);
}

.portfolio-info {
    padding: 1.25rem 1.5rem;
}

.portfolio-info h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.portfolio-info p { font-size: 0.85rem; }

/* ===== CLIENT LOGOS ===== */
.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    min-height: 120px;
}

.client-item:hover { border-color: var(--text-muted); }

.client-item img {
    max-width: 110px;
    max-height: 60px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition);
}

.client-item:hover img { opacity: 0.9; }

[data-theme="dark"] .client-item img {
    filter: grayscale(100%) brightness(0) invert(1);
    opacity: 0.4;
}

[data-theme="dark"] .client-item:hover img { opacity: 0.8; }

/* ===== ABOUT PAGE ===== */
.about-hero {
    padding: 6rem 5%;
    text-align: center;
}

.about-hero p {
    font-size: 1.2rem;
    line-height: 2;
    max-width: 720px;
    margin: 0 auto;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.contact-info-card:hover { border-color: var(--text-muted); }

.contact-info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-card p {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--text);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 120px; }

.success-msg {
    padding: 1rem 1.25rem;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

[data-theme="dark"] .success-msg {
    background: rgba(34,197,94,0.1);
    color: #86efac;
    border-color: rgba(34,197,94,0.2);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-nav h4, .footer-social-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-nav ul { list-style: none; }

.footer-nav li { margin-bottom: 0.6rem; }

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.footer-nav a:hover { color: var(--text); }

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all var(--transition);
}

.social-links a:hover {
    color: var(--text);
    border-color: var(--text);
    background: var(--accent-soft);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--text); }

/* ===== PAGE HEADER (shared by inner pages) ===== */
.page-hero {
    padding: 5rem 5% 3rem;
    border-bottom: 1px solid var(--border);
}

.page-hero .overline {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .grid-2, .grid-2-1, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--bg);
        padding: 2rem;
        gap: 0.5rem;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .navbar .nav-menu.active { transform: translateX(0); }

    .navbar .nav-menu a {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .hamburger { display: flex; }

    .hero { min-height: auto; padding: 3rem 5%; }
    h1 { font-size: 2rem; }
    .section { padding: 3rem 5%; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
}
