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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: var(--text-dark);
}

.lang-toggle:hover {
    color: var(--primary-color);
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.lang-text {
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #ffffff;
}

/* Hero banner: shared base styles */
.hero-video,
.hero-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    display: none;
}

/* VIDEO banner sizing - adjust these values */
.hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(0.5); /* Adjust scale value as needed */
}

/* IMAGE banner sizing - adjust these values */
.hero-image {
    width: auto;
    height: auto;
    max-width: 1400px;       /* Fixed max width - won't grow beyond this */
    max-height: 85vh;        /* Max 85% of viewport height */
    border-radius: 2rem;
    object-position: center center;
}

/* Hero banner toggle */
.hero--video .hero-video {
    display: block;
}

.hero--image .hero-image {
    display: block;
}

/* Hide overlay for both modes */
.hero--image .hero-overlay,
.hero--video .hero-overlay {
    display: none;
}

/* VIDEO mode: dark overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* About Section */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-profile {
    flex-shrink: 0;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-badge {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-text {
    flex: 1;
    font-size: 1.125rem;
    color: var(--text-light);
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Responsive About Section */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

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

    .profile-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1.2rem;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

a.project-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card {
    background: var(--bg-white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-light);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-in-progress {
    background: #fef3c7;
    color: #92400e;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.project-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Social Media Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--text-dark);
    color: white;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary-color);
}

.social-icon svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.15rem;
    }

    .nav-toggle {
        display: flex;
        order: 3;
        margin-left: auto;
    }

    .lang-toggle {
        order: 2;
        padding: 0.3rem;
    }

    .lang-flag {
        font-size: 1rem;
    }

    .lang-text {
        font-size: 0.75rem;
    }

    .nav .container {
        gap: 0.75rem;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem 20px;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

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

    .nav-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .hero {
        height: auto;
        min-height: 0;
        padding: 0.75rem;
        background-color: #ffffff;
    }

    .hero--image .hero-image {
        display: none;
    }

    .hero--image {
        background: #1b1b1b;
        border-radius: 1rem;
        margin: 0.75rem;
        padding: 0;
        position: relative;
        overflow: hidden;
        flex-direction: column;
    }

    .hero--image::before {
        content: '';
        display: flex;
        gap: 0.5rem;
        padding: 0.85rem 1rem 0.6rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero--image::after {
        content: '';
        position: absolute;
        top: 0.7rem;
        left: 1rem;
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        background: #ff5f57;
        box-shadow:
            1.25rem 0 0 #febc2e,
            2.5rem 0 0 #28c840;
    }

    .hero .container.hero-content {
        position: relative;
        z-index: 2;
        padding: 1.5rem 1.5rem 2rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 0;
    }

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

    .skills-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .skill-category {
        min-width: 75vw;
        flex-shrink: 0;
        scroll-snap-align: center;
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.25rem;
    }

    .skill-category li {
        padding: 0.35rem 0;
    }

    /* Hide scrollbar but keep functionality */
    .skills-grid::-webkit-scrollbar {
        height: 4px;
    }

    .skills-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .skills-grid::-webkit-scrollbar-thumb {
        background: var(--border-color);
        border-radius: 2px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .project-card {
        border-radius: 0.5rem;
    }

    .project-image {
        height: 120px;
    }

    .project-content {
        padding: 0.75rem;
    }

    .project-status {
        font-size: 0.7rem;
        padding: 0.15rem 0.5rem;
        margin-bottom: 0.4rem;
    }

    .project-title {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .project-description,
    .project-tags,
    .project-link {
        display: none;
    }

    .project-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.875rem;
    }

    .contact-link {
        padding: 0.625rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero--image {
        border-radius: 0.75rem;
    }

    .hero .container.hero-content {
        padding: 1.25rem 1.25rem 1.75rem;
    }

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

    .hero-subtitle {
        font-size: 0.8rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    .filter-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .contact-links {
        flex-direction: row;
        gap: 1rem;
    }

    .contact-link {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
}
