/* Root Variables */
:root {
    --navy: #0A0F1F;
    --slate: #1E293B;
    --white: #FFFFFF;
    --soft-gray: #CBD5E1;
    --blue: #3B82F6;
    --cyan: #06B6D4;
    --dark-text: #0F172A;
    --light-text: #64748B;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--white);
    color: var(--dark-text);
    line-height: 1.6;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 1rem;
    z-index: 1000;
    background: var(--blue);
    color: var(--white);
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

code, pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    color: var(--navy);
}

h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--slate);
}

h4 {
    font-size: 1.25rem;
    color: var(--slate);
}

p {
    margin-bottom: 1rem;
    color: var(--dark-text);
    font-size: 1rem;
}

/* Navigation */
nav {
    background-color: var(--navy);
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
}

.nav-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-brand:hover {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #E2E8F0;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links a.active {
    color: var(--blue);
    border-bottom: 2px solid var(--blue);
    padding-bottom: 4px;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    background-color: var(--blue);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--cyan);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--slate);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #334155;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Cards */
.card {
    background-color: var(--white);
    border: 1px solid var(--soft-gray);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.card-header {
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1a1f3a 100%);
    color: var(--white);
    padding: 6rem 2rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
}

.hero-text h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .title {
    font-size: 1.5rem;
    color: var(--cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-text .value-statement {
    font-size: 1.25rem;
    color: #E2E8F0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.hero-image img {
    width: clamp(280px, 36vw, 430px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

.home-page {
    background: linear-gradient(135deg, var(--navy) 0%, #1a1f3a 100%);
}

.home-page footer {
    margin-top: 0;
    background: transparent;
}

.hero-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--slate) 0%, #0f172a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--blue);
}

/* Sections */
.section {
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-top: 0;
}

.section-subheading {
    margin-top: 3rem;
}

.divider {
    height: 1px;
    background-color: var(--soft-gray);
    margin: 3rem 0;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--slate) 0%, #334155 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--blue);
}

.about-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.about-text ul {
    list-style: none;
    margin: 1rem 0;
}

.about-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-text li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: bold;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--soft-gray);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background-color: #f1f5f9;
    border-color: var(--blue);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.skill-item h4 {
    font-size: 1rem;
    color: var(--navy);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--soft-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--slate) 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--blue);
}

.project-body {
    padding: 1.5rem;
}

.project-body h3 {
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.project-description {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: #EFF6FF;
    color: var(--blue);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Blog */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    background-color: var(--white);
    border: 1px solid var(--soft-gray);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-post:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--blue);
}

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

.blog-post h3 {
    margin: 0 0 0.5rem 0;
    color: var(--navy);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.blog-preview {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Contact */
.contact-card {
    max-width: 500px;
    margin: 3rem auto;
    background-color: var(--white);
    border: 1px solid var(--soft-gray);
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    margin-bottom: 0.75rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--soft-gray);
}

.contact-link:hover {
    background-color: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

/* Footer */
footer {
    background-color: var(--navy);
    color: #F1F5F9;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: 2rem 1rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: auto;
    }

    .hero-image img {
        width: clamp(190px, 52vw, 280px);
    }

    .contact-card {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .title {
        font-size: 1.25rem;
    }

    .hero-text .value-statement {
        font-size: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 150px;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image img {
        width: clamp(165px, 60vw, 220px);
        border-width: 1.5px;
    }
}