@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
}

.dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
}

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

header {
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: hsl(var(--background));
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo i {
    margin-right: 0.5rem;
    color: hsl(var(--primary));
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: hsl(var(--foreground));
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: hsl(var(--primary));
}

#hero {
    padding: 6rem 0;
    background-color: hsl(var(--background));
    width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.profile-photo {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

#hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary));
}

#hero p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
}

section {
    padding: 4rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.75rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.875rem;
}

p {
    margin-bottom: 1rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.project-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.project-image {
    flex: 1;
    max-width: 100%;
    border-radius: var(--radius);
}

.project-details {
    flex: 1;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-details p {
    margin-bottom: 1rem;
}

.project-details ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.skill-card {
    background-color: hsl(var(--card));
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.skill-card i {
    font-size: 2rem;
    color: hsl(var(--primary));
    margin-bottom: 1rem;
}

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

.video-item {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.video-item h3 {
    padding: 1rem;
    font-size: 1.2rem;
}

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

.blog-card {
    background-color: hsl(var(--card));
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: hsl(var(--primary));
}

.blog-date {
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

#contact {
    background-color: hsl(var(--muted));
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

footer {
    text-align: center;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        justify-content: center;
    }

    .profile-photo {
        width: 300px;
        height: 300px;
    }

    #hero h1 {
        font-size: 2rem;
    }

    #hero h2 {
        font-size: 1.25rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .hero-content, .project-item {
        flex-direction: column;
    }

    .hero-image, .project-image {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }
}

.card {
    background-color: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    padding: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--foreground));
}

.theme-toggle:hover {
    color: hsl(var(--primary));
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}