/* ==========================================
   PORTFOLIO WEBSITE - CUSTOM CSS STYLES
   Author: Ahmed Ragab
   Version: 1.0
   ========================================== */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Primary Colors */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.1);
    
    /* Background Colors */
    --bg-dark: #0f0f1a;
    --bg-dark-secondary: #161625;
    --bg-card: #1e1e2e;
    --bg-card-hover: #252538;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Accent Colors */
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-blue: #3b82f6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #161625 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Font Family */
    --font-primary: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--text-primary);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--primary-hover);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Section Padding */
.section-padding {
    padding: 100px 0;
}

/* Background Variations */
.bg-dark-secondary {
    background-color: var(--bg-dark-secondary);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-3 {
    font-weight: 800;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* ==================== BUTTONS ==================== */
.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-primary);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid var(--text-secondary);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* ==================== NAVBAR ==================== */
.navbar {
    padding: 15px 0;
    background: transparent;
    transition: var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-family: var(--font-code);
    letter-spacing: -1px;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Typed Text Animation */
.typed-text {
    color: var(--primary-color);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border: 2px solid var(--text-muted);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Code Window */
.hero-image {
    position: relative;
}

.code-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.code-header {
    background: var(--bg-dark-secondary);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
}

.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-yellow); }
.dot.green { background: var(--accent-green); }

.file-name {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-code);
}

.code-content {
    padding: 20px;
    margin: 0;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content code {
    color: var(--text-secondary);
}

.code-content .keyword { color: #c792ea; }
.code-content .variable { color: #82aaff; }
.code-content .property { color: #f78c6c; }
.code-content .string { color: #c3e88d; }
.code-content .boolean { color: #ff5370; }
.code-content .method { color: #82aaff; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.scroll-indicator a:hover {
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ==================== SECTION HEADER ==================== */
.section-header .badge {
    font-size: 0.9rem;
    font-weight: 500;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    margin-top: 15px;
}

/* ==================== ABOUT SECTION ==================== */
.about-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image {
    width: 350px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--gradient-primary);
}

.about-image .profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.about-image:hover .profile-img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    margin: 5px;
    border-radius: var(--radius-lg);
}

.image-placeholder i {
    font-size: 8rem;
    color: var(--text-muted);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Info Cards */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.info-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-content h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

/* Tech Stack */
.tech-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: var(--transition-normal);
}

.tech-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== SKILLS SECTION ==================== */
.skill-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item .skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.skill-item .skill-info span:last-child {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-item .progress {
    height: 8px;
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.skill-item .progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    width: 0;
    transition: width 1.5s ease-out;
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ==================== PROJECTS SECTION ==================== */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-color: transparent;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 26, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-normal);
    transform: translateY(20px);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background: var(--primary-hover);
    color: var(--text-primary);
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.project-card:hover .project-content h4 {
    color: var(--primary-color);
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 5px 12px;
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ==================== EXPERIENCE & EDUCATION SECTION ==================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bg-card);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 14px;
    height: 14px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    border: 3px solid var(--bg-dark-secondary);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.timeline-content .company {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content .company i {
    color: var(--primary-color);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.timeline-tags span {
    padding: 4px 12px;
    background: var(--bg-dark-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ==================== CONTACT SECTION ==================== */
.contact-info h4 {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h6 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.contact-text a:hover {
    color: var(--primary-color);
}

/* Social Buttons */
.social-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-btn:hover {
    background: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-control {
    background: var(--bg-dark-secondary);
    border: 2px solid transparent;
    color: var(--text-primary);
    padding: 15px;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.form-control:focus {
    background: var(--bg-dark-secondary);
    border-color: var(--primary-color);
    box-shadow: none;
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-floating > label {
    color: var(--text-muted);
    padding: 15px;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
}

.form-control.is-invalid {
    border-color: var(--accent-red);
}

.form-control.is-valid {
    border-color: var(--accent-green);
}

.invalid-feedback {
    font-size: 0.85rem;
}

/* Form Messages */
.form-message {
    text-align: center;
    padding: 40px;
}

.form-message i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.form-message.success i {
    color: var(--accent-green);
}

.form-message.error i {
    color: var(--accent-red);
}

.form-message h5 {
    margin-bottom: 10px;
}

.form-message p {
    color: var(--text-secondary);
    margin: 0;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark-secondary);
    padding: 30px 0;
    border-top: 1px solid var(--bg-card);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-code);
    color: var(--text-primary);
}

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

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ==================== ANIMATIONS ==================== */
/* Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In Left */
.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fade In Right */
.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale In */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* ==================== RESPONSIVE DESIGN ==================== */
/* Large Devices (Desktops) */
@media (max-width: 1199.98px) {
    .hero-section {
        padding-top: 80px;
    }
    
    .display-3 {
        font-size: 3rem;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .navbar-collapse {
        background: var(--bg-dark-secondary);
        padding: 20px;
        border-radius: var(--radius-md);
        margin-top: 15px;
    }
    
    .nav-link {
        padding: 12px 0 !important;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .about-image-wrapper {
        margin-bottom: 60px;
    }
    
    .experience-badge {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline {
        padding-left: 25px;
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .about-image {
        width: 280px;
        height: 320px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .display-3 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .project-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .experience-badge {
        padding: 20px;
    }
    
    .experience-badge .number {
        font-size: 2rem;
    }
}

/* ==================== PREFERS REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-padding {
        padding: 30px 0;
    }
}
