/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Content pages background - Facebook blue gradient */
body:not(.homepage) {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.content {
    background: rgba(255, 255, 255, 0.95);
    margin: 70px 20px 20px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 90px;
}

/* Hero section for app detail pages */
.hero-section {
    width: 100%;
    height: 400px;
    background-image: url('https://res.cloudinary.com/dufyzcc72/image/upload/v1758070865/19201080_ue01po.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.app-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.app-features {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
}

.app-screenshots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.language-selection {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* Name header styling */
.name-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    margin: -3rem -2rem 2rem -2rem;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
    border-bottom: 3px solid #2196f3;
}

.name-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0;
    color: #1565c0;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.language-selection h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.language-selection p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.5;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

/* Navigation styles */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #3b82f6;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
}

.language-toggle, .lessons-dropdown {
    position: relative;
}

.language-btn, .lessons-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.language-btn:hover, .lessons-btn:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.language-dropdown, .lessons-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    display: none;
    z-index: 1001;
}

.lessons-dropdown-menu {
    left: 0;
    right: auto;
}

.language-dropdown.show, .lessons-dropdown-menu.show {
    display: block;
}

.language-dropdown button, .lessons-dropdown-menu a {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    color: #666;
    display: block;
}

.language-dropdown button:hover, .lessons-dropdown-menu a:hover {
    background: #f3f4f6;
    color: #3b82f6;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
}

/* About page styles */
.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.bio {
    max-width: 800px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Resume styles */
.resume-section {
    margin-bottom: 3rem;
}

.resume-section h2 {
    color: #1877f2; /* Facebook blue */
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1877f2;
    padding-bottom: 0.5rem;
}

.resume-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.resume-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.resume-item .date {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* App grid styles */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.app-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.app-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.app-content {
    padding: 1.5rem;
}

.app-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.app-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.app-buttons {
    display: flex;
    gap: 1rem;
}

.app-button-container {
    text-align: left;
    margin-top: 1rem;
}

.view-app-btn {
    display: inline-block;
    background: #1877f2; /* Facebook blue */
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 119, 242, 0.3);
}

.view-app-btn:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
    color: white;
    text-decoration: none;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-small.btn-outline {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    background: transparent;
}

.btn-small.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
}

/* Video styles */
.video-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.video-description {
    margin-top: 2rem;
}

.video-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Footer styles */
.footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 1rem 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Slideshow Styles */
.slideshow-container {
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    display: block;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 16px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: background-color 0.3s;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.slide-nav.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slide-indicators {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
}

.indicator {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background-color: #717171;
}

/* Responsive design */
@media (min-width: 640px) {
    .button-container {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .language-selection h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }

    .app-detail-content {
        grid-template-columns: 1fr;
    }

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

    .name-header h1 {
        font-size: 2.2rem;
    }
}

/* Responsive slideshow */
@media screen and (max-width: 768px) {
    .slideshow-wrapper {
        height: 400px;
    }
    
    .slide-nav {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .indicator {
        height: 12px;
        width: 12px;
        margin: 0 3px;
    }
}

@media screen and (max-width: 480px) {
    .slideshow-wrapper {
        height: 300px;
    }
    
    .slide-nav {
        padding: 10px 14px;
        font-size: 14px;
    }
}