/* =========================================
   CSS Variables & Theme Setup
========================================= */
:root {
    /* Colors */
    --bg-color: #111111;
    /* Deep black / dark charcoal */
    --accent-color: #FFC843;
    /* Bright, vibrant gold tone */
    --secondary-color: #888888;
    /* Grey for text */
    --text-color: #ffffff;

    /* Typography */
    --font-heading: 'Ramaraja', serif;
    --font-body: 'Quicksand', sans-serif;
    --font-button: 'Reem Kufi', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.3s ease-in-out;
}

/* =========================================
   Reset & Base Styles
========================================= */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: normal;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
.cta-btn {
    font-family: var(--font-button);
    cursor: pointer;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base utility classes can be added here once layout starts */
ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

/* =========================================
   Navbar Styles
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #1a1b1f;
    /* Slightly lighter than pure black to match UI */
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background-color: var(--bg-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    height: 70px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 12rem;
}

.logo-fallback {
    align-items: center;
    gap: 15px;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 3rem;
    /* Increased text size to 3rem */
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--accent-color);
    color: #1a1b1f;
    /* dark color matching nav */
    border-radius: 8px;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 35px;
    margin-left: 50px;
    /* Shift links slightly right from center based on UI */
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cccccc;
    /* Off-white / light grey */
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
    /* White on hover */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 24px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-btn:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    background: transparent;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed navbar */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--bg-color);
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    transform: scale(1.05);
    /* Slight initial zoom for effect */
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    /* Slow zoom out */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.3) 0%, rgba(17, 17, 17, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    margin-top: -40px;
    /* slight vertical centering tweak */
}

