:root {
    /* Colors */
    --primary: #c9a961;
    --primary-dark: #a88943;
    --primary-light: #dbc185;
    --dark: #0a0b10;
    --dark-secondary: #1a1b25;
    --light: #ffffff;
    --light-bg: #fafafa;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e8e8e8;
    
    /* Effects */
    --glass: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Spacing */
    --section-padding: 120px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Work Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.py-sect {
    padding: var(--section-padding) 0;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--primary);
    font-size: 20px;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    transition: var(--transition-fast);
}

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

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

.cta-nav {
    background: var(--dark);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.cta-nav:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(201, 169, 97, 0.3);
}

.nav-extra {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mode-switch {
    background: transparent;
    border: 2px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-dark);
    font-size: 18px;
}

.mode-switch:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 11, 16, 0.85), rgba(10, 11, 16, 0.6)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--light-bg), transparent);
}

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

.hero-text {
    max-width: 700px;
    color: white;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 169, 97, 0.2);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin: 32px 0;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.6s backwards;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(201, 169, 97, 0.3);
}

.btn-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.hero-stats {
    display: flex;
    gap: 60px;
    animation: fadeInUp 0.8s ease 0.8s backwards;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 14px;
    opacity: 0.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

/* Section Headers */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.section-head p {
    font-size: 18px;
    color: var(--text-light);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.s-card {
    padding: 48px 40px;
    border-radius: 24px;
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.s-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.s-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.s-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.s-card-icon i {
    font-size: 32px;
    color: white;
}

.s-card h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.s-card p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.s-features {
    list-style: none;
}

.s-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.s-features i {
    color: var(--primary);
    font-size: 14px;
}

.s-card.featured {
    background: var(--dark);
    color: white;
    transform: scale(1.05);
    position: relative;
}

.s-card.featured .s-card-icon {
    background: var(--primary);
}

.s-card.featured p,
.s-card.featured .s-features li {
    color: rgba(255, 255, 255, 0.8);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Portfolio Section */
.portfolio-section {
    background: white;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.portfolio-item {
    opacity: 1;
    transform: scale(1);
    transition: var(--transition);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.portfolio-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.portfolio-image:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    opacity: 0.9;
    margin-bottom: 16px;
}

.view-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    color: var(--dark);
    transition: var(--transition);
}

.portfolio-image:hover .view-project {
    transform: rotate(45deg);
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    color: white;
    margin-bottom: 20px;
}

.f-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 20px;
}

.f-col p {
    margin-bottom: 16px;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.f-col i {
    color: var(--primary);
    margin-top: 4px;
}

.f-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.f-col a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.socials a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    padding: 0;
    margin: 0;
}

.socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    padding: 0;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-form input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

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

.footer-form .btn {
    width: 100%;
    justify-content: center;
}

.footer-bar {
    padding: 32px 0;
    text-align: center;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: #25d366;
    color: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.burger.toggle span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.toggle span:nth-child(2) {
    opacity: 0;
}

.burger.toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Dark Mode */
body.dark-mode {
    background: var(--dark);
    color: #e8e8e8;
}

body.dark-mode .s-card {
    background: var(--dark-secondary);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode header.scrolled {
    background: rgba(10, 11, 16, 0.95);
}

body.dark-mode .nav-link {
    color: #e8e8e8;
}

body.dark-mode .mode-switch {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8e8e8;
}

body.dark-mode .portfolio-section {
    background: var(--dark-secondary);
}

body.dark-mode .filter-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: #e8e8e8;
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(0);
    }
    40% {
        opacity: 1;
    }
    80% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
    100% {
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

/* Error animation class */
.error-shake {
    animation: shake 0.5s;
    border-color: #ff4444 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .hero-stats {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background: white;
        width: 80%;
        max-width: 400px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    body.dark-mode .nav-menu {
        background: var(--dark);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .burger {
        display: flex;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-item h3 {
        font-size: 36px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .s-card.featured {
        transform: scale(1);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-head h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .whatsapp-btn {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 24px;
        right: 24px;
    }
}