:root {
    --bg-color: #FDFBF7;
    --bg-light: #F2EFE9;
    --bg-dark: #2C2C2C;
    --text-color: #2C2C2C;
    --text-light: #FDFBF7;
    --accent-color: #D4C5B0;
    --accent-dark: #B0A08B;
    --border-color: #E0DED8;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../assets/fonts/montserrat/montserrat-v31-latin-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/montserrat/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../assets/fonts/montserrat/montserrat-v31-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/montserrat/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/cormorant/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/cormorant/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 20px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

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

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

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

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
    padding: 0 0 2px;
    font-weight: 500;
    cursor: pointer;
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    background-color: rgba(255,255,255,0.8);
    color: var(--text-color);
    border: 1px solid #ccc;
}

/* Navigation */
.navbar {
    height: var(--header-height);
    background-color: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: var(--transition);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 9px; }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }

/* Hero Section */
.hero-section {
    height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.hero-content {
    padding: 20px;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    height: 80%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.canvas-wrapper {
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    border-radius: 4px; /* Slight architectural roundness */
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.viewer-hint {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    opacity: 0.7;
}

.viewer-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.icon-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: var(--transition);
    color: var(--text-color);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    background-color: white;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.portfolio-thumb {
    height: 300px;
    overflow: hidden;
    background-color: var(--bg-light);
    position: relative;
}

.portfolio-render {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    min-height: 3em;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.price {
    font-weight: 600;
    font-size: 1rem;
}

/* Services Section */
.bg-light {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    background-color: var(--bg-color);
    padding: 40px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--accent-color);
}

.service-icon {
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.service-list {
    text-align: left;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #555;
    padding-left: 20px;
}

.service-list li {
    list-style-type: disc;
    margin-bottom: 8px;
}

.service-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #555;
}

.tools-list h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background-color: var(--bg-light);
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.about-visual {
    display: flex;
    justify-content: center;
}

.wireframe-box {
    width: 300px;
    height: 300px;
    position: relative;
}

.rotating-grid {
    animation: rotate 60s linear infinite;
}

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

/* Contact Section */
.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

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

.section-title.light::after {
    background-color: var(--accent-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 40px;
}

.contact-links li {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.contact-links .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.contact-links a {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

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

.contact-form {
    background-color: rgba(255,255,255,0.05);
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
}

.form-status {
    min-height: 1.2em;
    margin: 10px 0 14px;
    font-size: 0.9rem;
}

.form-status[data-state="success"] {
    color: #b7f7c7;
}

.form-status[data-state="error"] {
    color: #ffb3b3;
}

.form-status[data-state="pending"] {
    color: rgba(255,255,255,0.8);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-family: var(--font-body);
}

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

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #666;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background-color: var(--bg-color);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.modal-canvas-wrapper {
    flex: 1;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.modal-controls {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    justify-content: flex-end;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 50;
    transition: opacity 0.5s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #ccc;
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin-bottom: 10px;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-container { 
        grid-template-columns: 1fr; 
        grid-template-rows: auto 1fr;
    }
    .hero-visual { height: 400px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.5rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-visual { order: -1; margin-bottom: 40px; }
}
