/* Global Variables & Theming */
:root {
    --color-bg: #080808;
    --color-surface: rgba(25, 25, 25, 0.4);
    --color-text: #eaeaea;
    --color-text-muted: #a0a0a0;
    --color-gold: #d4af37;
    --color-gold-hover: #f1c40f;
    --color-gold-muted: rgba(212, 175, 55, 0.2);
    --color-blue: #002244;
    --color-blue-light: #00509e;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-signature: 'Great Vibes', cursive;

    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --glass-blur: blur(15px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; }
.signature { font-family: var(--font-signature); color: var(--color-gold); font-size: 2.5rem; font-weight: 400; }
.highlight { color: var(--color-gold); font-style: italic; }

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

.section { padding: 80px 0; }
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-gold);
    position: relative;
}
.section-title.left-align { text-align: left; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--color-gold); color: #000; }
.btn-primary:hover { background: var(--color-gold-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3); }
.border-btn { background: transparent; color: var(--color-gold); border: 1px solid var(--color-gold); }
.border-btn:hover { background: var(--color-gold); color: #000; }

/* Glassmorphism Classes */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base Navigation */
.glass-nav {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    background: rgba(8, 8, 8, 0.5);
    backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    transition: var(--transition);
}
.glass-nav.scrolled {
    background: rgba(8, 8, 8, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1.2rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-family: var(--font-signature); font-size: 2.4rem; font-weight: 400; text-decoration: none;
    background: linear-gradient(45deg, #d4af37, #fff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
    color: var(--color-text); text-decoration: none; font-size: 0.95rem; text-transform: uppercase;
    letter-spacing: 1.5px; position: relative; transition: var(--transition);
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--color-gold); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: -1rem;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: var(--glass-blur);
    border: var(--glass-border); padding: 1rem 0; min-width: 200px;
    list-style: none; border-radius: 8px; flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 2000;
}
.dropdown:hover .dropdown-menu { display: flex; animation: fade-in 0.3s ease; }
.dropdown-menu li { padding: 0.5rem 1.5rem; width: 100%; }
.dropdown-menu a { font-size: 0.85rem; width: 100%; display: inline-block; }
.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { padding-left: 5px; color: var(--color-gold); }
.arrow { font-size: 0.7rem; margin-left: 5px; vertical-align: middle; }

@keyframes fade-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.hamburger { display: none; cursor: pointer; z-index: 100; }
.hamburger .line { width: 25px; height: 2px; background: var(--color-text); margin: 5px; transition: var(--transition); }

/* Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%; /* For parallax */
    background-size: cover; background-position: center; z-index: -2;
    transform: translateZ(0); /* Hardware accel */
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(8,8,8,1) 100%); z-index: -1;
}
.hero-content { z-index: 1; text-align: center; max-width: 800px; padding: 2rem; }
.hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 1.5rem; text-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.4rem; color: var(--color-text-muted); margin-bottom: 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; }

/* Page Header for Subpages */
.page-header {
    padding-top: 150px;
    padding-bottom: 30px;
    text-align: center;
    background: var(--color-bg);
}
.page-header p {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

/* Portfolio Section */
.portfolio-section { background: var(--color-bg); }
.category-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn {
    background: transparent; color: var(--color-text); border: 1px solid var(--color-surface);
    padding: 0.5rem 1.5rem; border-radius: 30px; cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--color-gold); color: #000; border-color: var(--color-gold);
}

