/* CSS Variables */
:root {
    --color-bg: #0a0a0b;
    --color-bg-elevated: #141416;
    --color-surface: #1c1c1f;
    --color-border: #2a2a2e;
    --color-text: #f4f4f5;
    --color-text-muted: #9898a0;
    --color-accent: #c8a876;
    --color-accent-light: #e4d4b5;
    --color-accent-dark: #9e7e52;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Effects */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.3s ease-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 168, 118, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(158, 126, 82, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -150px;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 168, 118, 0.08) 0%, transparent 70%);
    bottom: -100px;
    right: 20%;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(10, 10, 11, 0.9), transparent);
    backdrop-filter: blur(8px);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
    border-color: var(--color-accent-light);
    transform: scale(1.05);
}

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

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

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

.nav-cta {
    background: var(--color-accent);
    color: var(--color-bg) !important;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    transition: background 0.3s ease, transform 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-image-container {
    position: relative;
    animation: fadeInUp 1s var(--ease-out-expo) 0.2s both;
}

.hero-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg-elevated) 100%);
    color: var(--color-text-muted);
}

.image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
}

.hero-image-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.1; }
}

.hero-text {
    animation: fadeInUp 1s var(--ease-out-expo) 0.4s both;
}

.hero-eyebrow {
    font-size: 0.875rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--color-accent);
    font-style: italic;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-description a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.hero-description a:hover {
    color: var(--color-accent-light);
}

.hero-links {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
    transform: translate(3px, -3px);
}

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

.btn-primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 168, 118, 0.2);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 1s var(--ease-out-expo) 0.8s both;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Sections Common */
section {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
}

.section-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
}

.section-number {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-accent);
    font-style: italic;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
}

/* Projects Section */
.projects {
    background: linear-gradient(180deg, transparent 0%, var(--color-bg-elevated) 20%, var(--color-bg-elevated) 80%, transparent 100%);
}

.projects-grid {
    max-width: 1400px;
    margin: 0 auto 6rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.5s var(--ease-out-expo), border-color 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
}

.project-image {
    height: 240px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s var(--ease-out-expo);
}

.project-card:hover .project-placeholder {
    transform: scale(1.05);
}

.project-placeholder.olive {
    background: linear-gradient(135deg, #3d5a3d 0%, #2a3d2a 50%, #1a261a 100%);
    position: relative;
}

.project-placeholder.olive::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(ellipse, #8fa87d 0%, #6b8a5a 50%, transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.project-placeholder.weather {
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 30%, #4a90b8 60%, #87ceeb 100%);
    position: relative;
    overflow: hidden;
}

.project-placeholder.weather::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.project-placeholder.weather::after {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 15%;
    width: 150px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    filter: blur(10px);
}

.project-content {
    padding: 2rem;
}

.project-category {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0.75rem 0 1rem;
}

.project-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

.project-link:hover {
    color: var(--color-accent);
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}

/* Toolkit Section */
.toolkit-section {
    max-width: 1400px;
    margin: 0 auto;
}

.toolkit-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.toolkit-description {
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.toolkit-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.5s var(--ease-out-expo), border-color 0.3s ease, background 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.toolkit-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.toolkit-card:nth-child(2).visible { transition-delay: 0.1s; }
.toolkit-card:nth-child(3).visible { transition-delay: 0.2s; }
.toolkit-card:nth-child(4).visible { transition-delay: 0.3s; }

.toolkit-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    background: var(--color-surface);
}

.toolkit-icon {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
    transition: background 0.3s ease;
}

.toolkit-card:hover .toolkit-icon {
    background: var(--color-accent);
    color: var(--color-bg);
}

.toolkit-icon svg {
    width: 24px;
    height: 24px;
}

.toolkit-card-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.toolkit-card-desc {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.toolkit-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toolkit-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease-out-expo);
}

.toolkit-link:hover {
    color: var(--color-accent-light);
}

.toolkit-link:hover svg {
    transform: translate(2px, -2px);
}

/* About Section */
.about-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6rem;
    align-items: start;
    opacity: 0;
    transform: translateY(40px);
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.about-text {
    max-width: 640px;
}

.about-lead {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.about-text p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-text strong {
    color: var(--color-text);
    font-weight: 500;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s var(--ease-out-expo);
    min-width: 200px;
}

.about-link-card:hover {
    border-color: var(--color-accent);
    transform: translateX(8px);
}

.about-link-card svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.about-link-card:hover svg {
    color: var(--color-accent);
}

.about-link-card span {
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-image-container {
        order: -1;
        justify-self: center;
    }
    
    .hero-image {
        width: 220px;
        height: 220px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-links {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    section {
        padding: 5rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-links {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        justify-content: center;
    }
    
    .about-links {
        flex-direction: column;
    }
    
    .about-link-card {
        min-width: 100%;
    }
}
