:root {
    --primary: #0f172a;
    --accent: #d97706;
    /* Premium Bronze */
    --accent-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    /* Warm Architecture */
    --bg-gradient: linear-gradient(120deg, #fdfbfb 0%, #f3f4f6 100%);

    /* Glassmorphism Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    --glass-blur: blur(12px);

    /* Text Colors */
    --text-main: #1c1917;
    /* Warm Black */
    --text-muted: #57534e;
    /* Warm Grey */
    --text-light: #fafaf9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background: #f0f4f8;
    /* Fallback */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, hsla(253, 16%, 7%, 0) 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0) 0, hsla(225, 39%, 30%, 0) 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, hsla(339, 49%, 30%, 0) 50%);
    /* Mesh gradient substitute via simple radial/linear */
    background: linear-gradient(to bottom right, #eff6ff, #f8fafc, #ffffff);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 20px;
    gap: 10px;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo img {
    height: 65px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn-small {
    padding: 8px 16px;
    background: var(--text-main);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
}

.btn-small:hover {
    background: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Abstract background shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
}

.hero h1 {
    font-size: 72px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(to right, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    background: var(--text-main);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: var(--accent);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}


/* Services / Cards */
.section-title {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: -1.5px;
}

.services {
    padding: 120px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 48px 32px;
    border-radius: 24px;
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 16px;
    leading-relaxed;
}


/* Portfolio */
.portfolio {
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.project-item {
    height: 400px;
    border-radius: 24px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: scale(1.02);
}

.project-item .overlay {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    color: var(--text-main);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(10px);
    opacity: 0;
    transition: 0.3s all;
}

.project-item:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-item h3 {
    font-size: 18px;
    margin: 0;
}

/* Contact */
.contact {
    padding: 100px 0 150px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    padding: 80px;
    border-radius: 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-main);
}

.contact-card h2 {
    font-size: 40px;
    margin-bottom: 16px;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact-form .btn-primary {
    border: none;
    width: 100%;
    font-size: 18px;
    background: var(--accent-gradient);
    margin-top: 10px;
}

.contact-form .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Contact Info overrides */
.contact-info {
    margin-top: 40px;
}

.contact-info p {
    color: var(--text-main);
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.contact a {
    color: var(--text-main) !important;
    font-weight: 600;
    opacity: 0.8;
    transition: 0.2s;
}

.contact a:hover {
    opacity: 1;
    color: var(--accent) !important;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    z-index: 2000;
}

.lightbox[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer .footer-logo {
    height: 32px;
    margin-bottom: 20px;
    opacity: 0.8;
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
}

footer a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
        text-align: left;
    }

    .nav-links {
        display: none;
    }

    .contact-card {
        padding: 40px 24px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}