/* ========================================
   Professional Space Theme Portfolio
   Mahmoud Mokhtar - Mobile Developer & AI Enthusiast
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --space-black: #0B0E1A;
    --deep-navy: #151B2E;
    --space-blue: #1E2A47;
    --cosmic-purple: #5B4A9D;
    --stellar-gold: #C9A55B;
    --moon-white: #E8E9ED;
    --star-silver: #B8BCC8;
    --blue-glow: #3B82F6;
    --whatsapp-green: #25D366;
    
    /* Spacing */
    --section-padding: 5rem 1rem;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--space-black);
    color: var(--moon-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.main-container {
    position: relative;
    z-index: 1;
}

/* ========================================
   Canvas Backgrounds
   ======================================== */

#spaceCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#aiCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ai-background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(10,22,40,0.6) 50%, rgba(0,21,41,0.8) 100%);
    z-index: 1;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--moon-white);
}

.section-subtitle {
    text-align: center;
    color: var(--star-silver);
    font-size: 1.125rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 1.25rem;
    color: var(--stellar-gold);
    text-align: center;
    margin-bottom: 1.5rem;
}

.highlight-gold {
    color: var(--stellar-gold);
    font-weight: 500;
}

.highlight-white {
    color: var(--moon-white);
    font-weight: 500;
}

/* ========================================
   Layout
   ======================================== */

.section {
    min-height: 100vh;
    padding: var(--section-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* ========================================
   Icons
   ======================================== */

.icon {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-small {
    width: 1.25rem;
    height: 1.25rem;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Profile Image */
.profile-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
}

.profile-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--cosmic-purple);
    background: linear-gradient(135deg, var(--cosmic-purple) 0%, var(--stellar-gold) 100%);
    padding: 2px;
    animation: pulse-ring 4s ease-in-out infinite;
}

.profile-image {
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--space-black);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Hero Text */
.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--moon-white);
}

.hero-title {
    font-size: 1.5rem;
    color: var(--stellar-gold);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--star-silver);
    margin-bottom: 2rem;
}

/* Contact Buttons */
.hero-contacts {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(91, 74, 157, 0.3);
    background: rgba(30, 42, 71, 0.3);
    backdrop-filter: blur(10px);
    color: var(--star-silver);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.contact-btn:hover {
    border-color: var(--cosmic-purple);
    background: rgba(30, 42, 71, 0.6);
    color: var(--moon-white);
    transform: scale(1.05);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.1);
    color: var(--moon-white);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.02);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--star-silver);
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, var(--star-silver), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Summary Section
   ======================================== */

.summary-card {
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(91, 74, 157, 0.2);
    background: rgba(30, 42, 71, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 74, 157, 0.5), transparent);
}

.summary-card h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.summary-content {
    color: var(--star-silver);
    font-size: 1.125rem;
    line-height: 1.5;
}

.summary-content p {
    margin-bottom: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(91, 74, 157, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--stellar-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--star-silver);
}

/* ========================================
   Timeline (Experience)
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(91, 74, 157, 0.5), transparent);
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.timeline-dot {
    position: relative;
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(91, 74, 157, 0.2);
    border: 1px solid rgba(91, 74, 157, 0.3);
}

.timeline-dot .icon {
    color: var(--stellar-gold);
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(91, 74, 157, 0.2);
    background: rgba(30, 42, 71, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: rgba(91, 74, 157, 0.4);
    background: rgba(30, 42, 71, 0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--moon-white);
}

.timeline-period {
    font-size: 0.875rem;
    color: var(--stellar-gold);
}

.timeline-role {
    font-size: 1.125rem;
    color: var(--star-silver);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-description {
    color: rgba(184, 188, 200, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    color: var(--stellar-gold);
    font-size: 0.875rem;
}

/* ========================================
   Education Section
   ======================================== */

.education-card {
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(91, 74, 157, 0.2);
    background: rgba(30, 42, 71, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    text-align: center;
}

.education-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 74, 157, 0.2), rgba(201, 165, 91, 0.2));
    border: 1px solid rgba(91, 74, 157, 0.3);
}

