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


body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}


.nav-links a {
    text-decoration: none;
    color: white;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../your-photo.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    animation: heroReveal 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 70%, rgba(0,0,0,0.3) 100%);
    animation: fadeIn 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
    animation: slideUp 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 2rem);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

.hero-portrait {
    flex: 0 0 400px;
    height: 600px;
    position: relative;
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator i {
    font-size: 1.8rem;
    animation: bounce 1.5s infinite;
}

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

/* Enhanced Animations */
@keyframes heroReveal {
    0% {
        transform: scale(1.05);
        filter: blur(8px);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(40px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Add a subtle floating animation for continuous movement */
.hero-content {
    animation: float 3.5s ease-in-out infinite;
}

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

/* Mobile-specific styles */
@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        background-size: 313% auto;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portfolio-filters {
        justify-content: flex-start;
    }
    
    .social-links {
        gap: 1rem;
    }

    .category-item {
        height: 650px;
    }

    .portfolio-item {
        height: 600px;
    }

    .category-item img {
        object-position: top center;
    }

    .portfolio-item img {
        object-position: top center;
    }

    /* Language switch button mobile adjustments */
    .language-switch {
        top: 1rem;
        left: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    html[dir="rtl"] .language-switch {
        left: auto;
        right: 1rem;
    }

    /* Fix portrait image position on mobile - This can be removed if the above is sufficient or adjusted */
    .category-item[data-category="portrait"] img {
        /* object-position: center 15%; */ /* Original rule, might conflict or be redundant */
        /* We can keep it if portrait needs a very specific crop, otherwise the general rule above applies */
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Portfolio Section */
.portfolio {
    padding: 4rem 1rem;
    background: #fff;
    min-height: 100vh;
}

.portfolio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin: 0;
}

.back-btn {
    padding: 0.5rem 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(0.9rem, 3vw, 1rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.back-btn:hover {
    background: #666;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f4f4f4;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: clamp(0.9rem, 3vw, 1rem);
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #333;
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* About Section */
.about {
    padding: 4rem 1rem;
    background: #f9f9f9;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 1.5rem;
}

.about p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: #333;
    font-size: clamp(1.5rem, 5vw, 2rem);
    transition: color 0.3s ease;
}

/* Footer */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Hover Effects */
.category-item:hover img,
.portfolio-item:hover img {
    transform: scale(1.05);
}

.category-item:hover .category-overlay {
    opacity: 1;
}

.social-links a:hover {
    color: #666;
}

.filter-btn:hover,
.back-btn:hover {
    background: #666;
    color: white;
}

/* Categories Section */
.categories {
    padding: 4rem 1rem;
    background: #f9f9f9;
}

.category-featured {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.category-item.large {
    width: 100%;
    margin: 0 auto;
    height: 500px;
    grid-column: unset;
}

@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-item {
        height: 600px;
    }
}

.category-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    opacity: 1;
}

.category-overlay h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 500;
    text-align: center;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.category-item:hover img {
    transform: scale(1.05);
}

.category-item:hover .category-overlay {
    opacity: 1;
}

.category-item.large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Base hover effects for desktop */
.category-item:hover {
    transform: translateY(-5px);
}

.category-item:hover img {
    transform: scale(1.05);
}

.category-item:hover .category-overlay {
    opacity: 1;
}

/* Permanent effects for mobile devices */
@media (max-width: 768px) {
    .category-item {
        transform: translateY(-5px);
    }

    .category-item img {
        transform: scale(1.05);
    }

    .category-item .category-overlay {
        opacity: 1;
    }
}

/* Contact Section */
.contact {
    padding: 4rem 1rem;
    background: #fff;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact h2 {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    color: white;
    font-size: 1.8rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Individual social media brand colors - Always visible */
.social-links a[href*="wa.me"] {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-links a[href*="linkedin"] {
    background: linear-gradient(135deg, #0077B5, #005885);
}

.social-links a[href*="instagram"] {
    background: linear-gradient(135deg, #E4405F, #C13584, #833AB4);
}

.social-links a[href*="snapchat"] {
    background: linear-gradient(135deg, #FFFC00, #FFF700);
    color: #333;
}

.social-links a[href*="tiktok"] {
    background: linear-gradient(135deg, #000000, #333333);
}

/* Enhanced hover effects */
.social-links a[href*="wa.me"]:hover {
    background: linear-gradient(135deg, #2EE76F, #16A085);
}

.social-links a[href*="linkedin"]:hover {
    background: linear-gradient(135deg, #0099CC, #006699);
}

.social-links a[href*="instagram"]:hover {
    background: linear-gradient(135deg, #FF6B8A, #E91E63, #9C27B0);
}

.social-links a[href*="snapchat"]:hover {
    background: linear-gradient(135deg, #FFFF33, #FFEE00);
}

.social-links a[href*="tiktok"]:hover {
    background: linear-gradient(135deg, #333333, #555555);
}

/* Mobile Responsive Styles for Contact Section */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .social-links a:hover {
        transform: translateY(-5px) scale(1.05);
    }
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.hero-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Burger Menu Icon */
.burger-icon {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-left: 1rem;
}

.burger-icon span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Mobile Responsive Styles for Hero Navigation */
@media (max-width: 768px) {
    .hero-nav {
        top: 1rem;
        right: 1rem;
    }

    .burger-icon {
        display: block;
        background: rgba(0,0,0,0.3);
        border-radius: 5px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -280px;
        width: 250px;
        height: 100vh;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
        transition: right 0.35s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        right: 0;
    }

    .burger-icon.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .burger-icon.active span:nth-child(2) {
        opacity: 0;
    }
    .burger-icon.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.1rem;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }
    .hero-btn:hover {
        background: rgba(255,255,255,0.15);
        transform: translateY(0);
    }
}

/* Language Switch Button */
.language-switch {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-switch:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.gallery-lang-switch {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    left: auto;
    right: 2rem;
}

.gallery-lang-switch:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    font-family: 'Arial', 'Segoe UI', 'Tahoma', sans-serif;
}

html[dir="rtl"] .language-switch {
    left: auto;
    right: 2rem;
}

html[dir="rtl"] .hero-nav {
    left: 2rem;
    right: auto;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* RTL fixes for mobile burger menu */
@media (max-width: 768px) {
    html[dir="rtl"] .hero-nav {
        left: 1rem;
        right: auto;
    }

    html[dir="rtl"] .nav-links {
        flex-direction: column;
        right: auto;
        left: -280px;
    }

    html[dir="rtl"] .nav-links.active {
        left: 0;
        right: auto;
    }

    html[dir="rtl"] .burger-icon {
        margin-left: 0;
        margin-right: 1rem;
    }

    /* Gallery language switch mobile positioning */
    .gallery-lang-switch {
        top: 1rem;
        right: 1rem;
    }

    html[dir="rtl"] .gallery-lang-switch {
        right: auto;
        left: 1rem;
    }

    html[dir="rtl"] .back-button {
        right: 1rem;
        left: auto;
    }
}

html[dir="rtl"] .back-button {
    right: 2rem;
    left: auto;
}

html[dir="rtl"] .gallery-lang-switch {
    right: auto;
    left: 2rem;
}

html[dir="rtl"] .back-button i {
    transform: rotate(180deg);
}

html[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .category-grid {
    direction: rtl;
}

html[dir="rtl"] .gallery-grid {
    direction: rtl;
}

/* Arabic Typography */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] p {
    line-height: 1.8;
}

html[dir="rtl"] .hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

html[dir="rtl"] .hero p {
    font-size: clamp(1rem, 4vw, 1.3rem);
}

/* Smooth transitions for language switch */
* {
    transition: all 0.3s ease;
}

h1, h2, h3, p, a, span {
    transition: all 0.3s ease;
} 