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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background-color: #ffffff;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h2 {
    color: #2563eb;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #1f2937;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

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

.cv-nav-link {
    color: #2563eb !important;
    font-weight: 600 !important;
}

.cv-nav-link i {
    margin-right: 4px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2563eb;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

/* About Me Section */
.about-section {
    background-color: #ffffff;
    padding: 80px 0;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
    text-align: center;
}

.about-image {
    width: 100%;
    display: none;
    /* Hide empty image container */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.about-text h1 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.about-text .subtitle {
    color: #2563eb;
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 500;
    font-style: italic;
}

.about-text p {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-btns {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.cv-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: #fff;
}

.cv-btn i {
    font-size: 1.1rem;
}

/* Education Section */
.education-section {
    padding: 100px 0;
    background-color: #fff;
}

.education-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.education-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.education-icon i {
    font-size: 2rem;
    color: #2563eb;
}

.education-details {
    flex: 1;
}

.education-details h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-details .institution {
    color: #374151;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.education-details .period {
    color: #666;
    font-size: 1rem;
    font-style: italic;
}

.mini-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.mini-list li {
    font-size: 0.95rem;
    color: #4b5563;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.mini-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2563eb;
}

/* Experience Section */
.experience-section {
    padding: 100px 0;
    background-color: #f9fafb;
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.experience-item {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(10px);
    border-color: #2563eb;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 15px;
}

.exp-title h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    font-weight: 700;
}

.exp-title .company {
    color: #2563eb;
    font-weight: 600;
    font-size: 1.1rem;
}

.exp-date {
    background: #eff6ff;
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.exp-list {
    list-style: none;
}

.exp-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #4b5563;
    line-height: 1.6;
}

.exp-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #10b981;
}

@media (max-width: 768px) {
    .exp-header {
        flex-direction: column;
        gap: 10px;
    }

    .experience-item:hover {
        transform: translateY(-5px);
    }
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-heading {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-card h3 i {
    color: #2563eb;
    margin-right: 8px;
    font-size: 1.2rem;
}

.skill-card p strong {
    color: #2563eb;
    font-weight: 600;
}

.skill-card {
    background-color: #fff;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.skill-card h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.skill-card p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

/* Clients Section */
.clients-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.client-logo:hover {
    transform: scale(1.1);
}

.client-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Script Hero Section */
.script-hero-section {
    padding: 0;
    background-color: #fff;
    width: 100%;
}

.script-hero-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    /* Takes up significant screen height */
    min-height: 400px;
    border-radius: 0;
    overflow: hidden;
    /* Removed box-shadow for full-width seamless look */
}

.script-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.script-hero-wrapper:hover .script-hero-img {
    transform: scale(1.05);
}

.script-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* White overlay to make colored text pop */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.script-hero-overlay h2 {
    color: #2563eb;
    /* Matches section-heading color */
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Responsive adjustments for Script Hero */
@media (max-width: 768px) {
    .script-hero-wrapper {
        height: 250px;
    }

    .script-hero-overlay h2 {
        font-size: 2.5rem;
    }
}

/* Video Scripts Section */
.video-scripts-section {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.scripts-grid {

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: start;
}

.script-card {
    position: relative;
    width: 100%;
    max-width: 250px;
    /* iPhone 17 Pro Max Style Frame */
    border: 8px solid #1c1c1e;
    /* Sleek Titanium/Graphite bezel */
    border-radius: 44px;
    /* Matches modern curvature */
    background-color: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    /* External shadow + inner metallic rim hint */
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    z-index: 1;
}

/* Dynamic Island */
.script-card::after {
    content: '';
    position: absolute;
    top: 15px;
    /* Floating island position */
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 24px;
    background-color: #000;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.script-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.script-card img {
    width: 100%;
    height: auto;
    display: block;
    /* Ensure image fills the corners */
    border-radius: 34px;
    /* Inner radius matching bezel curvature slightly less */
    background-color: #000;
}

/* Content Section */
.content-section {
    padding: 50px 0;
    background-color: #ffffff;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.content-card {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Removed fixed height to allow content to dictate size */
}

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

.content-image {
    width: 100%;
    /* Allow the image to define the height so it shows fully */
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.content-image img {
    width: 100%;
    /* Show the full image without cropping */
    height: auto;
    display: block;
    object-fit: contain;
}

.content-text {
    padding: 25px;
    flex-grow: 1;
}

.content-text h3 {
    color: #2563eb;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.content-text p {
    color: #374151;
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.content-text ul {
    margin: 15px 0;
    padding-left: 25px;
}

.content-text ul li {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
    position: relative;
}

.content-text ul li::marker {
    color: #2563eb;
}

.content-text .tagline {
    font-style: italic;
    color: #2563eb;
    font-weight: 500;
    margin-top: 15px;
    font-size: 1rem;
}

.content-text-arabic {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 2px solid #e5e7eb;
    direction: rtl;
    text-align: right;
}

.content-text-arabic h3 {
    color: #2563eb;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.content-text-arabic p {
    color: #374151;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-text-arabic ul {
    margin: 20px 0;
    padding-right: 25px;
    padding-left: 0;
}

.content-text-arabic ul li {
    color: #000;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.content-text-arabic .tagline {
    font-style: italic;
    color: #2563eb;
    font-weight: 500;
    margin-top: 20px;
    font-size: 1.15rem;
}

.content-hashtags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    color: #f66262;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.service-card h3 {
    color: #1e3a8a;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: #ffffff;
    padding: 50px 0 20px;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.footer-brand p {
    color: #374151;
    font-size: 0.9rem;
    font-style: italic;
}

.footer-contact p {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-contact i {
    color: #2563eb;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    margin-top: 5px;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn i {
    font-size: 1.2rem;
    color: #fff !important;
}

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

.footer-social a,
.footer-social .whatsapp-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

.footer-social .whatsapp-btn {
    background-color: #25d366;
    color: #fff !important;
}

.footer-social a:hover,
.footer-social .whatsapp-btn:hover {
    background-color: #2563eb;
    color: #fff;
    transform: translateY(-3px);
}

.footer-social .whatsapp-btn:hover {
    background-color: #128c7e;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.footer-bottom p {
    color: #4b5563;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {

    .skills-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .scripts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .education-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .education-icon {
        margin-bottom: 10px;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }



    .content-text {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .nav-wrapper {
        padding: 10px 0;
    }

    .logo h2 {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 15px 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .about-section {
        padding: 60px 0;
        min-height: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-text h1 {
        font-size: 2rem;
        text-align: center;
    }

    .about-text .subtitle {
        text-align: center;
        font-size: 1.1rem;
    }

    .about-text p {
        text-align: center;
        font-size: 1rem;
    }

    .education-section {
        padding: 60px 0;
    }

    .education-item {
        padding: 30px;
    }

    .education-icon {
        width: 60px;
        height: 60px;
    }

    .education-icon i {
        font-size: 1.5rem;
    }

    .education-details h3 {
        font-size: 1.3rem;
    }

    .section-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .skills-section,
    .clients-section,
    .video-scripts-section,
    .content-section,
    .services-section {
        padding: 30px 0;
    }

    .skills-grid,
    .services-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-card,
    .service-card {
        padding: 25px;
    }



    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .client-logo {
        width: 100px;
        height: 100px;
    }

    .footer {
        padding: 40px 0 15px;
    }

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

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 55px;
    }

    .nav-wrapper {
        padding: 8px 0;
    }

    .logo h2 {
        font-size: 1rem;
    }

    .nav-menu {
        top: 55px;
    }

    .container {
        padding: 0 15px;
    }

    .about-section {
        padding: 40px 0;
    }

    .skills-section,
    .clients-section,
    .video-scripts-section,
    .content-section,
    .services-section {
        padding: 25px 0;
    }

    .about-text h1 {
        font-size: 1.75rem;
    }

    .about-text .subtitle {
        font-size: 1rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .section-heading {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }

    .skill-card h3,
    .service-card h3 {
        font-size: 1.2rem;
    }

    .skill-card p,
    .service-card p {
        font-size: 0.9rem;
    }

    .clients-grid,
    .scripts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .client-logo {
        width: 90px;
        height: 90px;
    }

    .education-item {
        padding: 25px;
    }

    .education-icon {
        width: 50px;
        height: 50px;
    }

    .education-icon i {
        font-size: 1.3rem;
    }

    .education-details h3 {
        font-size: 1.1rem;
    }

    .education-details .institution {
        font-size: 0.95rem;
    }

    .education-details .period {
        font-size: 0.9rem;
    }

    .footer-brand h3 {
        font-size: 1.2rem;
    }

    .footer-contact p {
        font-size: 0.9rem;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }



    .content-text {
        padding: 20px;
    }

    .content-text h3,
    .content-text-arabic h3 {
        font-size: 1.2rem;
    }

    .content-text p,
    .content-text-arabic p {
        font-size: 0.9rem;
    }

    .content-text ul li,
    .content-text-arabic ul li {
        font-size: 0.85rem;
    }

    .content-hashtags {
        font-size: 0.75rem;
    }

    .content-grid {
        gap: 30px;
    }
}