@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary: #c5a059; /* Elegant Gold */
    --primary-light: #e0c28d;
    --dark: #0f0f0f;
    --darker: #050505;
    --light: #ffffff;
    --gray: #a0a0a0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-accent: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-accent);
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

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

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: -1px;
    z-index: 1001;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    color: var(--darker) !important;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--light);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-container-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--darker);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-container-main.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1511578314322-379afb476865?q=80&w=2069&auto=format&fit=crop') center/cover no-repeat;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.7), rgba(5,5,5,0.9));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-button {
    padding: 1.2rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.cta-button.primary {
    background: var(--primary);
    color: var(--darker);
}

.cta-button.secondary {
    border: 1px solid var(--light);
    color: var(--light);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* Stats */
.stats-section {
    padding: 4rem 0;
    background: var(--dark);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-accent);
}

.stat-label {
    color: var(--gray);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Services Modern */
.services-modern {
    padding: 10rem 0;
}

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

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.service-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card-modern {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-img {
    height: 300px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-modern:hover .card-img img {
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.learn-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* About Modern */
.about-modern {
    padding: 10rem 0;
    background: var(--dark);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-img-box {
    flex: 1;
    position: relative;
}

.about-img-box img {
    width: 100%;
    border-radius: 12px;
    filter: grayscale(0.5);
    transition: var(--transition);
}

.about-img-box:hover img {
    filter: grayscale(0);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary);
    color: var(--darker);
    padding: 2.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.experience-badge strong {
    font-size: 2.5rem;
    line-height: 1;
}

.about-text-modern {
    flex: 1;
}

.sub-heading {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 0.9rem;
}

.about-text-modern h2 {
    font-size: 3.5rem;
    margin: 1.5rem 0;
    line-height: 1.1;
}

.check-list {
    list-style: none;
    margin-top: 2.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Portfolio Modern */
.portfolio-modern {
    padding: 10rem 0;
}

.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px;
    gap: 1.5rem;
}

.portfolio-item-modern {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-item-modern.large {
    grid-column: span 2;
}

.portfolio-item-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,5,5,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item-modern:hover .portfolio-overlay {
    opacity: 1;
}

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

/* Contact Modern */
.contact-modern {
    padding: 10rem 0;
}

.contact-card-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
}

.contact-info-modern {
    padding: 5rem;
    background: var(--primary);
    color: var(--darker);
}

.contact-info-modern h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-list {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-form-modern {
    padding: 5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

input, select, textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--light);
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: var(--transition);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c5a059' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
    padding-right: 3.5rem;
    cursor: pointer;
}

select option {
    background-color: #1a1a1a;
    color: var(--light);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

textarea {
    height: 150px;
    resize: none;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary);
    border: none;
    color: var(--darker);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-light);
}

/* Footer Modern */
.modern-footer {
    padding: 8rem 0 4rem;
    background: var(--darker);
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 3fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.footer-brand-box .logo {
    margin-bottom: 2rem;
}

.footer-brand-box p {
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links-modern {
    display: flex;
    gap: 1.5rem;
}

.social-links-modern a {
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links-modern a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.footer-nav-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.nav-group h4 {
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-family: var(--font-main);
}

.nav-group ul {
    list-style: none;
}

.nav-group ul li {
    margin-bottom: 1rem;
}

.nav-group ul a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.nav-group ul a:hover {
    color: var(--primary);
}

.footer-bottom-modern {
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray);
    text-decoration: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* Responsive */
@media (max-width: 1100px) {
    .about-flex {
        flex-direction: column;
        gap: 4rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .service-grid-modern {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .contact-card-modern {
        grid-template-columns: 1fr;
    }
    .portfolio-grid-modern {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
    .portfolio-item-modern.large {
        grid-column: span 1;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

.hero-content .hero-subtitle { animation-delay: 0.2s; }
.hero-content h1 { animation-delay: 0.4s; }
.hero-content p { animation-delay: 0.6s; }
.hero-content .hero-btns { animation-delay: 0.8s; }

/* Service Detail Styles */
.service-hero {
    position: relative;
    padding: 15rem 0 10rem;
    background: var(--darker);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.service-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5,5,5,0.6), rgba(5,5,5,0.85));
    z-index: 0;
}

.service-hero .container {
    position: relative;
    z-index: 1;
}

.service-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.service-hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero p {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3.5rem;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-accent);
}

.hero-stats .stat-label {
    display: block;
    color: var(--light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-overview {
    padding: 10rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.overview-text p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.overview-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.service-features {
    padding: 10rem 0;
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 4rem 3rem;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray);
}

.service-process {
    padding: 10rem 0;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.process-step {
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-family: var(--font-accent);
    color: rgba(197, 160, 89, 0.1);
    font-weight: 700;
    margin-bottom: -2rem;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.process-step p {
    color: var(--gray);
    font-size: 0.95rem;
}

.service-cta {
    padding: 10rem 0;
    background: linear-gradient(rgba(5,5,5,0.8), rgba(5,5,5,0.8)), url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?q=80&w=1798&auto=format&fit=crop') center/cover;
    text-align: center;
}

/* Portfolio Styles */
.portfolio-detail {
    padding: 15rem 0 10rem;
}

.portfolio-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.portfolio-images img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.portfolio-images img:first-child {
    grid-column: span 2;
    height: 700px;
}

.portfolio-description {
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-description h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.portfolio-description p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.portfolio-description h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.portfolio-description ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-description ul li::before {
    content: "•";
    color: var(--primary);
    margin-right: 10px;
}

/* Legal Pages */
.legal-content {
    padding: 15rem 0 10rem;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    margin: 4rem 0 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.legal-text p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .portfolio-images {
        grid-template-columns: 1fr;
    }
    
    .portfolio-images img:first-child {
        grid-column: span 1;
        height: 400px;
    }
    
    .portfolio-images img {
        height: 300px;
    }
    
    .portfolio-description ul {
        grid-template-columns: 1fr;
    }
}

/* Custom Popup (Toast Notification) */
.custom-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    border-left: 4px solid var(--primary);
    color: var(--light);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
}

.custom-popup.active {
    transform: translateX(0);
}

.custom-popup.error {
    border-left-color: #ff4d4d;
}

.custom-popup.error .popup-icon {
    background: #ff4d4d;
}

.custom-popup .popup-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.custom-popup .popup-message {
    font-size: 0.95rem;
    font-weight: 500;
}

.custom-popup .popup-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray);
    transition: var(--transition);
}

.custom-popup .popup-close:hover {
    color: var(--primary);
}
