:root {
    --primary-color: #d4af37; /* Gold Accent */
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents side scrolling on mobile */
}

h1, h2, h3 { font-family: var(--font-head); color: white; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; object-fit: cover; }

/* Components */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; text-transform: uppercase; letter-spacing: 2px; }
.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-primary:hover { background-color: #fff; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; /* Percentage padding for responsiveness */
    position: fixed; width: 100%; top: 0;
    background: rgba(18, 18, 18, 0.95); z-index: 1000;
}
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); z-index: 1001; }
/*.logo img { height: 40px; width: auto; } /* Logo size fix */
/* --- style.css --- */

/* 1. Find the .logo class around line 45 */
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); z-index: 1001; }

/* 2. PASTE THIS NEW DYNAMIC CSS BELOW IT: */

/* Desktop Size (Default) */
.logo img {
    height: 100px; /* Nice and big on large screens */
    width: auto;  /* Maintains aspect ratio */
    display: block; /* Removes extra space below image */
    transition: height 0.3s ease; /* Smooth resize animation */
}

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a:hover { color: var(--primary-color); }

/* Hamburger Menu (Hidden on Desktop) */
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.hamburger span {
    display: block; width: 25px; height: 3px; background-color: white;
    margin: 5px; transition: all 0.3s ease;
}

/* Hero */
.hero-section {
    height: 100vh;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
    padding: 0 20px;
}
.hero-section::after { content: ''; position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-size: 4rem; margin-bottom: 10px; line-height: 1.2; }
.hero-content p { font-size: 1.5rem; margin-bottom: 30px; font-weight: 300; }
/* New Two-Line Title Styles */
.name-main {
    display: block;
    font-size: 4.5rem; /* Big and bold */
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.name-sub {
    display: block;
    font-size: 1.2rem; /* Much smaller */
    font-family: var(--font-body); /* Clean sans-serif font */
    letter-spacing: 8px; /* Wide spacing for elegance */
    font-weight: 300;
    text-transform: uppercase;
    color: var(--primary-color); /* Gold accent color */
    margin-top: 10px;
}
/* About */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-img img { width: 100%; border-radius: 5px; filter: grayscale(20%); }
.stats { display: flex; gap: 20px; margin-top: 20px; flex-wrap: wrap; }
.stat-item { background: var(--bg-card); padding: 10px 20px; border-left: 3px solid var(--primary-color); flex: 1; min-width: 140px; text-align: center;}
/* --- SERVICE GALLERY MODAL --- */
.service-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* High, but lower than Lightbox (which is usually 3000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Solid black background */
    overflow: hidden;
}

.service-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #111;
    border-bottom: 2px solid var(--primary-color);
}

.service-modal-header h2 {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 1.5rem;
}

.close-service-modal {
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.close-service-modal:hover { color: var(--primary-color); }

.service-modal-content {
    height: calc(100% - 80px); /* Full height minus header */
    overflow-y: auto; /* Allow scrolling */
    padding: 20px;
}

/* Grid for the 20+ photos */
.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.service-photo-item {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
    position: relative;
}

.service-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-photo-item:hover img {
    transform: scale(1.05);
}

/* Ensure existing Lightbox is ON TOP of this modal */
.lightbox { z-index: 3000; }

/* Mobile Adjustments */
@media (max-width: 768px) {
    .service-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .service-photo-item { height: 150px; }
}
/* --- LIGHTBOX NAVIGATION --- */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 3002; /* Above the image */
  background-color: rgba(0, 0, 0, 0.3); /* Slight background for visibility */
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color */
.prev:hover, .next:hover {
  background-color: var(--primary-color);
  color: #000;
}

/* Mobile: Move arrows to bottom so they don't cover the photo */
@media (max-width: 768px) {
    .prev, .next {
        top: auto;
        bottom: 20px;
        background-color: rgba(0,0,0,0.8);
    }
    .prev { left: 20px; }
    .next { right: 20px; }
}
/* Services Grid */
/* --- CREATIVE SERVICES STYLE (FIXED VISIBILITY) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.service-card {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background: #000; /* Shows black if image is missing */
}

/* Image Styling */
.img-wrapper {
    width: 100%;
    height: 100%;
    position: absolute; /* Fixes image to background */
    top: 0;
    left: 0;
    z-index: 1;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Zoom effect on hover */
.service-card:hover .img-wrapper img {
    transform: scale(1.1);
}

/* The Dark Gradient Overlay (Makes text visible) */
.content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sits ON TOP of image */
    
    /* Strong gradient: Black at bottom -> Transparent at top */
    background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0) 100%);
    
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Pushes text to bottom */
    padding: 25px;
}

