@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-color: #FAFAF9;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    
    --accent-bronze: #92400E; /* Richer Bronze */
    --accent-glow: #FDE68A;
    --border-color: rgba(0,0,0,0.05);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(253, 230, 138, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(146, 64, 14, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #111827;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* CTA Button Styling */
.cta-button {
    display: inline-block;
    background-color: var(--accent-bronze);
    color: #FFFFFF;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background-color: #78350F;
}

/* Hero Section - Updated for dynamic background */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden; /* Contains the background */
    perspective: 1000px; /* For 3D depth */
}

/* 3D Background Carousel */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through to content */
}

.carousel-scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    /* Animation will be driven by JS for control, but we set defaults */
    will-change: transform;
}

.carousel-item {
    position: absolute;
    width: 300px; /* Adjust size as needed */
    height: 200px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -100px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    opacity: 0.4; /* Subtle visibility */
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    /* Individual transforms set by JS */
}

/* Overlay to ensure text readability */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(250, 250, 249, 0.7) 0%, rgba(250, 250, 249, 1) 80%);
    z-index: 1;
}

/* Hero content needs higher z-index now */
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Weather Widget */
.weather-widget {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 20;
    box-shadow: var(--shadow-sm);
    opacity: 0; /* Hidden initially */
    transform: translateY(-10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.weather-widget.visible {
    opacity: 1;
    transform: translateY(0);
}

.weather-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
}

.weather-info {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.weather-location {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
}

/* The Grid Layout */
.project-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 40px;
}

/* The Component Card */
.project-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.5rem;
    border: none;
}

.version-badge {
    background: rgba(146, 64, 14, 0.1);
    color: var(--accent-bronze);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* Technical Tags */
.tech-stack {
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 99px;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    border-color: var(--accent-bronze);
    color: var(--accent-bronze);
    background: rgba(146, 64, 14, 0.05);
}

.card-footer {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Timeline Container */
.timeline-section {
    padding: 120px 20px;
    background-color: transparent; /* Remove solid bg to show gradient */
    border-top: none;
    position: relative;
}

/* Add a subtle separator line via pseudo-element if needed, or keep clean */

.steps-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch; /* Stretch to equal height */
    max-width: 1200px;
    margin: 60px auto 0;
    gap: 30px;
}

/* The Individual Step */
.step-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.5);
    flex: 1;
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: #FFF;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
}

.step-card h3 {
    color: var(--accent-bronze);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.step-card h4 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* The Connector Arrow */
.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bronze);
    font-size: 1.5rem;
    opacity: 0.3;
}
/* We will replace the CSS triangle with a simple arrow icon or line in HTML if possible, 
   but for now, let's just make it a simple line */
.step-connector::after {
    content: '→';
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .step-card {
        width: auto;
    }
    
    h1 { font-size: 2.5rem; }
}

/* Contact Section */
.contact-section {
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--accent-bronze);
    color: white;
    border: 1px solid var(--accent-bronze);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: #78350F;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: #FFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 60px;
    font-family: var(--font-heading);
}