/* Logo link styling */
.logo a {
    color: #FAFAFA;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: #E67E22;
    transform: scale(1.05);
}

/* Remove any unwanted underlines */
.logo a::after {
    display: none !important;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-photo {
    flex: 0 0 auto;
    position: relative;
    display: inline-block;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
}

.about-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: block;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495E;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .about-photo img {
        width: 150px;
        height: 150px;
    }
}


/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FAFAFA;
    color: #34495E;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: linear-gradient(135deg, #2C3E50 0%, #3498DB 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FAFAFA;
    flex: 0 0 auto; /* Don't grow or shrink */
}

/* Navigation in the center */
nav {
    flex: 1; /* Take available space */
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #FAFAFA;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #E67E22;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #E67E22;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Contact icons on the right */
.header-contact {
    display: flex;
    align-items: center;
    gap: 0rem; /* Reduced spacing */
    flex: 0 0 auto;
}

.header-contact a {
    color: #FAFAFA;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    padding: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    position: relative; /* Fix for underline issue */
    text-decoration: none; /* Remove any default link underline */
}

.header-contact a:hover {
    color: #E67E22;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* IMPORTANT: Remove underline effect from contact icons */
.header-contact a::after {
    display: none !important; /* This removes the FAFAFA underline */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 0 1rem; /* Less container padding on mobile */
    }
    
    .logo {
        order: 1;
        flex: 1;
        font-size: 1.2rem; /* Smaller logo on mobile */
    }
    
    .header-contact {
        order: 2;
        gap: 0rem; /* Much less spacing on mobile */
        margin-left: auto; /* Push to right */
    }
    
    .header-contact a {
        font-size: 1rem; /* Smaller icons */
        padding: 0.4rem; /* Less padding */
        min-width: 32px; /* Smaller button size */
        height: 32px;
    }
    
    nav {
        order: 3;
        flex: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .menu-toggle {
        display: none; /* Hide on mobile since we're showing nav */
    }
}

/* Even smaller mobile screens */
@media (max-width: 480px) {
    .header-contact {
        gap: 0rem; /* Very tight spacing for small phones */
    }
    
    .header-contact a {
        font-size: 0.9rem;
        padding: 0.3rem;
        min-width: 28px;
        height: 28px;
    }
    
    .logo {
        font-size: 1rem;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }
    
    /* Left: Menu toggle */
    .menu-toggle {
        order: 1;
        display: flex;
    }
    
    /* Center: Logo */
    .logo {
        order: 2;
        flex: 1;
        text-align: center;
        font-size: 1.2rem;
    }
    
    /* Right: Contact icons */
    .header-contact {
        order: 3;
        gap: 0.25rem;
    }
    
    .header-contact a {
        font-size: 1rem;
        padding: 0.4rem;
        min-width: 32px;
        height: 32px;
    }
    
    /* Navigation below */
    nav {
        order: 4;
        flex: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #FAFAFA;
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== MAIN CONTENT STRUCTURE ===== */
main {
    margin-top: 80px;
}

.page {
    min-height: calc(100vh - 80px);
    display: none;
}

.page.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2C3E50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #E67E22;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-section h2 {
    color: #2C3E50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495E;
}

/* ===== CARD GRIDS ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.project-banner {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #3498DB, #2C3E50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2C3E50;
}

.project-type {
    display: inline-block;
    background: #E67E22;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.project-summary {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.see-more-btn {
    background: #2C3E50;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.see-more-btn:hover {
    background: #E67E22;
    transform: translateY(-2px);
}

/* ===== HOBBY CARDS ===== */

.hobby-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.hobby-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #2C3E50, #3498DB);
    color: white;
}

.hobby-icon {
    font-size: 3rem;
    color: #E67E22;
    margin-bottom: 1rem;
    text-align: center; /* Center the emoticon */
    display: block; /* Make sure it's a block element */
}

.hobby-card:hover .hobby-icon {
    color: white;
}

.hobby-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2C3E50;
}

.hobby-card:hover .hobby-title {
    color: white;
}

/* Main portfolio button styling */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.main-portfolio-btn {
    background: linear-gradient(135deg, #2C3E50, #3498DB);
    color: white;
    padding: 1.25rem 3rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.main-portfolio-btn:hover {
    background: linear-gradient(135deg, #E67E22, #D35400);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.main-portfolio-btn::after {
    content: "→";
    transition: transform 0.3s ease;
}

.main-portfolio-btn:hover::after {
    transform: translateX(5px);
}

/* Project Links Styling - ADD THIS */
.project-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3498DB;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #E67E22;
    transform: translateX(5px);
}

.project-link:last-child {
    border-bottom: none;
}

.project-link i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Increase spacing between sections */
section {
    margin-bottom: 5rem; /* Increase from default */
}

/* For larger screens, add even more space */
@media (min-width: 1024px) {
    section {
        margin-bottom: 6rem;
    }
}

/* Mobile responsive - slightly less space on smaller screens */
@media (max-width: 768px) {
    section {
        margin-bottom: 4rem;
    }
}

/* ===== RESUME SECTION ===== */
.resume-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.resume-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.resume-btn {
    background: linear-gradient(135deg, #2C3E50, #3498DB);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.resume-btn:hover {
    background: #E67E22;
    transform: translateY(-3px);
}

/* ===== CONTACT CARDS ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    color: #E67E22;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

/* ===== PROJECT DETAIL MODAL ===== */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 15px;
    position: relative;
}

.modal-header {
    background: linear-gradient(135deg, #2C3E50, #3498DB);
    color: white;
    padding: 2rem;
    border-radius: 15px 15px 0 0;
}

.modal-body {
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section h3 {
    color: #2C3E50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tool-tag {
    background: #ECF0F1;
    color: #2C3E50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(44, 62, 80, 0.98);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    /* Mobile Typography */
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Mobile Layout */
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hobby-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 1rem;
    }

    .modal-content {
        margin: 1rem;
    }

    .resume-buttons {
        flex-direction: column;
    }

    .header-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .about-section {
        padding: 2rem;
    }

    /* Mobile Cards */
    .card-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .hobby-card,
    .contact-card {
        margin-bottom: 1rem;
    }

    /* Mobile Modal */
    .modal-content {
        margin: 0.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* ===== TABLET RESPONSIVE ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .container {
        padding: 1.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* ===== LARGE SCREEN OPTIMIZATION ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 3rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    header,
    .project-modal,
    .menu-toggle {
        display: none !important;
    }

    main {
        margin-top: 0;
    }

    .page {
        display: block !important;
        min-height: auto;
        page-break-after: always;
    }

    .page:last-child {
        page-break-after: avoid;
    }

    body {
        background: white;
        color: black;
    }

    .project-card,
    .hobby-card,
    .contact-card,
    .about-section,
    .resume-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-links a:focus,
.see-more-btn:focus,
.resume-btn:focus,
.close-modal:focus {
    outline: 2px solid #E67E22;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .project-banner {
        background: #000;
        color: #fff;
    }
    
    .project-type {
        background: #000;
        color: #fff;
    }
    
}

/* Resume Page Specific Styles */

/* PDF Container Styling */
.pdf-container {
    margin-top: 3rem;
    margin-bottom: 6rem; /* Extra space for fixed footer */
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.pdf-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 2rem;
    max-width: 1000px; /* Constrain maximum width */
    width: 100%;
}

.pdf-wrapper iframe {
    width: 100%;
    height: 1000px; /* A4-like aspect ratio */
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive PDF */
@media (max-width: 1024px) {
    .pdf-wrapper {
        max-width: 700px;
    }
    
    .pdf-wrapper iframe {
        height: 900px;
    }
}

@media (max-width: 768px) {
    .pdf-container {
        padding: 1rem;
    }
    
    .pdf-wrapper {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .pdf-wrapper iframe {
        height: 700px;
    }
}

@media (max-width: 480px) {
    .pdf-wrapper {
        padding: 1rem;
    }
    
    .pdf-wrapper iframe {
        height: 600px;
    }
}

.resume-subtitle {
    font-size: 1.2rem;
    color: #E67E22;
    margin-bottom: 2rem;
    text-align: center;
}

.resume-summary,
.resume-skills,
.resume-education,
.resume-projects,
.resume-contact {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border-left: 4px solid #E67E22;
}

.resume-summary h3,
.resume-skills h3,
.resume-education h3,
.resume-projects h3,
.resume-contact h3 {
    color: #2C3E50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-category h4 {
    color: #E67E22;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Education */
.education-item {
    margin-bottom: 1.5rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.education-header h4 {
    color: #2C3E50;
    margin: 0;
}

.education-date {
    color: #E67E22;
    font-weight: bold;
}

.education-school {
    font-style: italic;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Project Highlights */
.project-highlight {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #3498DB;
}

.project-highlight h4 {
    color: #2C3E50;
    margin-bottom: 0.5rem;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.contact-info i {
    color: #E67E22;
    width: 20px;
}

/* Additional Sections */
.resume-additional {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.additional-section h3 {
    color: #2C3E50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #E67E22;
    padding-bottom: 0.5rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.language-name {
    font-weight: bold;
}

.language-level {
    color: #E67E22;
    font-size: 0.9rem;
}

.additional-section ul {
    list-style: none;
    padding: 0;
}

.additional-section li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.additional-section li:before {
    content: "▸";
    color: #E67E22;
    position: absolute;
    left: 0;
}

.additional-section li:last-child {
    border-bottom: none;
}

/* Responsive Design for Resume */
@media (max-width: 768px) {
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .additional-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles for Resume */
@media print {
    .resume-buttons {
        display: none;
    }
    
    .resume-container,
    .resume-additional {
        box-shadow: none;
        background: white;
    }
    
    .resume-summary,
    .resume-skills,
    .resume-education,
    .resume-projects,
    .resume-contact {
        background: white;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ===== HOBBY SECTION ===== */
/* Enhanced Hobby Cards */
.detailed-hobby {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: default;
    grid-column: span 1;
}

.detailed-hobby:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.hobby-content {
    margin-top: 1rem;
}

.hobby-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hobby-details h4,
.hobby-connection h4,
.trading-tools h4 {
    color: #2C3E50;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.hobby-details ul {
    list-style: none;
    padding: 0;
}

.hobby-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.hobby-details li:last-child {
    border-bottom: none;
}

.hobby-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #E67E22;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.hobby-connection {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498DB;
    margin-top: 1rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tool-badge {
    background: #E67E22;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Reading Section */
.reading-section {
    margin-top: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-category {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid #E67E22;
}

.book-category h3 {
    color: #2C3E50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.book-category h3 i {
    color: #E67E22;
}

.book-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #3498DB;
}

.book-item h4 {
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.book-author {
    color: #E67E22;
    font-style: italic;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.book-insight {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Learning Section */
.learning-section {
    margin-top: 3rem;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.learning-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.learning-card:hover {
    transform: translateY(-5px);
}

.learning-icon {
    font-size: 2.5rem;
    color: #E67E22;
    margin-bottom: 1rem;
}

.learning-card h3 {
    color: #2C3E50;
    margin-bottom: 1rem;
}

.learning-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.learning-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.learning-card li:before {
    content: "▸";
    color: #E67E22;
    position: absolute;
    left: 0;
}

.learning-card li:last-child {
    border-bottom: none;
}

/* Connection Section */
.connection-section {
    margin-top: 3rem;
}

.connection-container {
    background: linear-gradient(135deg, #2C3E50, #3498DB);
    color: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
}

.connection-container h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.connection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.connection-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.connection-icon {
    font-size: 2rem;
    color: #E67E22;
    margin-bottom: 1rem;
}

.connection-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.connection-item p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hobby-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .learning-grid {
        grid-template-columns: 1fr;
    }
    
    .connection-grid {
        grid-template-columns: 1fr;
    }
    
    .hobby-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tools-grid {
        justify-content: center;
    }
}

/* Portfolio Page Enhancements */
.portfolio-intro {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    border-left: 4px solid #E67E22;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #E67E22;
    color: #E67E22;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: #E67E22;
    color: white;
    transform: translateY(-2px);
}

.portfolio-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: #2C3E50;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #E67E22;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Project Cards */
.enhanced-card {
    position: relative;
    overflow: hidden;
}

.enhanced-card .project-banner {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #3498DB, #2C3E50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
}

.banner-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.project-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #E67E22;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-category {
    background: #3498DB;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.project-metrics {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #E67E22;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #ECF0F1;
    color: #2C3E50;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid #ddd;
}

.see-more-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2C3E50;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.see-more-btn:hover {
    background: #E67E22;
    transform: translateY(-2px);
}

.see-more-btn i {
    transition: transform 0.3s ease;
}

.see-more-btn:hover i {
    transform: translateX(5px);
}

/* Portfolio Summary */
.portfolio-summary {
    background: linear-gradient(135deg, #2C3E50, #3498DB);
    color: white;
    padding: 4rem 2rem;
    border-radius: 15px;
    text-align: center;
}

.summary-container h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.impact-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.impact-icon {
    font-size: 2.5rem;
    color: #E67E22;
    margin-bottom: 1rem;
}

.impact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.impact-item p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Filter Animation */
.project-card {
    transition: all 0.3s ease;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .project-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-tags {
        flex-direction: row;
    }
    
    .project-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-container {
        padding: 2rem 1rem;
    }
    
    .summary-container h2 {
        font-size: 2rem;
    }
}

/* Missing Portfolio Styles - ADD THESE */

/* Enhanced Project Metrics */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.metric {
    text-align: center;
    padding: 0.5rem;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #E67E22;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Project Cards */
.enhanced-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.enhanced-card:hover {
    border-color: #E67E22;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.section-header h2 {
    color: #2C3E50;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: #E67E22;
    font-size: 2rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}