* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==================== Navigation ==================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}


/* ==================== Hero Section ==================== */

.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(136, 92, 246, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-image {
    margin-bottom: 2rem;
}

.profile-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    animation: floatImage 3s ease-in-out infinite;
    overflow: visible;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4), 0 0 80px rgba(136, 92, 246, 0.2), inset 0 0 20px rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
    animation: rotateBorder 6s linear infinite;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-photo {
    width: 100%;
    height: 100%;
    border: 4px solid white;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    visibility: visible;
    transform: scale(1.15);
    filter: brightness(1.05) contrast(1.1) saturate(1.1);
}

.profile-photo:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 30px 80px rgba(0, 0, 0, 0.5);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

.profile-photo.loaded {
    animation: floatImage 3s ease-in-out infinite;
}

.profile-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
    animation: pulseBadge 2s ease-in-out infinite;
    z-index: 10;
}

.badge-text {
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

@keyframes pulseBadge {
    0%,
    100% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.4);
        transform: scale(1.1);
    }
}

width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0.2);
border: 4px solid white;
border-radius: 50%;
display: none;
align-items: center;
justify-content: center;
font-size: 5rem;
backdrop-filter: blur(10px);
position: absolute;
top: 0;
left: 0;

}
@keyframes floatImage {
    0%,
    100% {
        transform: translateY(0px);
    }
    
    50% {
        transform: translateY(-20px);
    }
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
}
.highlight {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}
.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}
.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn-secondary:hover {
    background: white;
    color: var(--primary);
}
.btn-center {
    margin: 2rem auto;
    display: block;
}
.btn-full {
    width: 100%;
}
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
    backdrop-filter: blur(10px);
}
.social-icon:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

/* ==================== Sections General ==================== */
section {
    padding: 4rem 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* ==================== About Section ==================== */
.about {
    background: white;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.about-text p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    color: white;
}
.stat h4 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.stat p {
    color: rgba(255, 255, 255, 0.9);
}
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.feature-card {
    padding: 2rem;
    background: var(--light);
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.feature-card h4 {
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: var(--gray);
}

/* ==================== Skills Section ==================== */
.skills {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.skill-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.skill-item span {
    font-weight: 600;
}
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd89b, #19547b);
    border-radius: 10px;
    animation: widthAnimation 1s ease-out;
}
@keyframes widthAnimation {
    from {
        width: 0 !important;
    }
}
.tools-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}
.tools-section h3 {
    margin-bottom: 1.5rem;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}
.tool-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
}
.tool-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}
.tool-badge i {
    font-size: 1.5rem;
}

/* ==================== Soft Skills Section ==================== */
.soft-skills-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}
.soft-skills-section h3 {
    margin-bottom: 2rem;
    color: white;
    font-size: 1.8rem;
    text-align: center;
}
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.soft-skill-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(136, 92, 246, 0.2) 100%);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.soft-skill-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(136, 92, 246, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.soft-skill-card i {
    font-size: 2.5rem;
    color: #10b981;
}
.soft-skill-card h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}
.soft-skill-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==================== Projects Section ==================== */
.projects {
    background: white;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}
.project-content {
    padding: 2rem;
}
.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.project-content p {
    color: var(--gray);
    margin-bottom: 1rem;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.tech-tags span {
    background: var(--light);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}
.project-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
}
.project-links {
    display: flex;
    gap: 0.5rem;
}
.link-btn {
    flex: 1;
    padding: 0.7rem;
    background: var(--light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: var(--transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.link-btn:hover {
    background: var(--primary);
    color: white;
}

/* ==================== Experience Section ==================== */
.experience {
    background: white;
}
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: translateX(50%);
}
.timeline-item {
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
}
.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}
.timeline-marker {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}
.timeline-content {
    flex: 1;
    background: var(--light);
    padding: 2rem;
    border-radius: 10px;
    transition: var(--transition);
}
.timeline-content:hover {
    box-shadow: var(--shadow);
}
.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.company {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.achievements {
    list-style: none;
}
.achievements li {
    padding: 0.5rem 0;
    color: var(--gray);
}

/* ==================== Education & Certifications ==================== */
.education {
    background: white;
    padding: 4rem 0;
}
.education .section-title {
    margin-bottom: 3rem;
}
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.education-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(136, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.education-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-8px);
}
.education-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.education-card h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.education-card .platform {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.education-card .description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}
.education-card .badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: center;
}

/* ==================== Testimonials Section ==================== */
.testimonials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}
.stars {
    color: #ffd89b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.testimonial-card p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.author-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.testimonial-author h4 {
    margin: 0;
}
.testimonial-author p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ==================== Stats Section ==================== */
.stats {
    background: white;
    padding: 3rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 10px;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}
.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}
.stat-card:hover h3 {
    color: white;
    font-size: 3rem;
}
.stat-card i {
    font-size: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transition: var(--transition);
}
.stat-card:hover i {
    opacity: 1;
}

/* ==================== Contact Section ==================== */
.contact {
    background: white;
}
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.contact-info p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-item {
    display: flex;
    gap: 1rem;
}
.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.5rem;
}
.contact-item h4 {
    margin-bottom: 0.3rem;
}
.contact-item a,
.contact-item p {
    color: var(--gray);
    text-decoration: none;
}
.contact-item a:hover {
    color: var(--primary);
}
.contact-social h4 {
    margin-bottom: 1rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-icons a {
    width: 45px;
    height: 45px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}
.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group {
    display: flex;
}
.form-group input,
.form-group textarea {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-group button {
    align-self: flex-start;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}
.footer-section p {
    color: #d1d5db;
    line-height: 1.8;
}
.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 0.5rem;
}
.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
}
.footer-section ul li a:hover {
    color: var(--primary);
    padding-right: 0.5rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
}

/* ==================== Scroll to Top Button ==================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        margin-right: 0;
    }
    
    .timeline-marker {
        position: absolute;
        right: auto;
        left: 0;
    }
    
    .timeline-content {
        margin-right: 0;
        margin-right: 50px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stat-card:hover h3 {
        font-size: 2.5rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 1rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .hero {
        min-height: calc(100vh - 60px);
        margin-top: 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::after {
        width: 40px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h4 {
        font-size: 1.5rem;
    }
    
    .project-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stat-card:hover h3 {
        font-size: 2.3rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ==================== Animations ==================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== Utility Classes ==================== */
.text-center {
    text-align: center;
}
.mt-1 {
    margin-top: 0.5rem;
}
.mt-2 {
    margin-top: 1rem;
}
.mt-3 {
    margin-top: 1.5rem;
}
.mt-4 {
    margin-top: 2rem;
}
.mb-1 {
    margin-bottom: 0.5rem;
}
.mb-2 {
    margin-bottom: 1rem;
}
.mb-3 {
    margin-bottom: 1.5rem;
}
.mb-4 {
    margin-bottom: 2rem;
}
.p-1 {
    padding: 0.5rem;
}
.p-2 {
    padding: 1rem;
}
.p-3 {
    padding: 1.5rem;
}
.p-4 {
    padding: 2rem;
}