/* CSS Variables */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #4CAf8F;
    --accent-color-1: #936A5B;
    --accent-color-2: #E6B89C;
    --light-text-color: #F7F9FA;
    --dark-text-color: #3B3C3F;
    --card-bg-light: rgba(255, 255, 255, 0.05);
    --card-border-light: rgba(255, 255, 255, 0.1);
    --white-color: #fff;
    --gray-light: #E5E7EB;
    --black-color: #1e1e1e;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --input-bg: #F1F3F4;
    --input-border: #ddd;
    --placeholder-color: #9CA3AF;
    --error-color: red;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--light-text-color);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.gradient-text-primary {
    color: var(--light-text-color);
}

.gradient-text-secondary {
    color: var(--accent-color-1);
}

.gradient-text-tertiary {
    color: var(--accent-color-2);
}

.dark-text {
    color: var(--dark-text-color);
}

.light-text {
    color: var(--light-text-color);
}

.subtitle {
    font-size: 2rem;
    margin-bottom: 8px;
}

.description {
    font-size: 14px;
    line-height: 1.6;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--light-text-color);
    border-radius: 8px;
    background: none;
    color: var(--light-text-color);
    cursor: pointer;
    transition: 0.3s;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* Custom button effect (for hero and footer) */
.btn-custom {
    background: var(--accent-color-1);
    border: 1px solid var(--light-text-color);
    color: var(--light-text-color);
}

.btn-custom::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--light-text-color);
    z-index: -1;
    transition: 0.3s;
}

.btn-custom:hover {
    color: var(--dark-text-color);
}

.btn-custom:hover::after {
    height: 100%;
    bottom: 0;
    top: auto;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    background: linear-gradient(to right, var(--accent-color-2), #cda486);
    color: var(--black-color);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(230, 184, 156, 0.4);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 76px);
    padding: 0 5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.hero-content {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-left .description {
    margin-top: 24px;
    max-width: 330px;
}

.hero-animation {
    flex: 1;
    display: flex;
    justify-content: center;
}

lottie-player {
    width: 500px;
    height: 500px;
}

.hero-title {
    font-size: 4rem;
}

/* Cards (shared style for services and features) */
.card {
    background: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.card-text {
    font-size: 14px;
    line-height: 1.6;
}

/* Services Section */
.services-section-container {
    background: var(--light-text-color);
    padding: 8rem 1rem;
}

.services-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
    grid-template-columns: 1fr;
}

.services-card .card-icon-wrapper {
    background: var(--card-border-light);
}

.services-card .card-icon {
    color: var(--accent-color-1);
    font-size: 1.5rem;
}

.services-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: var(--accent-color-1);
    margin-top: 10px;
}

.services-link i {
    font-size: 12px;
}

/* Features Section */
.features-section {
    background: var(--black-color);
    padding: 8rem 1rem;
}

.features-grid {
    display: grid;
    gap: 24px;
    margin-top: 32px;
    grid-template-columns: 1fr;
}

.feature-card .card-icon-wrapper {
    background: transparent;
}

.feature-card .card-icon {
    color: var(--accent-color-2);
    font-size: 1.5rem;
}

/* Portfolio Section */
.portfolio-section-container {
    background: var(--light-text-color);
    padding: 8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    max-width: 1280px;
    width: 100%;
}

.portfolio-card {
    width: 320px;
    background-color: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-card img {
    width: 100%;
    display: block;
    height: auto;
}

/* CTA Section */
.cta-section {
    padding: 8rem 1rem;
    text-align: center;
    background: var(--black-color);
    color: var(--light-text-color)
}

.cta-subtext {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

/* Services Specific Styles */
.section-padding {
    padding: 8rem 1rem;
    background: var(--light-text-color);
}

.services-section-header {
    max-width: 600px;
    margin: auto;
}

.fw-600 {
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color-1);
}

.subtitle-services {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text-color);
    font-weight: 600;
}

.description-services {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-text-color);
}

.btn-services {
    padding: 1rem 2rem;
    font-weight: 600;
    font-family: var(--base-font);
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.btn-accent {
    background: transparent;
    color: var(--accent-color-1);
    border: 1px solid var(--accent-color-1);
}

.btn-accent::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: var(--accent-color-1);
    z-index: -1;
    transition: 0.3s;
    border-radius: 5px;
}

.btn-accent:hover {
    color: #fff;
}

.btn-accent:hover::after {
    height: 100%;
    bottom: 0;
    top: auto;
}

