@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #d4af37; /* Gold */
    --primary-dark: #b5952f;
    --bg-dark: #0a0a0a;
    --bg-light-dark: #141414;
    --bg-card: #1c1c1c;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 3rem; margin-bottom: 2rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }

.text-gold {
    color: var(--primary-color);
}

.section-padding {
    padding: 6rem 5%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 1rem 5%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Floating Sidebar */
.floating-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 999;
}
.floating-sidebar a {
    background: rgba(30,30,30,0.9);
    color: #fff;
    width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 8px 0 0 8px;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    border-right: none;
}
.floating-sidebar a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    width: 55px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.4) 100%);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

/* Page Header */
.page-header {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.7);
}

.page-header h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 3.5rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-card {
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    group: hover;
    border: 1px solid rgba(255,255,255,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(10,10,10,0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Recent Projects Masonry Grid */
.recent-projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.recent-project-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.recent-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.recent-project-item:hover img {
    transform: scale(1.08);
}

.recent-project-item:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.recent-project-item:nth-child(2) { grid-column: span 4; grid-row: span 1; }
.recent-project-item:nth-child(3) { grid-column: span 4; grid-row: span 1; }
.recent-project-item:nth-child(4) { grid-column: span 4; grid-row: span 1; }
.recent-project-item:nth-child(5) { grid-column: span 8; grid-row: span 1; }

.recent-project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.recent-project-item:hover .recent-project-info {
    transform: translateY(0);
    opacity: 1;
}

.recent-project-info h3 {
    color: #fff;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.recent-project-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Working Projects */
.working-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.working-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.working-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.working-img {
    height: 220px;
    position: relative;
}

.working-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.working-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.working-content {
    padding: 2rem;
}

.progress-container {
    margin-top: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Stats Section */
.stats-section {
    position: relative;
    padding: 5rem 0;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10,10,10,0.85);
}

.stat-item {
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 4rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-text {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Enhanced Testimonials */
.testimonial-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.testimonial-stars {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-text {
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.client-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
}

.client-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Home Portfolio Showcase (Screenshot Match) */
.home-portfolio {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: center;
}

.home-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.home-portfolio-grid .portfolio-item {
    height: 300px;
    border-radius: 8px;
}

/* About Section */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    z-index: -1;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Features */
.features-wrapper {
    max-width: 1300px;
    margin: -80px auto 5rem;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 20;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    background: transparent;
}

.feature-item {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.feature-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: var(--bg-light-dark);
    padding: 5rem 5% 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.contact-info {
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-muted);
}

/* Project Modal */
.project-modal {
    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(5px);
    overflow: auto;
}
.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    position: relative;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    animation: modalFadeIn 0.4s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--text-muted);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}
.close-modal:hover {
    color: var(--primary-color);
}
.modal-gallery {
    margin-bottom: 2rem;
}
.modal-main-image {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
}
.modal-thumb {
    width: 100px;
    height: 70px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    transition: var(--transition);
    object-fit: cover;
}
.modal-thumb:hover, .modal-thumb.active {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .about-section { grid-template-columns: 1fr; gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .home-portfolio { grid-template-columns: 1fr; gap: 2rem; }
    .home-portfolio-grid { grid-template-columns: 1fr; }
    .header-contact { display: none !important; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 300px; height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    
    h1 { font-size: 2.5rem !important; }
    h2 { font-size: 2.2rem !important; }
    
    .footer-grid,
    .portfolio-grid,
    .features,
    .services-grid,
    .process-grid,
    .stats-grid,
    .about-section { 
        grid-template-columns: 1fr !important; 
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-buttons .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
    
    .recent-projects-grid {
        display: flex;
        flex-direction: column;
    }
    .recent-project-item {
        height: 250px;
    }
    
    /* Convert floating sidebar to bottom bar on mobile */
    .floating-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        width: 100%;
        background: #0a0a0a;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        z-index: 1000;
    }
    .floating-sidebar a {
        width: 33.33%;
        height: 50px;
        border-radius: 0;
        border: none;
        border-right: 1px solid rgba(255,255,255,0.05);
    }
    .floating-sidebar a:last-child {
        border-right: none;
    }
    body { padding-bottom: 50px; }
    
    .contact-info { padding: 2rem 1.5rem; }
    form > div[style*="display: grid"] { grid-template-columns: 1fr !important; }
    
    /* Override inline font sizes */
    [style*="font-size: 3.5rem"], [style*="font-size: 4rem"] { font-size: 2.5rem !important; }
    [style*="font-size: 2.5rem"], [style*="font-size: 2.8rem"] { font-size: 2rem !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.4rem !important; }
    
    /* Override inline font sizes for small mobile */
    [style*="font-size: 3.5rem"], [style*="font-size: 4rem"] { font-size: 2rem !important; }
    [style*="font-size: 2.5rem"] { font-size: 1.8rem !important; }
    
    .section-padding { padding: 4rem 5%; }
    .hero-content p { font-size: 1rem; }
    .btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    
    .page-header { height: 300px; }
    .page-header h1 { font-size: 2.5rem; }
}
