/* ===========================
   ROUDY DIB — LUXURY PORTFOLIO
   Dark Gold Arch Theme
   =========================== */

:root {
    --gold: #D4AF37;
    --gold-light: #E8CC6E;
    --gold-muted: #C9A96E;
    --gold-dim: #8B7534;
    --black: #080808;
    --dark: #0D0D0D;
    --dark-card: #111111;
    --dark-surface: #161616;
    --dark-border: #1e1e1e;
    --cream: #F5F0E8;
    --text: #a8a8a8;
    --text-light: #6e6e6e;
    --white: #e8e4de;
    --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) var(--black);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--black);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--gold);
    color: var(--black);
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--black);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 3px;
}

/* ===========================
   PRELOADER
   =========================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-arch {
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-svg {
    width: 80px;
    height: auto;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===========================
   NAVIGATION
   =========================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.5s var(--transition);
}

#navbar.scrolled {
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-svg {
    width: 36px;
    height: auto;
    transition: transform 0.4s var(--transition);
}

.nav-logo:hover .nav-logo-svg {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.4s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.97);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-links {
    list-style: none;
    text-align: center;
}

.mobile-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-links li:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-links li:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-links li:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-links li:nth-child(5) { transition-delay: 0.5s; }

.mobile-links a {
    text-decoration: none;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
}

/* ===========================
   HERO SECTION
   =========================== */
#hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: heroFadeIn 1.5s ease 0.5s both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-arch {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.hero-arch-svg {
    width: 120px;
    height: auto;
    opacity: 0.8;
}

.hero-monogram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 6px;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 24px auto;
    opacity: 0.5;
}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 16px;
    text-transform: uppercase;
    line-height: 1.2;
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 200;
    color: var(--gold-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 8px;
}

.hero-cta {
    display: inline-block;
    margin-top: 50px;
    padding: 14px 42px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    text-decoration: none;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.5s var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.5s var(--transition);
    z-index: -1;
}

.hero-cta:hover {
    color: var(--black);
    border-color: var(--gold);
}

.hero-cta:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.6); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* ===========================
   SECTION SHARED STYLES
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 4px;
}

.section-line {
    width: 50px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto 0;
    opacity: 0.4;
}

.section-line.left {
    margin: 20px 0 0 0;
}

/* ===========================
   PORTFOLIO SECTION
   =========================== */
#portfolio {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--dark-border);
    color: var(--text-light);
    padding: 10px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    transition: transform 0.6s var(--transition);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid var(--dark-border);
}

.portfolio-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.portfolio-placeholder span {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-dim);
    font-weight: 200;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.9) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.03);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.portfolio-info p {
    font-size: 11px;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

.portfolio-note {
    text-align: center;
    margin-top: 50px;
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
    font-weight: 200;
    font-style: italic;
}

/* ===========================
   SERVICES SECTION
   =========================== */
#services {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.service-card {
    background: var(--dark-card);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--dark-border);
    transition: all 0.5s var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.5s var(--transition);
}

.service-card:hover::before {
    width: 80%;
}

.service-card:hover {
    background: var(--dark-surface);
    transform: translateY(-4px);
}

.service-icon {
    margin-bottom: 24px;
}

.service-icon svg {
    width: 44px;
    height: 44px;
    opacity: 0.7;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon svg {
    opacity: 1;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 13px;
    font-weight: 200;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===========================
   ABOUT SECTION
   =========================== */
#about {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-arch-svg {
    width: 100px;
    height: auto;
    opacity: 0.3;
}

.about-monogram {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 6px;
    opacity: 0.4;
}

.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 14px;
    font-weight: 200;
    line-height: 2;
    color: var(--text);
    margin-top: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--dark-border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

.stat-suffix {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--gold-dim);
}

.stat-label {
    display: block;
    font-size: 10px;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===========================
   CONTACT SECTION
   =========================== */
#contact {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    opacity: 0.7;
}

.contact-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 13px;
    font-weight: 200;
    color: var(--text);
}

.contact-socials {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dark-border);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 200;
    letter-spacing: 1px;
    outline: none;
    transition: border-color 0.4s ease;
    -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-dim);
}

.form-group select {
    color: var(--text-light);
    cursor: pointer;
}

.form-group select option {
    background: var(--dark-card);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s var(--transition);
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.5s var(--transition);
    z-index: -1;
}

.form-submit:hover {
    color: var(--black);
    border-color: var(--gold);
}

.form-submit:hover::before {
    left: 0;
}

.form-submit svg {
    width: 16px;
    height: 16px;
}

/* ===========================
   FOOTER
   =========================== */
#footer {
    padding: 80px 40px 40px;
    text-align: center;
    border-top: 1px solid var(--dark-border);
}

.footer-logo-svg {
    width: 50px;
    height: auto;
    opacity: 0.5;
    margin-bottom: 16px;
}

.footer-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 300;
    color: var(--gold);
    letter-spacing: 8px;
}

.footer-tagline {
    font-size: 10px;
    font-weight: 200;
    letter-spacing: 4px;
    color: var(--text-light);
    margin-top: 8px;
    text-transform: uppercase;
}

.footer-line {
    width: 30px;
    height: 1px;
    background: var(--gold-dim);
    margin: 30px auto;
    opacity: 0.3;
}

.footer-copy {
    font-size: 11px;
    font-weight: 200;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* ===========================
   LIGHTBOX
   =========================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image-placeholder {
        max-width: 400px;
        margin: 0 auto;
    }
    .about-content .section-title {
        text-align: center;
    }
    .section-line.left {
        margin: 20px auto 0;
    }
    .about-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .hero-name {
        letter-spacing: 8px;
    }
    .hero-tagline {
        letter-spacing: 3px;
        font-size: 10px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .about-stats {
        gap: 20px;
    }
    .stat-number {
        font-size: 32px;
    }
    #portfolio, #services, #about, #contact {
        padding: 80px 24px;
    }
    .nav-container {
        padding: 0 24px;
    }
}

@media (max-width: 480px) {
    .portfolio-filter {
        gap: 6px;
    }
    .filter-btn {
        padding: 8px 14px;
        font-size: 10px;
        letter-spacing: 1px;
    }
    .hero-arch-svg {
        width: 90px;
    }
    .hero-monogram {
        font-size: 32px;
    }
}