.badge {
    display: inline-block;
    border: 1px solid rgba(212, 175, 55, 0.5);
    /* Semi-transparent gold */
    color: var(--accent-color);
    padding: 6px 20px;
    border-radius: 30px;
    font-family: var(--font-button);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-content h1 .highlight {
    color: var(--accent-color);
    font-style: italic;
}

.hero-content p {
    font-size: 1.15rem;
    color: #ffffff;
    margin: 0 auto 40px;
    max-width: 600px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-btn {
    padding: 16px 36px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn.primary {
    background-color: var(--accent-color);
    /* Match the brighter gold */
    color: #111111;
}

.cta-btn.primary:hover {
    background-color: #FFD565;
    /* Lighter bright gold on hover */
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background-color: #1f2024;
    /* Dark grey card button */
    color: var(--text-color);
}

.cta-btn.secondary:hover {
    background-color: #2a2b30;
    transform: translateY(-2px);
}

/* =========================================
   Portfolio Section
========================================= */
.portfolio {
    background-color: var(--bg-color);
    /* Match background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    margin-bottom: 50px;
    text-align: left;
}

.section-badge {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-button);
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 600px;
}

.header-line {
    width: 60px;
    height: 1px;
    background-color: rgba(255, 200, 67, 0.4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
    margin-bottom: 50px;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #1a1b1f;
    /* dark placeholder box */
    cursor: pointer;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 100%);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .img-placeholder {
    transform: scale(1.03);
    /* Subtle scale effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.09) 100%);
}

.item-1 {
    grid-column: span 7;
    grid-row: span 2;
}

.item-2 {
    grid-column: span 5;
    grid-row: span 1;
}

.item-3 {
    grid-column: span 5;
    grid-row: span 1;
}

.item-4 {
    grid-column: span 4;
    grid-row: span 1;
}

.item-5 {
    grid-column: span 8;
    grid-row: span 1;
}

.portfolio-cta {
    text-align: center;
    margin-top: 60px;
}

.glow-btn {
    box-shadow: 0 4px 15px rgba(255, 200, 67, 0.25);
    padding: 14px 44px;
    font-size: 0.95rem;
}

/* =========================================
   Services Section
========================================= */
.services {
    background-color: #16171a;
    /* Subtle contrast to pure black background */
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
}

.service-card {
    padding: 0 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.85);
    /* Solid white vertical lines */
    display: flex;
    flex-direction: column;
}

.service-icon {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.service-card p {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    /* Aligns all view packages links at bottom if content lengths vary */
}

.service-link {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.service-link:hover {
    color: #ffffff;
    /* Brighten on hover */
    gap: 12px;
    /* Small arrow nudge animation */
}

/* =========================================
   About Section
========================================= */
.about {
    background-color: var(--bg-color);
    padding: 120px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image-wrapper {
    position: relative;
    flex: 1;
    max-width: 550px;
}

.about-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--accent-color);
    color: #111111;
    padding: 25px 35px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.exp-number {
    font-size: 2.8rem;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 5px;
}

.exp-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--font-button);
}

.about-content {
    flex: 1;
}

.about-content .section-badge {
    margin-bottom: 15px;
}

.about-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    white-space: nowrap;
}

.about-content .header-line {
    margin-bottom: 40px;
    background-color: rgba(255, 200, 67, 0.4);
}

.about-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #eeeeee;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.6;
}

.about-content p {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 25px;
    line-height: 1.8;
}

.light-btn {
    background-color: #ffffff;
    color: #111111;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    margin-top: 15px;
}

.light-btn:hover {
    background-color: var(--accent-color);
    color: #111111;
    transform: translateY(-2px);
}

/* =========================================
   Testimonials Section
========================================= */
.testimonials {
    background-color: #1a1b1f;
    /* matching specific darker background of UI */
    padding: 120px 0;
    overflow: hidden;
}

.section-header.center {
    text-align: center;
}

.header-line.line-center {
    margin: 0 auto 40px auto;
}

.carousel-container {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 0 15px;
    animation: scroll-carousel 35s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

.carousel-controls {
    display: none !important;
}

.testimonial-card {
    background-color: var(--bg-color);
    /* slightly darker black contrast */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* very faint border as requested */
    border-radius: 6px;
    padding: 35px;
    width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 200, 67, 0.06);
    border: 1px solid rgba(255, 200, 67, 0.2);
    /* subtly illuminate borders on hover */
}

.stars {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 25px;
    display: flex;
    gap: 4px;
}

.quote {
    font-size: 1.05rem;
    font-style: italic;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 40px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.details h4 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 2px;
}

.details span {
    font-size: 0.7rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.outline-btn {
    border: 1px solid rgba(255, 200, 67, 0.4);
    color: var(--accent-color);
    padding: 14px 44px;
    font-size: 0.95rem;
    background-color: transparent;
    border-radius: 4px;
}

.outline-btn:hover {
    background-color: var(--accent-color);
    color: #111111;
}

/* =========================================
   Contact Section & Footer
========================================= */
.contact {
    background-color: var(--bg-color);
    /* pure dark match ui */
    padding: 120px 0;
}

.contact-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info .section-badge {
    margin-bottom: 20px;
}

.contact-info h2 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.contact-info p {
    font-size: 1.05rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.contact-info .header-line {
    margin-bottom: 50px;
    background-color: rgba(255, 200, 67, 0.4);
}

.contact-list {
    margin-bottom: 50px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a1b1f;
    /* dark circle */
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text span {
    font-size: 0.65rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-text strong {
    font-family: var(--font-heading);
    color: #eeeeee;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-list li:nth-child(2) .contact-text strong {
    font-size: 1.35rem;
    /* Email is explicitly slightly smaller to prevent wrapping issues */
}

.social-actions {
    display: flex;
    gap: 15px;
}

.social-btn {
    border: 1px solid rgba(255, 200, 67, 0.4);
    color: #dddddd;
    padding: 12px 24px;
    border-radius: 8px;
    /* Slightly rounded edges seen in UI */
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.social-btn i {
    color: var(--accent-color);
    /* Gold icon */
    font-size: 1.1rem;
}

.social-btn.icon-only-btn {
    padding: 12px;
}

.social-btn:hover {
    background-color: var(--accent-color);
    color: #111111;
}

.social-btn:hover i {
    color: #111111;
}

.contact-form-wrapper {
    flex: 1;
    background-color: #1a1b1f;
    /* specific dark form background card per UI */
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.input-group label {
    font-size: 0.7rem;
    color: #cccccc;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: 6px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888888;
}

.contact-form select {
    color: #888888;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23888888%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 10px auto;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 200, 67, 0.5);
    background-color: rgba(255, 255, 255, 0.02);
}

.submit-btn {
    background-color: var(--accent-color);
    color: #111111;
    font-weight: 700;
    padding: 18px;
    font-size: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #FFD565;
    transform: translateY(-2px);
}

.footer {
    background-color: #111111; /* Extremely dark to match UI */
    padding: 80px 0 30px 0;
    border-top: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 38px;
    height: 38px;
    background-color: var(--accent-color);
    color: #111111;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-size: 1.1rem;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.8rem;
}

.brand-col p {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 90%;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background-color: #1f2024; /* dark grey icon background matching UI */
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #dddddd;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    color: #111111;
}

.footer-col h4 {
    color: #ffffff;
    font-family: var(--font-button);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 18px;
}

.footer-col ul li a {
    color: #dddddd;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #dddddd;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact-list li i {
    color: var(--accent-color);
    font-size: 1rem;
    margin-top: 3px;
}

.location-box {
    margin-top: 25px;
}

.location-box iframe {
    display: block;
    margin-bottom: 10px;
    filter: invert(90%) hue-rotate(180deg) brightness(1.2) contrast(80%); /* Makes google maps elegantly dark styled! */
}

.expand-map-link {
    font-size: 0.75rem;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    font-weight: 700;
}

.expand-map-link:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05); /* horizontal separator */
    color: #888888;
    font-size: 0.8rem;
}

.bottom-center {
    flex: 1;
    text-align: center;
}

.bottom-right {
    display: flex;
    gap: 20px;
}

.bottom-right a {
    color: #888888;
    transition: var(--transition-smooth);
}

.bottom-right a:hover {
    color: white;
}

/* =========================================
   Subpages
========================================= */
.page-header {
    padding: 180px 0 80px 0;
    text-align: center;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding-bottom: 120px;
}

.packages-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.packages-placeholder:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 200, 67, 0.3);
}

.portfolio-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 120px;
}

.portfolio-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5; /* Uniform aspect ratio for perfectly even rows */
    background: #1a1b1f;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.portfolio-placeholder:hover {
    transform: scale(1.02);
    border-color: rgba(255, 200, 67, 0.4);
}

.portfolio-page-grid:not(.show-all) .portfolio-placeholder:nth-child(n+10) {
    display: none !important;
}

.hidden-item {
    display: none !important;
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #111;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        border-top: 1px solid rgba(255,255,255,0.05);
        z-index: 1000;
        text-align: center;
        /* Smooth Animation Properties */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 0;
    }
    
    .nav-links.active-mobile {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-btn {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 250px;
    }

    .item-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .item-2,
    .item-3 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .item-4,
    .item-5 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 0;
    }

    .service-card {
        padding: 0 20px;
    }

    .about-container {
        flex-direction: column;
        gap: 80px;
        text-align: center;
    }

    .about-image-wrapper {
        margin-right: 30px;
        /* Offset to prevent badge overflow */
    }

    .about-content .section-badge {
        margin: 0 auto 15px auto;
        display: block;
    }

    .about-content h2 {
        white-space: normal;
        /* Allow wrap on tiny mobile screens if needed */
        font-size: 2.5rem;
    }

    .about-content .header-line {
        margin: 0 auto 40px auto;
    }

    .carousel-container {
        padding-bottom: 30px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        width: auto;
        padding: 0;
        animation: none;
    }

    .carousel-controls {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 15px;
        width: 100%;
    }

    .testimonial-card {
        width: 340px;
        scroll-snap-align: center;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info .header-line {
        margin: 0 auto 50px auto;
    }

    .contact-list {
        display: inline-block;
        text-align: left;
        margin: 0 auto;
    }

    .contact-list li {
        justify-content: flex-start;
    }

    .contact-text {
        text-align: left;
    }

    .contact-form-wrapper {
        width: 100%;
        padding: 40px 30px;
    }

    .social-actions {
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .portfolio-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-page-grid:not(.show-all) .portfolio-placeholder:nth-child(n+9) {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .nav-container {
        padding: 0 20px;
    }
    
    .contact-text strong {
        font-size: 1rem;
        line-height: 1.4;
    }

    .contact-list li:nth-child(2) .contact-text strong {
        font-size: 0.95rem; /* Email specific */
        word-break: break-all;
    }

    .contact-list li {
        align-items: flex-start; /* Stops icon floating to middle during text wrap */
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-top: 2px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }

    .item-1,
    .item-2,
    .item-3,
    .item-4,
    .item-5 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 50px 0;
    }

    .testimonial-card {
        width: 280px;
        padding: 25px 20px;
    }

    .form-row {
        flex-direction: column;
    }

    .contact-info h2 {
        font-size: 3rem;
    }
    
    .carousel-container {
        width: calc(100% + 40px);
        margin-left: -20px;
        left: auto;
        transform: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-header h2 { font-size: 2.1rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .contact-info h2 { font-size: 2.1rem; }
    .brand-col .logo-text { font-size: 1.3rem; }
    .testimonial-card { width: 85vw; padding: 20px 15px; }
    
    .about-content h2, 
    .contact-info h2 {
        font-size: 2.1rem;
    }
    
    .hero-buttons .cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   Scroll Reveal Animations
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left {
    transform: translateX(-40px);
}

.reveal.fade-right {
    transform: translateX(40px);
}

.reveal.scale-up {
    transform: translateY(30px) scale(0.95);
}

.reveal.fade-left.active,
.reveal.fade-right.active,
.reveal.scale-up.active {
    transform: translate(0) scale(1);
    opacity: 1;
}

/* Delay classes for staggering */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Custom Popups
========================================= */
.custom-popup {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}
.custom-popup.show {
    opacity: 1;
    pointer-events: auto;
}
.popup-content {
    background: #1a1b1f;
    border: 1px solid rgba(255, 200, 67, 0.3);
    padding: 50px 40px;
    border-radius: 8px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.custom-popup.show .popup-content {
    transform: translateY(0) scale(1);
}
.popup-content i {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}
.popup-content p {
    color: #ccc;
    font-size: 1.1rem;
    margin-top: 10px;
}
.close-popup-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 2.2rem;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}
.close-popup-btn:hover {
    color: #fff;
}

/* =========================================
   Image Lightbox Viewer
========================================= */
.lightbox {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: contain;
}

.lightbox.show .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #888;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    z-index: 10001;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

/* =========================================
   Responsive Spacing Fixes
========================================= */
@media (max-width: 992px) {
    section { padding: 60px 0; }
    .services { padding: 70px 0; }
    .about, .testimonials, .contact { padding: 80px 0; }
    .page-header { padding: 140px 0 60px 0; }
    .packages-grid, .portfolio-page-grid { padding-bottom: 80px; }
}

@media (max-width: 768px) {
    .services, .about, .testimonials, .contact { padding: 60px 0; }
    .page-header { padding: 120px 0 50px 0; }
    .packages-grid, .portfolio-page-grid { padding-bottom: 60px; }
}

@media (max-width: 480px) {
    section { padding: 50px 0; }
    .about, .testimonials, .contact { padding: 50px 0; }
    .page-header { padding: 100px 0 40px 0; }
    .packages-grid, .portfolio-page-grid { padding-bottom: 40px; }
}