/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --gold-accent: #f39c12;
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --card-bg: #0f3460;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--highlight-color);
    margin: 15px auto 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--highlight-color);
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--highlight-color);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--highlight-color), var(--gold-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--highlight-color);
}

.stat p {
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--highlight-color);
    color: white;
}

.btn-primary:hover {
    background: #d63851;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--highlight-color);
    color: var(--highlight-color);
}

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

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    background: var(--secondary-bg);
}

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

.about-text {
    margin-bottom: 3rem;
}

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

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

.about-text strong {
    color: var(--highlight-color);
}

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

.highlight {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    transition: transform 0.3s;
}

.highlight:hover {
    transform: translateY(-5px);
}

.highlight i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.highlight h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Problem-Solving Philosophy */
.problem-solving-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(233, 69, 96, 0.2);
}

.subsection-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.philosophy-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

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

.framework-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.framework-card:hover {
    transform: translateY(-5px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.2);
}

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

.framework-card h4 {
    color: var(--highlight-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

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

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 5rem 0;
    background: var(--primary-bg);
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-chart-container,
.skills-bars-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.chart-subtitle {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.skill-chart {
    max-width: 450px;
    margin: 0 auto;
}

/* Progress Bars */
.skills-progress {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.skill-percentage {
    color: var(--highlight-color);
    font-weight: 600;
}

.skill-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-color), var(--gold-accent));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-out;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 5rem 0;
    background: var(--secondary-bg);
}

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

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
}

.project-icon {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.project-tech span {
    background: rgba(233, 69, 96, 0.2);
    color: var(--highlight-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.project-metrics {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
}

.metric {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.metric strong {
    color: var(--gold-accent);
}

/* ===== PERSONAL PROJECTS SECTION ===== */
.personal-projects {
    padding: 5rem 0;
    background: var(--primary-bg);
}

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

.personal-projects-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(233, 69, 96, 0.2);
}

.personal-projects-cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.profile-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--highlight-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(233, 69, 96, 0.3);
}

.profile-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.5);
    background: #d63851;
}

.profile-link i {
    font-size: 1.5rem;
}

/* ===== INTERESTS SECTION ===== */
.interests {
    padding: 5rem 0;
    background: var(--secondary-bg);
}

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

.interest-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.interest-card:hover {
    transform: translateY(-5px);
}

.interest-card i {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.interest-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.interest-card p {
    color: var(--text-secondary);
}

.anime-list, .book-list {
    margin-top: 1rem;
}

.anime-list span {
    display: inline-block;
    background: rgba(233, 69, 96, 0.2);
    color: var(--highlight-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin: 0.3rem;
    font-size: 0.9rem;
}

.book-list p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* ===== CHAT SECTION ===== */
.chat-section {
    padding: 5rem 0;
    background: var(--primary-bg);
}

.chat-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.chat-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 2rem;
    background: var(--primary-bg);
}

.message {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    max-width: 80%;
    animation: fadeIn 0.3s;
}

.message p {
    margin: 0;
    line-height: 1.6;
}

.message strong {
    color: var(--gold-accent);
    font-weight: 700;
}

.bot-message p {
    white-space: pre-line;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: var(--card-bg);
    margin-right: auto;
}

.user-message {
    background: var(--highlight-color);
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    background: var(--card-bg);
}

#chatInput {
    flex: 1;
    padding: 12px;
    border: none;
    background: var(--primary-bg);
    color: var(--text-primary);
    border-radius: 5px;
    font-size: 1rem;
}

#chatInput:focus {
    outline: 2px solid var(--highlight-color);
}

#chatSend {
    margin-left: 1rem;
    padding: 12px 20px;
    background: var(--highlight-color);
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#chatSend:hover {
    background: #d63851;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    background: var(--secondary-bg);
}

.contact-content {
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.contact-item i {
    color: var(--highlight-color);
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.download-resume {
    margin-top: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(233, 69, 96, 0.2);
}

.footer p {
    color: var(--text-secondary);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .frameworks-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-messages {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .project-card, .interest-card, .highlight, .framework-card {
        padding: 1.5rem;
    }
}