/* Masonry Layout */
.portfolio-grid { column-count: 3; column-gap: 1.5rem; }
.portfolio-item { break-inside: avoid; margin-bottom: 1.5rem; transition: opacity 0.3s ease; }
.portfolio-item-inner { position: relative; border-radius: 8px; overflow: hidden; cursor: pointer; text-align: center; background: #111; transform: translateZ(0); transition: transform 0.3s ease; width: 100%; }
.portfolio-item-inner img { width: 100%; height: auto; display: block; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.view-more-container { text-align: center; margin-top: 3rem; }

.item-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    backdrop-filter: blur(0px); opacity: 0; transition: var(--transition);
    display: flex; align-items: flex-end; padding: 2rem; justify-content: center;
}
.portfolio-item-inner:hover .item-overlay { opacity: 1; backdrop-filter: blur(4px); }
.portfolio-item-inner:hover img { transform: scale(1.08); }
.overlay-text { transform: translateY(20px); transition: var(--transition); text-align: center; width: 100%;}
.portfolio-item-inner:hover .overlay-text { transform: translateY(0); }
.overlay-text h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.5rem; font-family: var(--font-heading);}
.overlay-text p { color: var(--color-gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;}

/* About Section */
.about-section { background: radial-gradient(circle at right, var(--color-blue) 0%, var(--color-bg) 60%); }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { position: relative; }
.image-frame {
    position: relative; border-radius: 8px; overflow: hidden;
}
.image-frame::before {
    content: ''; position: absolute; inset: 0; border: 2px solid var(--color-gold); border-radius: 8px;
    transform: translate(20px, 20px); z-index: -1; transition: var(--transition);
}
.image-frame img { width: 100%; border-radius: 8px; filter: grayscale(20%); transition: var(--transition); }
.image-frame:hover img { filter: grayscale(0%); }
.image-frame:hover::before { transform: translate(10px, 10px); }
.about-text h3 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.5rem; color: var(--color-text-muted); font-size: 1.1rem; }
.skills-tags { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.skills-tags span {
    background: var(--color-surface); padding: 0.5rem 1.2rem; border-radius: 20px;
    font-size: 0.9rem; border: var(--glass-border); color: var(--color-gold);
}

/* Testimonials Section */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.5); }
.stars { color: var(--color-gold); font-size: 1.2rem; margin-bottom: 1rem; }
.review { font-style: italic; font-size: 1.05rem; margin-bottom: 1.5rem; color: #ddd; }
.client-name { font-weight: 600; color: var(--color-gold); text-align: right; }

/* Contact Section & Footer */
.contact-section { background: var(--color-bg); }
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info p { margin-bottom: 2rem; color: var(--color-text-muted); font-size: 1.1rem;}
.contact-link { color: var(--color-text); text-decoration: none; font-size: 1.1rem; transition: var(--transition); }
.contact-link:hover { color: var(--color-gold); }
.whatsapp-btn {
    display: inline-flex; align-items: center; gap: 0.8rem; background: #25D366; color: #fff;
    padding: 0.8rem 1.5rem; border-radius: 30px; text-decoration: none; font-weight: 500;
    transition: var(--transition); margin-bottom: 2rem;
}
.whatsapp-btn:hover { background: #128C7E; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }
.social-links { display: flex; gap: 1rem; }
.social-icon {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--color-surface); color: var(--color-text); text-decoration: none;
    transition: var(--transition); background: rgba(255,255,255,0.05); font-weight: 600;
}
.social-icon:hover { background: var(--color-gold); color: #000; border-color: var(--color-gold); }

.contact-form form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group input, .input-group textarea {
    width: 100%; padding: 1rem; background: rgba(0,0,0,0.3); border: var(--glass-border);
    border-radius: 4px; color: var(--color-text); font-family: var(--font-body); font-size: 1rem; transition: var(--transition);
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--color-gold); background: rgba(0,0,0,0.5); }
.submit-btn { width: 100%; font-size: 1.1rem; padding: 1rem; }

footer { background: #050505; padding: 2rem 0; border-top: 1px solid #1a1a1a; text-align: center; }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.footer-content p { color: var(--color-text-muted); }
.small-sig { font-size: 1.8rem; }

/* Lightbox Modal */
.lightbox {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9); backdrop-filter: blur(10px); justify-content: center; align-items: center; flex-direction: column;
}
.close-lightbox {
    position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.close-lightbox:hover { color: var(--color-gold); }
.lightbox-content { max-width: 90%; max-height: 80vh; border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.8); animation: zoomIn 0.3s ease; }
#lightbox-caption { margin-top: 15px; color: var(--color-gold); font-family: var(--font-heading); font-size: 1.5rem; text-align: center;}

/* Animations */
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fade-in-up { animation: fadeInUp 1s ease forwards; opacity: 0; transform: translateY(30px); }
.delay { animation-delay: 0.3s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Responsiveness */
@media (max-width: 992px) {
    .about-container, .contact-container { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 1rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .portfolio-grid { column-count: 2; }
}

@media (max-width: 768px) {
    .nav-links {
        display: flex; flex-direction: column; position: absolute; max-height: 0; overflow: hidden;
        background: rgba(10, 10, 10, 0.95); backdrop-filter: var(--glass-blur); width: 100%; top: 100%; left: 0;
        text-align: center; gap: 0; transition: max-height 0.4s ease-out;
    }
    .nav-links.active { max-height: 400px; padding: 1rem 0; }
    .nav-links li { padding: 1rem 0; width: 100%; }
    .hamburger { display: block; }
    .hamburger.active .line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .line:nth-child(2) { opacity: 0; }
    .hamburger.active .line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 576px) {
    .portfolio-grid { column-count: 1; }
}
