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

:root {
    --orange: #FF8C00;
    --yellow: #FFD700;
    --dark-orange: #FF6B00;
    --light-yellow: #FFED4E;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.section {
    padding: 4rem 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--orange) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.hero-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

.hero-vs-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
    margin-top: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--orange);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.social-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.social-btn.linkedin {
    background: #0077b5;
    color: var(--white);
}

.social-btn.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.social-btn.github {
    background: #333;
    color: var(--white);
}

.social-btn.github:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}



/* Talk Section */
.talk-section {
    background: var(--bg-light);
}

.talk-intro {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.talk-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.talk-details ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.talk-details li {
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 1.125rem;
}

.key-takeaways {
    margin: 3rem 0;
}

.key-takeaways h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.safe-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--orange);
}

.safe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.safe-letter {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.safe-card h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.safe-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.talk-links {
    text-align: center;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    min-width: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.talk-note {
    margin-top: 0.5rem;
    color: var(--text-light);
    font-style: italic;
}

/* Projects Section */
.projects-section {
    background: var(--white);
}

.project-card {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.custom-repo-card {
    display: block;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.custom-repo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.repo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.repo-icon {
    color: var(--text-light);
    flex-shrink: 0;
}

.repo-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--orange);
    font-weight: 600;
}

.repo-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.repo-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.language-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.language-dot.kotlin {
    background: #7F52FF;
}

.language-dot.java {
    background: #b07219;
}

/* Videos Section */
.videos-section {
    background: var(--bg-light);
}

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

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.video-description {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: center;
}

.video-placeholder {
    padding: 3rem;
    text-align: center;
    color: var(--text-light);
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(255, 215, 0, 0.1));
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-placeholder p {
    font-size: 1.25rem;
    font-style: italic;
}

.video-placeholder-small {
    font-size: 0.9rem;
}

/* Articles Section */
.articles-section {
    background: var(--white);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    display: flex;
    flex-direction: row;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 1.5rem;
    align-items: flex-start;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.article-description {
    color: #0066cc;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

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

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

.footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .safe-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-vs {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-vs-logo {
        height: 60px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

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

    .social-links {
        justify-content: center;
    }

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

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

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-title {
        font-size: 1.25rem;
    }

    .nav-author {
        font-size: 0.9rem;
    }

    .hero {
        padding: 4rem 1rem;
    }

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

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

    .hero-vs-logo {
        height: 60px;
    }
}
