/* ===============================
   Modern Styles for Archipromax
   =============================== */

:root {
    --primary: #8b7355;
    --primary-dark: #6b5a45;
    --primary-light: #a89074;
    --accent: #c9a961;
    --accent-dark: #b39548;
    --secondary: #3a3633;
    --beige-light: #f7f3ed;
    --beige: #e8dfd2;
    --beige-dark: #d4c4a8;
    --cream: #faf8f3;
    --text-light: #8a8177;
    --text-dark: #2c2826;
    --bg-light: #fdfcf9;
    --border: #e5dfd5;
    --shadow-sm: 0 1px 2px 0 rgba(44, 40, 38, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(44, 40, 38, 0.08), 0 2px 4px -1px rgba(44, 40, 38, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(44, 40, 38, 0.08), 0 4px 6px -2px rgba(44, 40, 38, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(44, 40, 38, 0.08), 0 10px 10px -5px rgba(44, 40, 38, 0.03);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: var(--cream);
}

/* ===============================
   Typography
   =============================== */

.logo-modern {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-light {
    background: linear-gradient(135deg, var(--accent) 0%, var(--beige-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===============================
   Navigation
   =============================== */

#navbar {
    transition: all 0.3s ease;
}

#navbar {
    background: rgba(250, 248, 243, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}

#navbar.scrolled {
    background: rgba(250, 248, 243, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-link {
    position: relative;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 600px;
}

.mobile-link {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mobile-link:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Hamburger Menu */
.mobile-menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===============================
   Buttons
   =============================== */

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--cream);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-modern-secondary {
    background: var(--cream);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-modern-secondary:hover {
    background: var(--primary);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--cream);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 169, 97, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ===============================
   Hero Section
   =============================== */

.hero-modern {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    width: 100%;
    height: 100vh;
}

.hero-slider .swiper-slide {
    overflow: hidden;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    will-change: transform;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(201, 169, 97, 0.3);
}

/* ===============================
   Service Cards
   =============================== */

.service-card {
    background: var(--cream);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.service-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===============================
   Process Steps
   =============================== */

.process-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

/* ===============================
   Project Cards
   =============================== */

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: white;
    border: 2px solid var(--border);
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.project-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-view-project {
    background: white;
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .btn-view-project {
    transform: translateY(0);
}

.project-tag {
    background: var(--beige);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-tag.commercial {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.project-tag.public {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

/* ===============================
   Testimonials
   =============================== */

.testimonial-modern {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.testimonials-carousel .swiper-pagination-bullet {
    background: var(--primary);
}

/* ===============================
   Resources
   =============================== */

.resource-card {
    background: var(--cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.resource-image {
    position: relative;
}

.resource-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--cream);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.resource-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.resource-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* ===============================
   FAQ
   =============================== */

.faq-modern {
    background: var(--cream);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-modern.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.faq-modern.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

/* ===============================
   Contact Form
   =============================== */

.contact-form-modern {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    color: white;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.input-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
}

.input-modern:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.input-modern::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.btn-submit-form {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--cream);
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.4);
}

/* ===============================
   Footer
   =============================== */

.footer-link {
    color: #9ca3af;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    transform: translateY(-5px);
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px 0 0 50px;
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: 0 50px 50px 0;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: var(--accent-dark);
}

/* ===============================
   WhatsApp Float
   =============================== */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

/* ===============================
   Scroll to Top
   =============================== */

.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--cream);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
}

.scroll-top-btn.show {
    display: flex;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

/* ===============================
   Animations
   =============================== */

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===============================
   Loading Animation
   =============================== */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero Text Centering and Overlay */
.hero-modern h1,
.hero-modern p {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Additional overlay for text area */
.hero-modern .text-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 80%);
    z-index: 1;
    pointer-events: none;
}

.hero-modern .stat-card {
    background: rgba(139, 115, 85, 0.1);
    border-color: rgba(201, 169, 97, 0.2);
}

/* Prevent scroll issues */
.hero-modern {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* ===============================
   Responsive Design
   =============================== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .process-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .service-card,
    .project-card,
    .resource-card {
        margin-bottom: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        left: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }
}

/* ===============================
   Print Styles
   =============================== */

@media print {
    .whatsapp-float,
    .scroll-top-btn,
    #navbar,
    footer {
        display: none !important;
    }
}