/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --primary: #1e3243;       /* Deep Slate Blue (Slate/Iron feel) */
    --primary-light: #2c475e;
    --primary-dark: #121f2b;
    --accent: #c5a880;        /* Champagne Gold */
    --accent-light: #d6be9e;
    --accent-dark: #b09168;
    --text-main: #334155;     /* Slate 700 */
    --text-light: #64748b;    /* Slate 500 */
    --text-white: #ffffff;
    --bg-light: #f8fafc;      /* Slate 50 */
    --bg-white: #ffffff;
    --bg-dark: #0f172a;       /* Slate 900 */
    --border: #e2e8f0;        /* Slate 200 */
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Layout & Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.section-header {
    margin-bottom: 3.5rem;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 5px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.section-header.text-center .section-subtitle::after {
    left: 50%;
}

.about-text .section-subtitle::after {
    left: 0;
    transform: none;
}

.contact-info .section-subtitle::after {
    left: 0;
    transform: none;
}

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

.section-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background-color: var(--text-white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 0.95rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-dark);
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

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

.btn-nav {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        transition: var(--transition);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .btn-nav {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--text-white);
    padding-top: var(--header-height);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 50, 67, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down a {
    font-size: 1.5rem;
    color: var(--text-white);
    opacity: 0.7;
}

.scroll-down a:hover {
    opacity: 1;
}

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

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 7.5rem 0;
    background-color: var(--bg-white);
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.about-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge i {
    font-size: 1.5rem;
    color: var(--accent-dark);
}

.badge span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: visible;
}

.about-image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    object-fit: cover;
    width: 100%;
    max-height: 450px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--accent);
}

.experience-badge .years {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.experience-badge .exp-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    text-align: center;
}

@media (max-width: 992px) {
    .experience-badge {
        right: 10px;
        bottom: 10px;
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 7.5rem 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-dark);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
    padding: 7.5rem 0;
    background-color: var(--bg-white);
}

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

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 350px;
    box-shadow: var(--shadow);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 70%);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

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

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

.portfolio-info {
    color: var(--text-white);
}

.portfolio-info .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-info h4 {
    color: var(--text-white);
    font-size: 1.25rem;
}

/* ==========================================================================
   COMMITMENTS SECTION
   ========================================================================== */
.commitments-section {
    padding: 7.5rem 0;
    background-color: var(--bg-light);
}

.commitments-wrapper {
    align-items: center;
}

.commitments-illustration {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card-feature {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-left: 4px solid var(--primary);
}

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

.card-feature h4 {
    font-size: 1.1rem;
}

.card-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.commitments-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.commitments-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.commitments-list li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.commitments-list li i {
    font-size: 1.1rem;
    color: var(--accent-dark);
    background-color: var(--bg-white);
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.commitments-list li strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.commitments-list li p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 7.5rem 0;
    background-color: var(--bg-white);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-dark);
    background-color: var(--bg-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.contact-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.contact-item a, .contact-item p {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
}

.contact-item a:hover {
    color: var(--accent-dark);
}

/* Form Styles */
.contact-form-wrapper {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    gap: 1.5rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background-color: var(--bg-white);
    color: var(--text-main);
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

.form-feedback {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    text-align: center;
}

.form-feedback.success {
    color: #2e7d32;
}

.form-feedback.error {
    color: #c62828;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary-dark);
    color: var(--text-white);
    padding: 5rem 0;
    border-top: 4px solid var(--accent);
}

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

.footer-logo .brand-title {
    color: var(--text-white);
    font-size: 2rem;
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}
