/* style.css - KA Architecture Studio Portfolio Theme */

/* --- DESIGN TOKENS --- */
:root {
    --primary: #4A5D4E;
    --primary-light: #657960;
    --primary-dark: #334136;
    --accent: #C2A061; /* Luxury architectural gold */
    --accent-light: #E0C38C;
    
    /* Harmonious Light Backgrounds */
    --bg-cream: #FAF9F6; /* Premium alabaster warm cream */
    --bg-white: #FFFFFF;
    
    /* Sleek Dark Backgrounds */
    --bg-dark: #1A1F1B; /* Rich slate charcoal with green undertones */
    --bg-dark-panel: #232A25;
    
    /* Typography Colors */
    --text-dark: #2C332E;
    --text-muted: #6B7570;
    --text-light: #FAF9F6;
    --text-light-muted: #A5B0AA;
    
    /* Borders & Details */
    --border-light: rgba(74, 93, 78, 0.12);
    --border-dark: rgba(250, 249, 246, 0.1);
    --glow: rgba(194, 160, 97, 0.25);
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-cream);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}

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

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

/* --- TYPOGRAPHY UTILITIES --- */
.section-tag {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: inherit;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(74, 93, 78, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: rgba(250, 249, 246, 0.3);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-dark);
    border-color: var(--text-light);
}

.btn-block {
    width: 100%;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary);
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
}

.btn-text i {
    transition: var(--transition-fast);
}

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

.btn-text:hover i {
    transform: translateX(5px);
}

/* --- NAVIGATION NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 31, 27, 0.85); /* Semitransparent dark base */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-light);
}

.logo-symbol {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    border: 1px solid var(--accent);
    padding: 0.1rem 0.5rem;
    line-height: 1;
    color: var(--accent);
}

.logo-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-item {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light-muted);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

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

.nav-toggle .bar {
    width: 25px;
    height: 1px;
    background-color: var(--text-light);
    transition: var(--transition-smooth);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

/* Dynamic Blueprint Grid Background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(250, 249, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(250, 249, 246, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    opacity: 0.8;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(101, 121, 96, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: rotateGlow 30s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    margin-bottom: auto;
    margin-top: auto;
}

.hero-title {
    font-size: 4.8rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1100px;
    width: 100%;
    margin: 4rem auto 0;
    border-top: 1px solid var(--border-dark);
    padding-top: 2rem;
    position: relative;
    z-index: 10;
}

.stat-item {
    text-align: center;
    border-right: 1px solid var(--border-dark);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light-muted);
}

/* --- ABOUT & PHILOSOPHY SECTION --- */
.about-section {
    padding: 8rem 2rem;
    background-color: var(--bg-cream);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: start;
}

.about-text-column p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: 1.3rem !important;
    line-height: 1.5;
    color: var(--text-dark) !important;
}

.philosophy-column {
    background-color: var(--bg-white);
    padding: 3.5rem 3rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 40px rgba(74, 93, 78, 0.03);
}

.philosophy-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.philosophy-card:last-child {
    margin-bottom: 0;
}

.philosophy-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-top: 0.2rem;
}

.philosophy-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.philosophy-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-section {
    padding: 8rem 2rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
}

.portfolio-header {
    max-width: 1200px;
    margin: 0 auto 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.filter-btn {
    background: none;
    border: 1px solid var(--border-light);
    padding: 0.6rem 1.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
}

/* Portfolio Grid System */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem 2rem;
}

.portfolio-card {
    background-color: var(--bg-cream);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(74, 93, 78, 0.08);
}

.card-image-wrapper {
    height: 250px;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-sketch-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sketch-svg {
    width: 75%;
    height: 75%;
    transition: var(--transition-smooth);
}

.category-watermark {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light-muted);
    opacity: 0.4;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(74, 93, 78, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.view-project-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 0.3rem;
}

.portfolio-card:hover .sketch-svg {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.15;
}

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

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

.card-meta {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Hide animations for non-filtered items */
.portfolio-card.filtered-out {
    display: none;
}

/* --- DYNAMIC MODAL --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 31, 27, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 2rem;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-cream);
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-fast);
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 4rem 3.5rem;
}

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

.modal-title {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-top: 2rem;
}

.modal-left-col h3, .modal-right-col h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.modal-left-col p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-highlights {
    list-style: none;
}

.modal-highlights li {
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.modal-highlights li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--primary);
    font-size: 0.75rem;
}

.modal-meta-box {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 1.8rem;
}

.meta-item {
    margin-bottom: 1.2rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.meta-val {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* --- CONTACT SECTION --- */
.contact-section {
    padding: 8rem 2rem;
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem;
    position: relative;
    z-index: 10;
}

.info-blocks {
    margin: 3rem 0;
}

.info-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.info-text p, .info-text a {
    font-size: 0.9rem;
    color: var(--text-light-muted);
}

.info-text a:hover {
    color: var(--accent);
}

/* Architectural map sketch style */
.map-placeholder {
    height: 200px;
    background-color: var(--bg-dark-panel);
    border: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(194, 160, 97, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-pin {
    font-size: 2.2rem;
    color: var(--accent);
    animation: pulsePin 2s infinite ease-in-out;
}

@keyframes pulsePin {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(194, 160, 97, 0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 10px var(--glow)); }
}

.map-label {
    position: absolute;
    bottom: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light-muted);
}

.contact-form-column {
    background-color: var(--bg-dark-panel);
    padding: 4rem 3.5rem;
    border: 1px solid var(--border-dark);
}

.form-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

/* Minimalist Form Elements */
.minimal-form .form-group {
    margin-bottom: 2rem;
}

.minimal-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light-muted);
    margin-bottom: 0.6rem;
}

.minimal-form input, .minimal-form select, .minimal-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    padding: 0.6rem 0;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border-radius: 0;
}

.minimal-form input:focus, .minimal-form select:focus, .minimal-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.minimal-form select {
    cursor: pointer;
}

.minimal-form select option {
    background-color: var(--bg-dark-panel);
    color: var(--text-light);
}

.form-feedback {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.form-feedback.success {
    color: #8CBA8C;
}

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

/* --- FOOTER --- */
.footer {
    background-color: #111512;
    color: var(--text-light-muted);
    padding: 6rem 2rem 3rem;
    border-top: 1px solid var(--border-dark);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 5rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-dark);
}

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.footer-brand .symbol {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid var(--accent);
    padding: 0.1rem 0.4rem;
    color: var(--accent);
}

.footer-brand .text {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.brand-desc {
    font-size: 0.88rem;
    line-height: 1.6;
}

.footer-contact h3, .footer-links h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
}

.contact-list li i {
    color: var(--accent);
    margin-top: 0.2rem;
}

.contact-list .phones {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-list a:hover {
    color: var(--text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    text-align: center;
    font-size: 0.75rem;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .about-container, .portfolio-grid, .contact-container, .footer-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Mobile menu toggling needed */
    }
    .nav-toggle {
        display: flex;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark-panel);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-dark);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item {
        border-right: none;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 3rem 2rem;
    }
}
