:root {
    /* Midnight Emerald Theme Variables */
    --bg-dark: #070b14;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-hover: rgba(15, 23, 42, 0.8);
    --primary: #06b6d4;
    --primary-hover: #0891b2;
    --secondary: #3b82f6;
    --accent: #22d3ee;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(6, 182, 212, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.font-bold {
    font-weight: bold;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Glassmorphism base */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover:not(.btn) {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(6, 182, 212, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, rgba(7, 11, 20, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Bento Grid Showcase */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
    margin-top: 40px;
}

.bento-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.15);
}

.featured-project {
    grid-column: span 2;
    grid-row: span 1;
    display: flex;
    flex-direction: row;
    min-height: 380px;
}

.featured-project .project-image-container {
    width: 50%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border-light);
    background: #1e293b;
}

.featured-project .project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.featured-project .project-image-container:hover .project-screenshot {
    transform: scale(1.03);
}

.featured-project .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 20, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.featured-project .project-image-container:hover .project-overlay {
    opacity: 1;
}

.featured-project .project-info {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-project .project-info h3 {
    font-size: 1.85rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.featured-project .project-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.925rem;
    line-height: 1.5;
}

.featured-project .project-actions {
    display: flex;
    gap: 12px;
}

/* Weather Card Widget */
.weather-card {
    grid-column: span 1;
    grid-row: span 2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.4));
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.weather-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-main);
    letter-spacing: -0.2px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.live-badge .pulse {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulseAnimation 1.5s infinite;
}

@keyframes pulseAnimation {
    0% { transform: scale(0.9); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.5; }
    100% { transform: scale(0.9); opacity: 1; }
}

.weather-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.weather-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(6, 182, 212, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.weather-main {
    margin-bottom: 16px;
}

.weather-temp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.weather-emoji {
    font-size: 3.25rem;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1;
}

.weather-condition {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 8px;
}

.weather-details {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: auto;
}

.weather-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.weather-detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.weather-detail-value {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Stat Cards */
.stat-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.stat-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Timeline/Workflow */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.timeline-item {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
}

.timeline-number {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin: 0 auto 20px auto;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.timeline-item h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

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

/* Pricing Section */
.pricing-container {
    max-width: 580px;
    margin: 0 auto;
}

.pricing-card {
    padding: 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid var(--border-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card .card-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.price-strike {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 3.5rem;
    font-weight: 800;
    color: #10b981;
    font-family: var(--font-heading);
}

.price-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.pricing-inclusions-block {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 28px;
    text-align: left;
}

.inclusion-title {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inclusion-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.inclusion-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.inclusion-text a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.feature-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 0 auto 32px auto;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.feature-list svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Wrapper override for alignment */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.contact-info {
    padding: 90px 72px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.form-file-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.form-file-input:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.form-file-input::file-selector-button {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border: 1px solid var(--border-glow);
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.form-file-input::file-selector-button:hover {
    background: var(--primary);
    color: #fff;
}

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

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-perks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1.1rem;
}

.perk svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.contact-form-container {
    padding: 60px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.form-success {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    border-radius: inherit;
    z-index: 10;
    opacity: 1;
    transition: var(--transition);
}

.form-success.hidden {
    opacity: 0;
    pointer-events: none;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #10b981;
    margin-bottom: 24px;
    background: rgba(16, 185, 129, 0.1);
    padding: 12px;
    border-radius: 50%;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
    background: rgba(0,0,0,0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    text-decoration: none;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; max-width: 400px; }
    .contact-info { padding: 60px 48px; }
    .contact-form-container { padding: 40px; }
    
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .featured-project {
        grid-column: span 2;
    }
    .weather-card {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; } /* Could add a hamburger menu for full mobile support */
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { text-align: center; }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-gap: 20px;
    }
    .featured-project {
        grid-column: span 1;
        flex-direction: column;
    }
    .featured-project .project-image-container,
    .featured-project .project-info {
        width: 100%;
    }
    .featured-project .project-image-container {
        height: 220px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .weather-card {
        grid-column: span 1;
    }
}
