/* 
   KaSmart - Luxury Design System 
   Colors: Rich Cocoa & Copper Gold
*/

:root {
    --bg-dark: #1e1410;
    /* Deep cocoa brown */
    --bg-panel: #2d1e18;
    /* Lighter warm brown */
    --text-primary: #f2e6d9;
    /* Warm off-white */
    --text-secondary: #c9b1a6;
    /* Muted beige */
    --gold: #c5a080;
    /* Muted Copper Gold */
    --gold-light: #e6cbb4;
    --glass-bg: rgba(60, 40, 30, 0.4);
    --glass-border: rgba(197, 160, 128, 0.1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text-bold,
.section-title {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-slow);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight-gold {
    color: var(--gold);
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold), #8a6a50);
    color: #1a0f0a;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 128, 0.2);
}

.btn-outline {
    border-color: rgba(242, 230, 217, 0.3);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-slow);
    background: linear-gradient(to bottom, rgba(30, 20, 16, 0.8), transparent);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(30, 20, 16, 0.95);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
}

.logo-text-thin {
    font-weight: 300;
    opacity: 0.9;
}

.logo-text-bold {
    font-weight: 700;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition-slow);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg-comprehensive.png') no-repeat center center/cover;
    z-index: -2;
    animation: pulseBg 20s infinite alternate;
}

/* Dark overlay for contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 20, 16, 0.3), rgba(30, 20, 16, 0.8));
    z-index: -1;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 400;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}


.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0;
    /* Remove padding to let image fill if needed, but we used a container */
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    height: 300px;
    /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    /* Low opacity to blend with brown glass */
    transition: var(--transition-slow);
    z-index: 1;
}

.glass-card:hover .card-bg {
    transform: scale(1.1);
    opacity: 0.5;
}

.service-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(to top, rgba(30, 20, 16, 0.95), transparent);
}


.service-icon {
    color: var(--gold);
    margin-bottom: 1.5rem;
    transform: scale(1.2);
    transform-origin: left;
}

.glass-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    background: linear-gradient(to right, var(--bg-dark), #14171e);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list i {
    color: var(--gold);
    width: 20px;
}

.about-visual {
    height: 400px;
    border: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abstract-visual {
    width: 100%;
    height: 100%;
    background: url('images/abstract-bg.png') no-repeat center center/cover;
    position: relative;
    transition: transform 5s ease;
}

.about-visual:hover .abstract-visual {
    transform: scale(1.05);
}

.abstract-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 20, 16, 0.2);
}

/* Contact Section */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--gold);
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: white;
    font-family: inherit;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
}

.footer-links a {
    margin-left: 2rem;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
        color: white;
    }

    .about-container,
    .glass-panel {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }

    .contact-panel {
        padding: 2rem;
    }
}

/* Scenarios Section */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.scenario-card {
    height: auto;
    min-height: 250px;
    justify-content: flex-start;
    /* Override glass-card bottom alignment */
}

.scenario-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.scenario-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-simple {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.3);
}

.badge-complex {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

/* Hover effects for badges */
.scenario-card:hover .badge-simple {
    background: rgba(46, 204, 113, 0.2);
}

.scenario-card:hover .badge-complex {
    background: rgba(231, 76, 60, 0.2);
}

.badge-pro {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
}

.scenario-card:hover .badge-pro {
    background: rgba(52, 152, 219, 0.2);
}

.badge-care {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.3);
}

.scenario-card:hover .badge-care {
    background: rgba(155, 89, 182, 0.2);
}