.education-icon .icon {
    color: var(--stellar-gold);
    width: 2.5rem;
    height: 2.5rem;
}

.education-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--moon-white);
}

.education-university,
.education-grade {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.education-university {
    color: var(--star-silver);
    font-size: 1.125rem;
}

.education-university .icon-small {
    color: var(--cosmic-purple);
}

.education-grade {
    color: var(--stellar-gold);
    font-size: 1.125rem;
    font-weight: 600;
}

.education-description {
    color: rgba(184, 188, 200, 0.8);
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* ========================================
   Projects Grid
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ===== بطاقة المشروع ===== */
.project-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(91, 74, 157, 0.2);
    background: rgba(30, 42, 71, 0.2);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: rgba(91, 74, 157, 0.4);
    background: rgba(30, 42, 71, 0.3);
    transform: scale(1.02);
}

/* ===== صورة المشروع ===== */
.project-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #0b0e1a;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* ✅ تغيير من cover إلى contain */
    transition: transform 0.5s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* ===== التدرج فوق الصورة ===== */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--space-black), rgba(11, 14, 26, 0.5), transparent);
}

/* ===== أيقونة المشروع ===== */
.project-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.0rem;
    display: flex;
    align-items: center;
    border-radius: 50%;
    background: rgba(91, 74, 157, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 232, 255, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-icon {
    opacity: 1;
}

/* ===== تفاصيل البطاقة المختصرة ===== */
.project-content {
    padding: 0.75rem;
}

.project-content h3 {
    font-size: 1.25rem;
    color: var(--moon-white);
    margin-bottom: 0.25rem;
}

.project-role {
    color: var(--stellar-gold);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-description {
    color: rgba(184, 188, 200, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 🚫 إخفاء التكنولوجيات فقط من الخارج */
.project-card .project-tags {
    display: none;
}

/* ========================================
   Skills Grid
   ======================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    opacity: 0;
    transform: translateX(-30px);
}

.skill-item.visible {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: var(--moon-white);
    font-size: 1rem;
    font-weight: 500;
}

.skill-percentage {
    color: var(--stellar-gold);
    font-size: 0.875rem;
    font-weight: 600;
}

.skill-bar {
    height: 0.5rem;
    background: rgba(30, 42, 71, 0.5);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(91, 74, 157, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--cosmic-purple), var(--stellar-gold));
    border-radius: 9999px;
    width: 0;
    transition: width 1s ease-out;
}

.skill-progress.animated {
    width: var(--progress);
}

/* ========================================
   Tags (Languages & Soft Skills)
   ======================================== */

.languages-container,
.soft-skills-container {
    margin-bottom: 3rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid rgba(91, 74, 157, 0.3);
    background: rgba(30, 42, 71, 0.2);
    backdrop-filter: blur(10px);
    color: var(--moon-white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.tag:hover {
    border-color: rgba(91, 74, 157, 0.5);
    background: rgba(30, 42, 71, 0.3);
    transform: scale(1.05);
}

.tag .icon-small {
    color: var(--stellar-gold);
}

/* ========================================
   Contact Section
   ======================================== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.contact-card {
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(91, 74, 157, 0.2);
    background: rgba(30, 42, 71, 0.2);
    backdrop-filter: blur(20px);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    border-color: rgba(91, 74, 157, 0.4);
    background: rgba(30, 42, 71, 0.3);
    transform: scale(1.02);
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91, 74, 157, 0.2), rgba(201, 165, 91, 0.2));
    border: 1px solid rgba(91, 74, 157, 0.3);
}

.contact-icon.whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(18, 140, 126, 0.2));
    border-color: rgba(37, 211, 102, 0.3);
}

.contact-icon .icon {
    width: 2rem;
    height: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--moon-white);
    margin-bottom: 0.75rem;
}

.contact-card p {
    color: var(--star-silver);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-btn-primary,
.contact-btn-whatsapp {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.contact-btn-primary {
    background: var(--cosmic-purple);
    color: white;
}

.contact-btn-primary:hover {
    background: rgba(91, 74, 157, 0.8);
}

.contact-btn-whatsapp {
    background: var(--whatsapp-green);
    color: white;
}

.contact-btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.8);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(91, 74, 157, 0.2);
    background: rgba(30, 42, 71, 0.2);
    backdrop-filter: blur(10px);
}

.contact-info-item .icon-small {
    color: var(--stellar-gold);
}

/* ========================================
   Footer Section
   ======================================== */

.footer-section {
    min-height: 50vh;
}

.footer-content h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.footer-content p {
    text-align: center;
    color: var(--star-silver);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.footer-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(91, 74, 157, 0.3);
    background: rgba(30, 42, 71, 0.3);
    backdrop-filter: blur(10px);
    color: var(--star-silver);
    transition: var(--transition-smooth);
}

.footer-btn:hover {
    border-color: var(--cosmic-purple);
    background: rgba(30, 42, 71, 0.6);
    transform: scale(1.1) translateY(-5px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 74, 157, 0.3), transparent);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(184, 188, 200, 0.6);
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-tagline {
    color: var(--stellar-gold);
    font-size: 0.875rem;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(91, 74, 157, 0.4);
    background: rgba(30, 42, 71, 0.8);
    backdrop-filter: blur(10px);
    color: var(--moon-white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--cosmic-purple);
    transform: scale(1.1) translateY(-5px);
}

/* ========================================
   Modal
   ======================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    background: var(--deep-navy);
    border-radius: 1.5rem;
    border: 2px solid rgba(91, 74, 157, 0.3);
    padding: 2rem;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 42, 71, 0.8);
    border: 1px solid rgba(91, 74, 157, 0.3);
    color: var(--moon-white);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(30, 42, 71, 1);
}

.modal-image {
    width: 100%;
    height: 20rem;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(91, 74, 157, 0.2);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 2rem;
    color: var(--moon-white);
    margin-bottom: 0.5rem;
}

.modal-role {
    font-size: 1.125rem;
    color: var(--stellar-gold);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.modal-description {
    color: var(--star-silver);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-tech-title {
    font-size: 1.25rem;
    color: var(--moon-white);
    margin-bottom: 0.75rem;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tech-tags .project-tag {
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    background: rgba(91, 74, 157, 0.2);
    border: 1px solid rgba(106, 232, 255, 0.4);
    color: var(--star-silver);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-tech-tags .project-tag:hover {
    background: rgba(106, 232, 255, 0.3);
    color: white;
    transform: scale(1.05);
}

.modal-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--moon-white);
}

.modal-progress-bar {
    height: 0.75rem;
    background: rgba(30, 42, 71, 0.6);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(91, 74, 157, 0.2);
    margin-bottom: 1.5rem;
}

.modal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cosmic-purple), var(--stellar-gold));
    border-radius: 9999px;
    transition: width 1s ease-out;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-btn-primary {
    background: var(--cosmic-purple);
    border: none;
    color: white;
}

.modal-btn-primary:hover {
    background: rgba(91, 74, 157, 0.8);
}

.modal-btn-secondary {
    background: transparent;
    border: 2px solid rgba(91, 74, 157, 0.4);
    color: var(--moon-white);
}

.modal-btn-secondary:hover {
    background: rgba(30, 42, 71, 0.6);
}

/* ========================================
   Animations
   ======================================== */

.fade-in {
    animation: fadeIn 0.8s ease;
}

.fade-in-delay-1 { animation: fadeIn 0.8s ease 0.3s backwards; }
.fade-in-delay-2 { animation: fadeIn 0.8s ease 0.5s backwards; }
.fade-in-delay-3 { animation: fadeIn 0.8s ease 0.6s backwards; }
.fade-in-delay-4 { animation: fadeIn 0.8s ease 0.8s backwards; }
.fade-in-delay-5 { animation: fadeIn 0.8s ease 1s backwards; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .summary-card,
    .education-card {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline {
        padding-left: 0;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-dot {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-contacts {
        gap: 0.75rem;
    }
    
    .contact-btn {
        width: 40px;
        height: 40px;
    }
    
    .projects-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
