:root {
    --primary-color: #6200ee;
    --primary-variant: #3700b3;
    --secondary-color: #03dac6;
    --background-color: #f5f5f5;
    --surface-color: #ffffff;
    --error-color: #b00020;
    --on-primary: #ffffff;
    --on-surface: #000000;
    --shadow-1: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    --shadow-2: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    --shadow-hover: 0 5px 5px -3px rgba(0,0,0,0.2), 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12);
}

body {
    background-color: var(--background-color);
    color: var(--on-surface);
    margin: 0;
    font-family: Roboto, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.app-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.app-header {
    background-color: var(--surface-color);
    color: var(--primary-color);
    padding: 16px 24px;
    display: flex;
    flex-direction: row; /* Changed to row */
    align-items: center;
    justify-content: space-between; /* Space between logo and nav */
    box-shadow: var(--shadow-1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-branding {
    display: flex;
    flex-direction: row; /* Changed to row */
    align-items: center;
    gap: 12px; /* Add gap between logo and title */
    margin-bottom: 0; /* Remove margin */
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px; /* Square with slight radius */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 0; /* Remove margin */
    box-shadow: var(--shadow-2);
}

.app-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.15px;
    color: var(--on-surface);
}

.header-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Mobile Menu Button - Hidden on Desktop */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--on-surface);
    padding: 8px;
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -280px; /* Hide off-screen */
    width: 280px;
    height: 100%;
    background: var(--surface-color);
    z-index: 1001;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-sizing: border-box;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-btn {
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    padding: 12px;
    color: var(--on-surface);
    border-radius: 8px;
    cursor: pointer;
}

.mobile-nav-btn.active {
    background-color: rgba(98, 0, 238, 0.08);
    color: var(--primary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .header-nav {
        display: none; /* Hide desktop nav */
    }
    .mobile-menu-btn {
        display: block; /* Show mobile toggle */
    }
}

.nav-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 0 16px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1.25px;
    transition: background-color 0.2s, color 0.2s;
}

.nav-btn:hover {
    background-color: rgba(98, 0, 238, 0.04);
    color: var(--primary-color);
}

.nav-btn.active {
    color: var(--primary-color);
    background-color: rgba(98, 0, 238, 0.08);
}

/* Main Content */
.app-main {
    flex: 1;
    padding: 0; /* Remove padding to allow full width sections */
}

/* Fullscreen Hero */
.hero-fullscreen {
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1920x1080/?technology,design');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

/* Fallback background color if image fails */
.hero-fullscreen {
    background-color: #333; 
}

.hero-overlay {
    max-width: 800px;
    padding: 20px;
}

.hero-overlay h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-overlay p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    animation: fadeIn 0.3s ease-in-out;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slider Component */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 40px; /* Space for arrows */
}

.slider-track-container {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 10px;
    box-sizing: border-box;
}

.slide-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column; /* Stack image and text on mobile */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slide-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

@media (min-width: 600px) {
    .slide-content {
        flex-direction: row; /* Side by side on desktop */
        height: 300px;
    }
}

.slide-image {
    flex: 1;
    min-height: 200px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.6);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background: var(--primary-color);
}

/* Cards (Standard) */
.card {
    background-color: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    transform: translateY(-4px);
}

/* Blog List */
.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .blog-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-list {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    padding: 0; /* Remove default padding for cleaner image look */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.meta-info {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 12px;
    display: block;
}

/* Contact Form */
.contact-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
}

.material-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box; 
}

.material-input:focus {
    outline: none;
    border-bottom: 2px solid var(--primary-color);
}

textarea.material-input {
    resize: vertical;
    min-height: 120px;
}

/* Buttons */
button {
    font-family: inherit;
}

.btn-contained {
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    padding: 0 24px;
    height: 40px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    cursor: pointer;
    box-shadow: var(--shadow-2);
    transition: box-shadow 0.2s, background-color 0.2s;
}

.btn-contained:hover {
    box-shadow: var(--shadow-hover);
    background-color: var(--primary-variant);
}

.btn-primary {
    /* Base button styles */
    background-color: var(--primary-color);
    color: var(--on-primary);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    cursor: pointer;
    box-shadow: var(--shadow-2);
    transition: box-shadow 0.2s;
}

.btn-primary:hover {
    box-shadow: var(--shadow-hover);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0 12px;
    height: 36px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-text:hover {
    background-color: rgba(98, 0, 238, 0.04);
}

/* Utilities */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    border: 1px solid #ffcdd2;
}

.app-footer {
    text-align: center;
    padding: 32px;
    color: #666;
    background-color: var(--surface-color);
    margin-top: auto;
    border-top: 1px solid #eee;
}
