/* ===== CSS Variables - TARDIS Palette ===== */
:root {
    --slate-blue: #3d5470;
    --slate-blue-dark: #2e4057;
    --cream: #dccdb4;
    --cream-light: #e8dcc8;
    --white: #ffffff;
    --text-light: #f0f0f0;
    --shadow: rgba(0, 0, 0, 0.15);
}

/* ===== Global Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--slate-blue);
}

html {
    scroll-behavior: smooth;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Typography ===== */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cream);
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--cream);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--cream);
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ===== Hero Section ===== */
.hero-logo {
    max-width: 220px;
    display: block;
    margin: 0 0 1rem -12px;
}

.hero-inner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.hero-left {
    flex: 1;
    text-align: left;
    padding-left: 0;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.hero-right {
    flex: 1;
    text-align: left;
    color: var(--cream-light);
}

.hero-right h2 {
    font-size: 1.6rem;
    color: var(--cream);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.hero-right p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
    }
    .hero-right {
        text-align: center;
    }
}

/* ===== Buttons ===== */
.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: nowrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--cream);
    color: var(--slate-blue-dark);
    border-color: var(--cream);
}

.btn-primary:hover {
    background-color: var(--cream-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cream);
    border-color: var(--cream);
}

.btn-secondary:hover {
    background-color: var(--cream);
    color: var(--slate-blue-dark);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
    background-color: var(--slate-blue);
}

.section-alt {
    background-color: var(--slate-blue-dark);
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(220, 205, 180, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
    border-color: var(--cream);
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.tech-stack {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tech-tag {
    background-color: rgba(220, 205, 180, 0.15);
    color: var(--cream-light);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(220, 205, 180, 0.3);
}

/* ===== Expertise Grid ===== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.expertise-area h3 {
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
}

.expertise-area ul {
    list-style: none;
}

.expertise-area li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.expertise-area li:before {
    content: "\2192";
    position: absolute;
    left: 0;
    color: var(--cream);
    font-weight: 600;
}

/* ===== Contact Section ===== */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
}

.contact-links {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    font-size: 1.25rem;
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--cream);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: var(--cream);
    color: var(--slate-blue-dark);
    transform: translateY(-2px);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--slate-blue-dark);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .intro {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
}
