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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    color: #e2e8f0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

body.dark-mode .particle {
    background: rgba(139, 92, 246, 0.15);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* =====================
    Navbar Styles
===================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .navbar {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-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: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

body.dark-mode .logo {
    color: #8b5cf6;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

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

.nav-links a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

body.dark-mode .nav-links a {
    color: #e2e8f0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.2);
}

/* =====================
    Stylish Dark Mode Toggle
===================== */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .theme-toggle::before {
    transform: translateX(30px);
    background: #1a1a2e;
}

.theme-toggle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    z-index: 2;
    transition: all 0.3s ease;
}

body.dark-mode .theme-toggle {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
}

/* =====================
    Hero Section Styles
===================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-image {
    width: 320px;
    height: 320px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: gradientShift 4s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.3),
        0 0 80px rgba(139, 92, 246, 0.2);
}

body.dark-mode .hero-image {
    background: linear-gradient(45deg, #8b5cf6, #ec4899, #f59e0b);
    box-shadow: 
        0 20px 40px rgba(139, 92, 246, 0.4),
        0 0 80px rgba(236, 72, 153, 0.3);
}

.hero-image:hover {
    transform: rotateY(15deg) rotateX(15deg) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(59, 130, 246, 0.4),
        0 0 100px rgba(139, 92, 246, 0.3);
}

body.dark-mode .hero-image:hover {
    box-shadow: 
        0 30px 60px rgba(139, 92, 246, 0.5),
        0 0 100px rgba(236, 72, 153, 0.4);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.hero-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6rem;
    color: white;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .hero-text h1 {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-container {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.8rem;
    color: #f59e42; /* Changed from #3b82f6 */
    font-weight: 600;
    position: relative;
}

body.dark-mode .subtitle {
    color: #fbbf24; /* Changed from #8b5cf6 */
}

.subtitle::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 1.5rem;
    background: currentColor;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-text .education {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-style: italic;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 25px;
    display: inline-block;
    border-left: 3px solid #3b82f6;
}

body.dark-mode .hero-text .education {
    color: #9ca3af;
    background: rgba(139, 92, 246, 0.2);
    border-left-color: #8b5cf6;
}

.hero-text p {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 2rem;
}

body.dark-mode .hero-text p {
    color: #d1d5db;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

body.dark-mode .cta-primary {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

body.dark-mode .cta-primary:hover {
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

.cta-secondary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.cta-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

body.dark-mode .cta-secondary {
    color: #8b5cf6;
    border-color: #8b5cf6;
}

body.dark-mode .cta-secondary:hover {
    background: #8b5cf6;
    color: white;
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    .hero-image {
        margin-top: 70px;
        width: 320px;
        height: 320px;
    }
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .subtitle-container {
        height: auto;
        min-height: 40px;
        justify-content: center;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 1rem;
    }
    .hero-image {
        margin-top: 70px;
        width: 65vw;
        max-width: 320px;
        height: 65vw;
        max-height: 320px;
        min-width: 100px;
        min-height: 100px;
    }
    .hero-text h1 {
        font-size: 1.7rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .subtitle {
        font-size: 0.95rem;
    }
    .modal-content,
    .project-modal-content {
        padding: 0.3rem 0.3rem !important;
    }
}

/* =====================
    Section Styles
===================== */
.section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

body.dark-mode .section h2 {
    color: #f7fafc;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
}

/* =====================
   Timeline Styles (Experience & Education)
===================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    box-shadow: 0 0 0 4px white, 0 0 20px rgba(59, 130, 246, 0.3);
}

body.dark-mode .timeline-item::after {
    box-shadow: 0 0 0 4px #0f0f23, 0 0 20px rgba(139, 92, 246, 0.3);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

body.dark-mode .timeline-content {
    background: #2d3748;
    color: #e2e8f0;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-date {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

body.dark-mode .timeline-date {
    background: #4a5568;
    color: #e2e8f0;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

body.dark-mode .timeline-title {
    color: #f7fafc;
}

.timeline-company {
    font-size: 1.1rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
}

body.dark-mode .timeline-company {
    color: #8b5cf6;
}

.timeline-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

body.dark-mode .timeline-description {
    color: #cbd5e0;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark-mode .skill-tag {
    background: #4a5568;
    color: #e2e8f0;
}

.timeline-achievements {
    margin-top: 1rem;
}

.timeline-achievements ul {
    list-style: none;
    padding-left: 0;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

body.dark-mode .timeline-achievements li {
    color: #cbd5e0;
}

.timeline-achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 0.8rem;
}

/* =====================
   Skills Section Styles
===================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}
@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

body.dark-mode .skill-card {
    background: #2d3748;
    color: #e2e8f0;
}

.skill-card i {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

body.dark-mode .skill-card h3 {
    color: #f7fafc;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tech-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

body.dark-mode .tech-tag {
    background: #4a5568;
    color: #e2e8f0;
}

/* =====================
   Projects Section Styles
===================== */
.projects-section {
    background: #f9fafb;
    margin: 0 -2rem;
    padding: 80px 2rem;
}

body.dark-mode .projects-section {
    background: #1a202c;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #3b82f6;
    background: white;
    color: #3b82f6;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #3b82f6;
    color: white;
}

body.dark-mode .filter-btn {
    background: #2d3748;
    color: #8b5cf6;
    border-color: #8b5cf6;
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background: #8b5cf6;
    color: #1a202c;
}

.search-box {
    max-width: 400px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
}

body.dark-mode .search-box input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .search-box input:focus {
    border-color: #8b5cf6;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

body.dark-mode .search-box i {
    color: #718096;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

body.dark-mode .project-card {
    background: #2d3748;
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

body.dark-mode .project-content h3 {
    color: #f7fafc;
}

body.dark-mode .project-content p {
    color: #cbd5e0;
}

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

.tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

body.dark-mode .tag {
    background: #4a5568;
    color: #e2e8f0;
}

/* =====================
   Contact Section Styles
===================== */
.contact-section {
    text-align: center;
    padding: 80px 2rem;
}

.contact-simple {
    max-width: 600px;
    margin: 0 auto;
}

.contact-simple h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

body.dark-mode .contact-simple h2 {
    color: #f7fafc;
}

.contact-simple p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

body.dark-mode .contact-simple p {
    color: #a0aec0;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

body.dark-mode .contact-link {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .contact-link:hover {
    color: #8b5cf6;
}

.contact-link i {
    font-size: 1.2rem;
}

/* =====================
   Modal Styles
===================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}
.model-container {
    width: 60%;
    height: 95vh;
    max-height: 95vh;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 900px) {
    .model-container {
        width: 90%;
    }
}
@media (max-width: 600px) {
    .model-container {
        width: 100%;
        min-width: 0;
    }
}
.modal-content, .project-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 95vh;
    overflow-y: auto;
    height: auto;
    box-sizing: border-box;
}

.project-modal-content {
    max-width: 1050px;
    width: 98%;
    padding: 3rem 3rem 2.5rem 3rem;
}

@media (max-width: 900px) {
    .modal-content, .project-modal-content {
        padding: 1.2rem !important;
    }
}

.modal-header, .project-modal-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.modal-icon, .project-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    color: #fff;
    font-size: 2.2rem;
    box-shadow: 0 2px 10px rgba(59,130,246,0.15);
}

.project-icon i {
    font-size: 2.5rem;
}

.modal-title-section, .project-title-section {
    flex: 1;
}

.modal-title-section h2, .project-title-section h2 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.modal-title-section h3, .project-title-section .project-category {
    font-size: 1.1rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.modal-date {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.project-modal-body, .modal-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0rem;
}

.description-section, .features-section, .achievements-section, .skills-section, .tech-section, .team-section {
    margin-bottom: 0px;
}

.description-section h4, .features-section h4, .achievements-section h4, .skills-section h4, .tech-section h4, .team-section h4 {
    margin-bottom: 0.7rem;
    color: #3b82f6;
    font-size: 1.1rem;
}

.features-list, .achievements-section ul {
    margin-left: 1.2rem;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
}

.features-list li, .achievements-section li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

.skill-tags, .project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.team-member {
    background: #f9fafb;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-info {
    flex: 1;
}

.member-info strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.member-role {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.member-contact {
    font-size: 0.9rem;
    color: #3b82f6;
    text-decoration: none;
}

.member-contact:hover {
    text-decoration: underline;
}

.project-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    background: #f3f4f6;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: background 0.2s;
}

.project-link:hover {
    background: #3b82f6;
    color: #fff;
}

.demo-section {
    margin-bottom: 1.5rem;
}

.demo-section video {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(59,130,246,0.08);
}

/* Modal spacing for certificates */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.certificate-item {
    background: #f9fafb;
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
}

.certificate-item a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.certificate-item a:hover {
    text-decoration: underline;
}

/* Modal close button spacing */
.close {
    position: absolute;
    right: 1.5rem;
    top: 1.2rem;
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: #ef4444;
}

/* Modal dark mode */
body.dark-mode .modal-content, body.dark-mode .project-modal-content {
    background: #2d3748;
    color: #e2e8f0;
}
body.dark-mode .modal-header, body.dark-mode .project-modal-header {
    color: #f7fafc;
}
body.dark-mode .modal-icon, body.dark-mode .project-icon {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
}
body.dark-mode .team-member, body.dark-mode .certificate-item {
    background: #1a202c;
}
body.dark-mode .project-link {
    background: #23263a;
    color: #8b5cf6;
}
body.dark-mode .project-link:hover {
    background: #8b5cf6;
    color: #23263a;
}
body.dark-mode .member-contact {
    color: #8b5cf6;
}

@media (max-width: 600px) {
    .modal-content, .project-modal-content {
        padding: 0.7rem !important;
    }
    .modal-header, .project-modal-header {
        flex-direction: column;
        gap: 0.7rem;
        align-items: flex-start;
    }
    .team-grid {
        flex-direction: column;
        gap: 0.7rem;
    }
}

/* =====================
   Dark Mode Support
===================== */

body.dark-mode {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background: rgba(26, 32, 44, 0.95);
}

body.dark-mode .logo {
    color: #60a5fa;
}

body.dark-mode .nav-links a {
    color: #e2e8f0;
}

body.dark-mode .nav-links a:hover,
body.dark-mode .nav-links a.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

body.dark-mode .hero-text h1 {
    color: #f7fafc;
}

body.dark-mode .hero-text .education {
    color: #a0aec0;
}

body.dark-mode .hero-text p {
    color: #cbd5e0;
}

body.dark-mode .section h2 {
    color: #f7fafc;
}

body.dark-mode .skill-card {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .skill-card h3 {
    color: #f7fafc;
}

body.dark-mode .tech-tag {
    background: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .projects-section {
    background: #1a202c;
}

body.dark-mode .filter-btn {
    background: #2d3748;
    color: #60a5fa;
    border-color: #60a5fa;
}

body.dark-mode .filter-btn.active,
body.dark-mode .filter-btn:hover {
    background: #60a5fa;
    color: #1a202c;
}

body.dark-mode .search-box input {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .search-box input:focus {
    border-color: #60a5fa;
}

body.dark-mode .search-box i {
    color: #718096;
}

body.dark-mode .project-card {
    background: #2d3748;
}

body.dark-mode .project-content h3 {
    color: #f7fafc;
}

body.dark-mode .project-content p {
    color: #cbd5e0;
}

body.dark-mode .tag {
    background: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .contact-simple h2 {
    color: #f7fafc;
}

body.dark-mode .contact-simple p {
    color: #a0aec0;
}

body.dark-mode .contact-link {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .contact-link:hover {
    color: #60a5fa;
}

body.dark-mode .modal-content {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .modal h2 {
    color: #f7fafc;
}

body.dark-mode .meta-item,
body.dark-mode .team-member,
body.dark-mode .certificate-item {
    background: #1a202c;
}

body.dark-mode .meta-item h4 {
    color: #60a5fa;
}

body.dark-mode .certificate-item a {
    color: #60a5fa;
}

/* =====================
   Experience & Education Sections CSS
===================== */

.section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 2rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    top: 20px;
    z-index: 1;
    box-shadow: 0 0 0 4px white, 0 0 20px rgba(59, 130, 246, 0.3);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-date {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.timeline-achievements {
    margin-top: 1rem;
}

.timeline-achievements ul {
    list-style: none;
    padding-left: 0;
}

.timeline-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.timeline-achievements li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .timeline-item.right {
        left: 0%;
    }

    .timeline-item.right::after {
        left: 21px;
    }
}

/* Dark Mode Support */
body.dark-mode .section h2 {
    color: #f7fafc;
}

body.dark-mode .timeline-content {
    background: #2d3748;
    color: #e2e8f0;
}

body.dark-mode .timeline-title {
    color: #f7fafc;
}

body.dark-mode .timeline-company {
    color: #60a5fa;
}

body.dark-mode .timeline-description,
body.dark-mode .timeline-achievements li {
    color: #cbd5e0;
}

body.dark-mode .timeline-date {
    background: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .skill-tag {
    background: #4a5568;
    color: #e2e8f0;
}

body.dark-mode .timeline-item::after {
    box-shadow: 0 0 0 4px #2d3748, 0 0 20px rgba(96, 165, 250, 0.3);
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    .nav-container {
        padding: 0 1rem;
    }
    .navbar-nav.nav-links {
        gap: 0.5rem;
        align-items: center;
    }
    .navbar-collapse {
        background: inherit;
        box-shadow: none;
        padding: 0.5rem 0;
    }
    .navbar-nav .nav-item {
        width: 100%;
        text-align: center;
    }
    .navbar-nav .nav-link {
        display: block;
        width: 100%;
        padding: 0.7rem 0;
    }
    .theme-toggle {
        margin: 0.5rem auto 0.5rem auto;
        display: block;
    }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    .hero-image {
        margin-top: 70px;
        width: 220px;
        height: 220px;
    }
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .subtitle-container {
        height: auto;
        min-height: 40px;
        justify-content: center;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.7rem;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 1rem 0.2rem;
    }
    .hero-image {
        margin-top: 70px;
        width: 65vw;
        max-width: 320px;
        height: 65vw;
        max-height: 320px;
        min-width: 100px;
        min-height: 100px;
    }
    .hero-text h1 {
        font-size: 1.7rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
    .modal-content,
    .project-modal-content {
        padding: 0.3rem 0.3rem !important;
    }
}

/* =====================
   Force 100% Width for Containers
===================== */
.navbar,
.nav-container,
.section,
.modal-content,
.project-modal-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 1200px) {
    .nav-container,
    .section {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 600px) {
    .modal-content,
    .project-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0.2rem !important;
        padding-right: 0.2rem !important;
    }
}

/* =====================
    Show More/Less Button Styles
===================== */
.show-more-btn, .show-less-btn {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.7rem 2.2rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    outline: none;
}
.show-more-btn:hover, .show-less-btn:hover {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.18);
}
body.dark-mode .show-more-btn, body.dark-mode .show-less-btn {
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.18);
}
body.dark-mode .show-more-btn:hover, body.dark-mode .show-less-btn:hover {
    background: linear-gradient(45deg, #ec4899, #f59e0b);
    color: #fff;
}
@media (max-width: 600px) {
    .show-more-btn, .show-less-btn {
        width: 90%;
        font-size: 1rem;
        padding: 0.7rem 0;
        margin: 0.5rem auto;
        display: block;
    }
}