/* CSS Variables for Theming */
:root {
    --primary-color: #D95D39;
    --bg-color: #F8F8F8;
    --text-color: #212121;
    --card-bg: #FFFFFF;
    --border-color: #e0e0e0;
    --header-bg: rgba(248, 248, 248, 0.85);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #181818;
    --text-color: #E0E0E0;
    --card-bg: #2a2a2a;
    --border-color: #444;
    --header-bg: rgba(24, 24, 24, 0.85);
}

/* Global Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
h3 { font-size: 1.5rem; color: var(--primary-color); }

p { margin-bottom: 1rem; }
a { color: var(--primary-color); text-decoration: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: -0.5rem auto 3rem auto;
    font-size: 1.1rem;
}

/* Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

#main-header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-color);
}
.logo span { color: var(--primary-color); }

#main-header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

#main-header nav ul a {
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.2s ease-in-out;
}
#main-header nav ul a:hover {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-switch-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.theme-switch { position: relative; display: inline-block; width: 50px; height: 24px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(26px); }

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(assets/hero-background.jpg) no-repeat center center/cover;
    padding: 0 2rem;
}

.hero-content { max-width: 800px; }
.hero-content .subtitle {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.hero-content p { font-size: 1.2rem; max-width: 650px; margin: 0 auto 2rem auto; }

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(217, 93, 57, 0.4);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}
.about-text { flex: 1; }

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Slideshow */
.slideshow-container { position: relative; overflow: hidden; border-radius: 8px; }
.slide { display: none; }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* Video Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.service-card h3 { margin-bottom: 1rem; }
.service-card p { font-size: 0.95rem; }

/* Contact Section */
#contact {
    text-align: center;
    background-color: var(--card-bg);
}
#contact h2 { font-size: 2rem; }
.contact-email {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
}
.contact-email:hover {
    background: var(--primary-color);
    color: white;
}
.social-links {
    margin-top: 3rem;
}
.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: #888;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    #main-header nav ul { display: none; } /* Simple approach for mobile */
    .about-content { flex-direction: column; text-align: center; }
    .profile-pic { width: 200px; height: 200px; margin-bottom: 2rem; }
    .gallery-grid, .video-grid { grid-template-columns: 1fr; }
}