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

:root {
    --gradient-1: linear-gradient(135deg, #f7f0e0 0%, #fdf8ed 100%);
    --gradient-2: linear-gradient(135deg, #f9f2e2 0%, #f4ebe0 100%);
    --gradient-3: linear-gradient(135deg, #fdf8ed 0%, #f7f0e0 100%);
    --gradient-accent: linear-gradient(135deg, #8b9f7e 0%, #a4b894 100%);
    --gradient-card: linear-gradient(135deg, #f9f2e2 0%, #fdf8ed 100%);
    --gradient-warm: linear-gradient(135deg, #f2e9d5 0%, #f7f0e0 100%);
    --text-primary: #3a3426;
    --text-secondary: #5d5745;
    --text-muted: #8a856e;
    --accent: #8b9f7e;
    --accent-bright: #a4b894;
    --accent-warm: #b5c9a8;
    --accent-gold: #c8d9bd;
    --border-color: #ddd3bf;
    --border-warm: #e8dfca;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-3);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.hero .container {
    max-width: none;
    width: 100%;
    padding: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 248, 237, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.nav-brand {
    font-size: 1.60rem;
    font-weight: 600;
    background: linear-gradient(135deg, #8b9f7e 0%, #6d7f62 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-bright);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active::after {
    width: 100%;
    background: var(--accent-bright);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    padding-top: 180px;
    padding-bottom: 5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(164, 184, 148, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 159, 126, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    margin-left: 680px;
    margin-top: 3rem;
    padding-right: 4rem;
    padding-left: 2rem;
    width: calc(100% - 680px);
    max-width: none;
}

.hero-title-section {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-circle {
    position: fixed;
    left: 2rem;
    top: 9rem;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid rgba(164, 184, 148, 0.3);
    box-shadow: 0 16px 64px rgba(139, 159, 126, 0.2);
    z-index: 999;
    opacity: 0.92;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.profile-circle:hover {
    opacity: 1;
    transform: scale(1.02);
    border-color: rgba(164, 184, 148, 0.45);
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0;
    background: linear-gradient(135deg, #6d7f62 0%, #8b9f7e 50%, #a4b894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.5;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: none;
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fdf8ed;
    border-color: var(--accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 159, 126, 0.25);
    border-color: var(--accent-bright);
    background: linear-gradient(135deg, #7a9069 0%, #95aa86 100%);
}

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

.btn-secondary:hover {
    background: rgba(164, 184, 148, 0.08);
    border-color: var(--accent);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
    width: 100%;
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--gradient-accent);
    border-color: var(--accent-bright);
    color: #fdf8ed;
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #6d7f62 0%, #8b9f7e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--gradient-2);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

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

/* Specialties Section */
.specialties {
    background: var(--gradient-3);
}

.specialty-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialty-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(139, 159, 126, 0.15);
}

.specialty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.specialty-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.specialty-card > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.specialty-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.specialty-highlights li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.specialty-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-bright);
}

/* Tech Stack */
.tech-stack {
    background: var(--gradient-1);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.tech-tag {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--accent-bright);
    transform: translateY(-2px);
}

/* Timeline */
.experience {
    background: var(--gradient-2);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--accent-bright);
    border-radius: 50%;
    border: 3px solid #fdf8ed;
}

.timeline-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-left: 1.5rem;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company {
    color: var(--accent-bright);
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.timeline-details {
    list-style: none;
    margin-top: 1rem;
}

.timeline-details li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-bright);
    font-size: 1.2rem;
}

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

/* Projects */
.projects {
    background: var(--gradient-3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.project-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(139, 159, 126, 0.15);
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-impact {
    color: var(--accent-bright);
    font-size: 0.9rem;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-details {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-details li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-bright);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(181, 201, 168, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Philosophy */
.philosophy {
    background: var(--gradient-1);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.philosophy-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.philosophy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.philosophy-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Education */
.education {
    background: var(--gradient-2);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.education-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.education-card h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--accent-bright);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Codecademy Courses */
.codecademy-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.codecademy-title {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.codecademy-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    text-align: center;
}

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

.course-type {
    font-size: 0.75rem;
    color: var(--accent-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.codecademy-card h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 500;
}

/* Contact */
.contact {
    background: var(--gradient-3);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-bright);
}

/* Footer */
.footer {
    background: var(--gradient-1);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 1400px) {
    .hero-content {
        margin-left: 500px;
        width: calc(100% - 500px);
        padding-right: 2rem;
    }

    .profile-circle {
        width: 450px;
        height: 450px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding-right: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .profile-circle {
        display: none;
    }

    .specialty-cards,
    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-content {
        margin-left: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Featured Projects Page */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    align-items: stretch;
}

.featured-project-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    transition: all 0.3s ease;
    position: relative;
}

.featured-project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-bright);
    box-shadow: 0 20px 50px rgba(139, 159, 126, 0.15);
}

.featured-badge {
    display: inline-block;
    background: var(--gradient-accent);
    color: #fdf8ed;
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-project-card h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.featured-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

@media (max-width: 1100px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .featured-projects-grid {
        grid-template-columns: 1fr;
    }
}

.featured-highlights {
    background: rgba(181, 201, 168, 0.12);
    border-left: 3px solid var(--accent-bright);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.featured-highlights h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.featured-highlights ul {
    list-style: none;
    padding: 0;
}

.featured-highlights li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.featured-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-bright);
    font-weight: 600;
}

/* Selection */
::selection {
    background: var(--accent-bright);
    color: #fdf8ed;
}