.content-overlay h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 2px 2px 4px #000; /* Extra shadow for readability */
}

.content-overlay p {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 10px;
    /* Always visible now, removed the 'hidden' animation for better usability */
    opacity: 0.9; 
}

.price-tag {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    border-top: 2px solid var(--primary-color);
    padding-top: 10px;
    display: inline-block;
}
.card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.3); /* Thin gold line */
    padding-top: 15px;
}

.btn-card {
    background-color: var(--primary-color);
    color: #000;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-card:hover {
    background-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Adjust price tag to fit next to button */
.price-tag {
    font-size: 0.85rem;
    border-top: none; /* Remove old border */
    padding-top: 0;
}
/* --- SLIDESHOW STYLES (REPLACE OLD PORTFOLIO CSS) --- */
#portfolio {
    overflow: hidden; /* Hides images that go off-screen */
    background: #000;
    padding: 50px 0;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    /* Width is calculated to fit huge amounts of photos */
    width: calc(300px * 100); 
    /* 120s = Speed. Higher number = Slower moving */
    animation: scroll 120s linear infinite; 
}

/* The Individual Photos */
.slide {
    height: 350px;       /* Fixed height */
    width: 500px;        /* Fixed width */
    margin: 0 15px;      /* Gap between photos */
    flex-shrink: 0;      /* Prevents photos from squishing */
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 1px solid #333;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PAUSE Animation on Hover */
.slider-track:hover {
    animation-play-state: paused;
}

/* Hover Effect on Image (Zoom) */
.slide:hover {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

/* The Moving Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    /* Moves left by half the track width to create loop */
    100% { transform: translateX(-50%); } 
}

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--bg-card); padding: 30px; font-style: italic; border-top: 4px solid var(--primary-color); }
.client-name { margin-top: 20px; font-weight: bold; color: var(--primary-color); font-style: normal; display: block;}

/* Contact */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 5px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px; background: var(--bg-card); border: 1px solid #333; color: white;
}

/* Footer */
footer { text-align: center; padding: 20px; background: #000; color: #666; font-size: 0.9rem; }

/* Lightbox */
.lightbox {
    display: none; position: fixed; z-index: 2000; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9); justify-content: center; align-items: center;
}
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 80%; }
.close-lightbox { position: absolute; top: 15px; right: 25px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }

/* ========================================= */
/* RESPONSIVE DESIGN (TABLETS & MOBILE)      */
/* ========================================= */

@media (max-width: 768px) {
    .section { padding: 50px 0; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .name-main { font-size: 2.8rem; }
    .name-sub { font-size: 0.9rem; letter-spacing: 4px; }
    /* Mobile/Tablet Size */
    .logo img {
        height: 65px; /* Shrinks down to fit nicely on smaller headers */
    }
    /* 1. Hamburger Menu Logic */
    .hamburger { display: block; }
    .nav-links {
        position: fixed; background: #121212; height: 100vh; width: 100%;
        top: 0; right: -100%; /* Hidden off-screen */
        flex-direction: column; align-items: center; justify-content: center;
        transition: 0.5s; z-index: 999;
    }
    .nav-links.active { right: 0; /* Slide in */ }
    .nav-links li { margin: 20px 0; font-size: 1.5rem; }

    /* Hamburger Animation to X */
    .hamburger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line2 { opacity: 0; }
    .hamburger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* 2. Hero Text Resize */
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    /* 3. Section Stack */
    .about-container, .contact-container { grid-template-columns: 1fr; gap: 30px; }
    .about-img { order: -1; /* Image on top */ }
    
    /* 4. Portfolio Grid */
    .slide {
    height: 200px;
    width: 300px;
}
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .btn-primary { width: 100%; text-align: center; }
    .navbar { padding: 15px 20px; }
}

/* --- Social Media Icons Fix --- */
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px; /* Space between icons */
}

.social-links a {
    text-decoration: none;
    display: inline-block;
}

.social-links i {
    color: var(--primary-color); /* Makes them Gold */
    font-size: 2rem; /* Makes them Big (32px) */
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links i:hover {
    color: white; /* Turns white when you hover */
    transform: translateY(-5px); /* Floats up slightly */
}