.btn-liquid {
    background: linear-gradient(var(--light-text-color) 0 0) no-repeat calc(200% - var(--p, 0%)) 100%/200% var(--p, 0.2em);
    transition: 0.3s var(--t, 0s), background-position 0.3s calc(0.3s - var(--t, 0s));
}

.btn-liquid:hover {
    --p: 100%;
    --t: 0.3s;
    color: gray;
}

.services-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.services-card {
    background: var(--white-color);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: all 0.3s ease;
}

.services-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--card-shadow);
}

.services-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.services-icon {
    color: var(--accent-color-1);
    font-size: 1.5rem;
}

.services-card-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-text-color);
    margin-bottom: 0.5rem;
}

.services-tagline {
    font-size: 14px;
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

.services-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2.5rem;
}

.services-list li {
    font-size: 14px;
    margin-bottom: 0.5rem;
    color: var(--dark-text-color);
    position: relative;
    padding-left: 1.4rem;
}

.services-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.services-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Portfolio Specific Styles */
.fw-600-only {
    font-weight: 600;
}

.subtitle-portfolio {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--dark-text-color);
}

.description-portfolio {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-text-color);
}

.section-header-portfolio {
    max-width: 600px;
    margin-bottom: 48px;
}

.portfolio-section {
    padding: 8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light-text-color);
}

.portfolio-highlight {
    color: var(--accent-color-1);
}

.portfolio-grid {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.portfolio-card-portfolio {
    background: var(--white-color);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--card-shadow);
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    transition: transform 0.3s ease;
}

.portfolio-card-portfolio:hover {
    transform: translateY(-6px);
}

.portfolio-card-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white-color);
}

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

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

.portfolio-card-content {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-text-color);
}

.portfolio-card-description {
    font-size: 14px;
    color: var(--dark-text-color);
    line-height: 1.6;
}

/* About Section Styles */
.section-padding-4rem {
    padding: 4rem 1rem;
    background: var(--light-text-color);
}

.subtitle-about {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text-color);
}

.description-about {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-text-color);
}

.highlight {
    color: var(--accent-color-1);
}

.about-section .container {
    display: flex;
    flex-wrap: wrap;
    background: var(--white-color);
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--card-shadow);
    overflow: hidden;
}

.about-image-wrapper,
.about-content-wrapper {
    flex: 1 1 100%;
    padding: 2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Contact Form Section */
.form-section {
    display: flex;
    justify-content: center;
}

.form-wrapper {
    background: var(--white-color);
    padding: 3rem;
    width: 100%;
    max-width: 960px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--card-shadow);
}

.form-image-wrapper {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-image-wrapper img {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
}

.form-box {
    flex: 1 1 350px;
    color: var(--dark-text-color);
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-field,
.textarea-field {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border-radius: 12px;
    background-color: var(--input-bg);
    color: var(--dark-text-color);
    border: 1px solid var(--input-border);
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
}

.textarea-field {
    height: 120px;
    resize: vertical;
    padding-left: 1rem;
}

.input-field:focus,
.textarea-field:focus {
    border-color: var(--accent-color-1);
    background-color: var(--white-color);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color-1);
    font-size: 1rem;
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: var(--placeholder-color);
}

.error-message {
    font-size: 13px;
    color: var(--error-color);
    margin-top: 4px;
    margin-left: 4px;
}

.submit-button {
    margin-top: 1rem;
    padding: 1rem 2rem;
    background-color: var(--accent-color-1);
    color: var(--light-text-color);
    border: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    cursor: not-allowed;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.submit-button.enabled {
    cursor: pointer;
    background-color: #7c594d;
}

.submit-button.enabled:hover {
    transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1058px) {
    .hero-section {
        padding-top: calc(76px + 2rem);
        padding-bottom: 2rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    lottie-player {
        width: 300px;
        height: 300px;
    }

    .hero-left {
        align-items: center;
        text-align: center;
    }
}

@media (min-width: 680px) {
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-card {
        width: 90%;
        max-width: 300px;
    }

    .portfolio-gallery {
        gap: 24px;
    }

    .portfolio-section-title {
        font-size: 1.75rem;
    }

    .form-wrapper {
        flex-direction: column;
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .subtitle-services {
        font-size: 1.75rem;
    }

    .services-card .services-list {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .about-image-wrapper,
    .about-content-wrapper {
        flex: 1 1 50%;
    }

    .portfolio-card-portfolio {
        flex: 1 1 calc(33.333% - 24px);
        max-width: calc(33.333% - 24px);
    }
}