/* =============================================
   Ameed Salama - Portfolio Single Page
   ============================================= */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* =============================================
   Navbar
   ============================================= */
.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 0;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: #3498db;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    transform: translateY(-2px);
}

.nav-menu a.active {
    background-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

/* =============================================
   Section Titles
   ============================================= */
.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: #2c3e50;
    font-weight: bold;
}

.section-subtitle {
    font-size: 18px;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 140px 20px 100px;
    text-align: center;
}

.hero-section h1 {
    font-size: 52px;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-section p {
    font-size: 24px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-btn {
    background: white;
    color: #2c3e50;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* =============================================
   About Section
   ============================================= */
.about-section {
    padding: 80px 20px;
    background: #f9f9f9;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-img {
    width: 250px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 5px solid white;
    display: block;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-text p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-btn {
    border: 2px solid #3498db;
    color: #2c3e50;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
}

.about-btn:hover {
    background: #3498db;
    color: white;
}

/* Skills Section */
.skills-section-wrapper {
    max-width: 1200px;
    margin: 60px auto 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.skill-card {
    background: white;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.skill-card h4 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    background: #eef5fb;
    color: #2c3e50;
    border: 1px solid #d7e7f7;
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
}

/* =============================================
   Services Section
   ============================================= */
.services-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card.border-blue { border-top: 5px solid #3498db; }
.service-card.border-green { border-top: 5px solid #16a085; }
.service-card.border-red { border-top: 5px solid #e74c3c; }
.service-card.border-purple { border-top: 5px solid #9b59b6; }
.service-card.border-orange { border-top: 5px solid #f39c12; }
.service-card.border-dark { border-top: 5px solid #34495e; }

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 40px;
}

.service-card h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-card p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    margin: 3px;
}

/* Why Choose Me */
.why-section {
    padding: 80px 20px;
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.why-card {
    padding: 30px;
    text-align: center;
}

.why-card .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.why-card h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 15px;
}

.why-card p {
    color: #666;
    line-height: 1.7;
}

/* =============================================
   Portfolio Section
   ============================================= */
.portfolio-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-banner {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 26px;
    font-weight: bold;
}

.project-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.github-btn:hover {
    transform: translateY(-3px);
}

/* =============================================
   Album Section
   ============================================= */
.album-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.education-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    border-left: 8px solid #3498db;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.education-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.education-header .icon {
    font-size: 60px;
}

.education-header h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: bold;
}

.education-header p {
    color: #666;
    font-size: 18px;
}

.album-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.album-skill-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.album-skill-card:hover {
    transform: translateY(-10px);
}

.album-skill-card .icon {
    font-size: 50px;
    margin-bottom: 20px;
    text-align: center;
}

.album-skill-card h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.skill-item {
    margin-bottom: 12px;
}

.skill-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-item-header span:first-child {
    color: #555;
    font-weight: 500;
}

.skill-item-header span:last-child {
    font-weight: bold;
}

.skill-progress-bg {
    width: 100%;
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
}

/* Project Badges */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.badge-card {
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.badge-card:hover {
    transform: scale(1.05);
}

.badge-card .icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.badge-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: bold;
}

.badge-card p {
    opacity: 0.95;
    font-size: 15px;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-section {
    padding: 80px 20px;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.contact-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 20px;
}

.contact-card a {
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.social-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.social-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 32px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn.linkedin {
    background: #0077b5;
    box-shadow: 0 5px 15px rgba(0,119,181,0.3);
}

.social-btn.linkedin:hover {
    box-shadow: 0 8px 20px rgba(0,119,181,0.4);
}

.social-btn.facebook {
    background: #1877f2;
    box-shadow: 0 5px 15px rgba(24,119,242,0.3);
}

.social-btn.facebook:hover {
    box-shadow: 0 8px 20px rgba(24,119,242,0.4);
}

.social-btn.github {
    background: #2c3e50;
    box-shadow: 0 5px 15px rgba(44,62,80,0.3);
}

.social-btn.github:hover {
    box-shadow: 0 8px 20px rgba(44,62,80,0.4);
}

/* =============================================
   CTA Sections
   ============================================= */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #2c3e50;
    padding: 16px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    color: white;
    padding: 60px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer h3 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
}

.footer p {
    color: #bdc3c7;
    line-height: 1.8;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3498db;
    transform: translateX(-5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    color: #bdc3c7;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #3498db;
}

.footer-social {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    transform: translateY(-5px);
}

.footer-social a.fb:hover {
    background: #1877f2;
    box-shadow: 0 5px 15px rgba(24,119,242,0.4);
}

.footer-social a.li:hover {
    background: #0077b5;
    box-shadow: 0 5px 15px rgba(0,119,181,0.4);
}

.footer-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 30px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 14px;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

/* =============================================
   Hamburger Button
   ============================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger .bar {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =============================================
   Responsive
   ============================================= */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        padding: 14px 25px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 16px;
    }

    .nav-menu a:hover {
        background-color: rgba(52, 152, 219, 0.2);
        padding-right: 35px;
    }

    .nav-menu a.active {
        border-bottom: 1px solid rgba(52,152,219,0.3);
        border-left: 4px solid #3498db;
    }

    .hero-section {
        padding: 120px 20px 60px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .about-img {
        width: 180px;
        height: 180px;
    }

    .about-text h2 {
        font-size: 24px;
    }

    .about-text p {
        text-align: left;
        font-size: 14px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .album-skills-grid {
        grid-template-columns: 1fr;
    }

    .badges-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        padding: 25px;
    }

    .education-header .icon {
        font-size: 40px;
    }

    .education-header h2 {
        font-size: 22px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .social-section {
        padding: 30px 15px;
    }

    .social-section h2 {
        font-size: 22px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Small phones */
@media screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 26px;
    }

    .hero-section p {
        font-size: 14px;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .section-title {
        font-size: 22px;
    }

    .nav-logo {
        font-size: 20px;
    }

    .about-img {
        width: 150px;
        height: 150px;
    }

    .badge-card {
        padding: 25px;
    }

    .badge-card .icon {
        font-size: 40px;
    }

    .badge-card h3 {
        font-size: 18px;
    }

    .contact-card {
        padding: 25px;
    }

    .github-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}
