/* Theme variables (light defaults). Overrides live under `body.dark-mode` */
:root {
    --bg: #ffffff;
    --text: #333333;
    --white: #ffffff;
    --primary: #C8A34D;
    --navbar-bg: rgba(17, 17, 17, 0.85);
    --surface: #ffffff;
    --card: #f8f8f8;
    --section: #f5f5f5;
    --overlay: rgba(0, 0, 0, .45);
    --muted: #6c757d;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Inter', sans-serif;
}

/* Base */
body {
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
}

.navbar {
    transition: .3s;
}

/* Hero */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1511818966892-d7d671e672a2?w=1800') center center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
}

.section {
    padding: 100px 0;
}

/* Projects */
.project-card {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.project-card img {
    transition: all .7s ease;
    width: 100%;
}

.project-card:hover img {
    transform: scale(1.08);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: .4s
}

.project-card:hover::after {
    opacity: 1
}

.service-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 18px;
    transition: .4s;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.service-icon i {
    font-size: 1.5rem;
}

.service-card h4 {
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: var(--navbar-bg);
    color: var(--white);
    padding: 40px 0
}

/* Hero slider */
.hero-slider,
.heroSwiper,
.swiper-slide {
    height: 100vh
}

.slide-bg {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center
}

.overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay)
}

.slide-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 700px
}

.slide-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white)
}

.swiper-pagination-bullet {
    background: var(--white);
    opacity: .7
}

.swiper-pagination-bullet-active {
    opacity: 1
}

@media(max-width:768px) {
    .slide-content h1 {
        font-size: 2.8rem
    }

    .slide-content p {
        font-size: 1rem
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font)
}

.navbar {
    padding: 20px 0
}

.navbar.scrolled {
    background: var(--navbar-bg);
    padding: 12px 0
}

.navbar-brand img {
    transition: transform .3s ease
}

.navbar-brand:hover img {
    transform: rotate(-5deg) scale(1.08)
}

/* Misc */
.project-card::after {
    background: rgba(0, 0, 0, 0.15)
}

/* Dark mode variable overrides */
body.dark-mode,
.dark-mode {
    --bg: #121212;
    --text: #e6e6e6;
    --white: #ffffff;
    --primary: #C8A34D;
    --navbar-bg: #111111;
    --surface: #1e1e1e;
    --card: #232323;
    --section: #181818;
    --overlay: rgba(0, 0, 0, 0.65);
    --muted: #b9b9b9;
}

body.dark-mode .bg-light,
body.dark-mode .bg-light:hover,
.dark-mode .bg-light,
.dark-mode .bg-light:hover {
    background-color: var(--surface) !important;
    color: var(--text) !important;
}

body.dark-mode .btn-light,
.dark-mode .btn-light {
    background-color: var(--surface) !important;
    color: var(--text) !important;
    border-color: var(--text) !important;
}