/* Custom Styles for Bootstrap Integration */
:root {
    --primary-color: #667eea;
    --blue-color: #006aff;
    --secondary-color: #764ba2;
    --text-color: #333;
    --background-color: #f8f9fa;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif !important;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* About Section Background */
#about {
    background-color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
    padding-top: 80px !important;
}

/* Main Content Sections Background */
.main-content {
    background-color: white;
    position: relative;
    z-index: 1;
}

/* Ensure all sections have white background */
#experience,
#education,
#skills,
#projects,
#contact {
    background-color: white;
}

/* Bootstrap Color Overrides */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.bg-blue {
    background: linear-gradient(135deg, var(--blue-color) 0%, var(--secondary-color) 100%) !important;
}

.bg-purple {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%) !important;
}

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

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    color: white;
}

/* Navigation Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color) !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
    padding: 8px 16px !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 0; /* Remove underline for active state as it has background */
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Timeline Styles */
.timeline-date {
    font-weight: 600;
    white-space: nowrap;
}

/* Project Cards */
.project-card:hover {
    transform: translateY(-8px);
}

.project-card .card-img-top {
    transition: transform 0.3s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Skill Progress Animation */
.progress-bar {
    animation: progressAnimation 2s ease-in-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

/* Contact Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badge Customization */
.badge {
    font-size: 0.85rem;
    padding: 0.5em 0.75em;
}

/* Responsive Image */
.profile-image img {
    max-width: 100%;
    height: auto;
}

/* Button-like icons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  text-decoration: none;
  color: #fff !important;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1050;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.scroll-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color, #27ae60);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.scroll-indicator:hover {
  background: var(--secondary-color, #2ecc71);
  transform: translateY(-4px) scale(1.1);
}
/* Dark Theme */
.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.dark-theme .header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-theme .navbar {
    background: #2c2c2c !important;
}

.dark-theme .nav-link {
    color: #e0e0e0 !important;
}

.dark-theme .nav-link:hover {
    color: var(--primary-color) !important;
}

.dark-theme .section-title {
    color: #e0e0e0;
}

.dark-theme .card {
    background: #2c2c2c;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-theme .form-control {
    background: #3c3c3c;
    border-color: #555;
    color: #e0e0e0;
}

.dark-theme .form-control:focus {
    background: #3c3c3c;
    border-color: var(--primary-color);
    color: #e0e0e0;
}

.dark-theme .badge.bg-light {
    background: #3c3c3c !important;
    color: var(--primary-color) !important;
}

.dark-theme .main-content,
.dark-theme #about,
.dark-theme #experience,
.dark-theme #education,
.dark-theme #skills,
.dark-theme #projects,
.dark-theme #contact {
    background-color: #1a1a1a;
}

.dark-theme .skill-item .skill-text {
    color: #e0e0e0;
}

.dark-theme .skill-item:hover .skill-text {
    color: #ffffff;
}

.dark-theme .text-muted {
    color: #a0a0a0 !important;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .display-3 {
        font-size: 2rem !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .theme-toggle {
        display: none !important;
    }

    .header {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #007bff;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.skill-item img,
.skill-item i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-item img {
    object-fit: contain;
}

.skill-text {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.skill-item:hover .skill-text {
    color: #007bff;
    transition: 0.3s;
}

.icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem; /* fa-2x */
  text-decoration: none;
}


.icon.globe::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0ac"; /* globe icon */
  color: #007bff;
}

.icon.play::before {
  font-family: "Font Awesome 6 Brands";
  content: "\f3ab"; /* google-play */
  color: #3DDC84;
}

.icon.apple::before {
  font-family: "Font Awesome 6 Brands";
  content: "\f179"; /* apple */
  color: #000;
}

.icon.lock::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f023"; /* lock */
  color: #FFC107;
}

.icon.ban::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f05e"; /* ban */
  color: #DC3545;
}
