/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    scroll-padding-top: 0;
}

:root {
    --primary-orange: #FF9B00;
    --primary-yellow: #B8860B;
    --secondary-yellow: #DAA520;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --light-gray: #404040;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-light-gray: #999999;
    --bg: #0b0b0c;
    --card: #141418;
    --muted: #a6a6b0;
    --text: #f5f7ff;
    --accent: #FF9B00;
    --violet: #B8860B;
    --plum: #DAA520;
    --ring: 0 0 0 2px rgba(255,155,0,.35);
    --radius: 18px;
}

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(1200px 800px at 10% 100%, rgba(184,134,11,.10), transparent 40%),
                radial-gradient(1200px 800px at 90% 0%, rgba(255,155,0,.08), transparent 40%),
                var(--bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    height: 100%;
    padding-top: 0;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(140%) blur(8px);
    background: linear-gradient(180deg, rgba(11,11,12,.9), rgba(11,11,12,.6));
    border-bottom: 1px solid rgba(255,255,255,.06);
    margin: 0;
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .6px;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.brand-link:hover {
    opacity: 0.8;
}

.logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: conic-gradient(from 220deg at 50% 50%, var(--violet), var(--plum), var(--accent));
    box-shadow: 0 0 0 2px rgba(255,255,255,.04), 0 10px 30px rgba(184,134,11,.25);
}

.brand span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tab {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    color: #d7d9e1;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    opacity: .9;
    transition: all 0.3s ease;
}

.tab[aria-selected="true"] {
    background: linear-gradient(90deg, rgba(184,134,11,.25), rgba(255,155,0,.25));
    border-color: rgba(255,255,255,.18);
    color: #fff;
}

.tab:hover {
    box-shadow: var(--ring);
}

.menu-btn {
    display: none;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: transparent;
    color: var(--text-white);
    cursor: pointer;
    font: inherit;
}

.mobile-tabs {
    display: none;
    position: absolute;
    right: 20px;
    top: 56px;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.45);
}

.mobile-tabs .tab {
    display: block;
    width: 100%;
}

/* Main Content */
.main-content {
    margin-top: 0;
    padding-top: 0;
    position: relative;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: calc(100vh - 70px); /* Account for navbar height */
    flex-direction: column;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
    min-height: calc(100vh - 70px); /* Account for navbar height */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Tab Styles */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-header {
    text-align: left;
    margin-bottom: 2rem;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.1;
    text-align: center;
}

.main-content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.main-text-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    order: 2;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.intro-text strong {
    color: var(--text-white);
    font-weight: 600;
}

.skills-section h2,
.languages-section h2 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 600;
}

.languages-section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--text-gray);
}

.skills-certifications-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.skills-content {
    flex: 1;
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-category h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-category p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.languages-grid {
    display: grid;
    gap: 0.8rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 2px solid var(--text-gray);
}

.language-name {
    font-weight: 500;
    color: var(--text-white);
    font-size: 0.95rem;
}

.language-level {
    color: var(--text-light-gray);
    font-size: 0.85rem;
}

/* Mini Certifications */
.certifications-mini {
    min-width: 260px;
    margin-top: -2.5rem;
}

.certifications-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    align-items: start;
}

.certification-badge-mini {
    transition: transform 0.3s ease;
}

.certification-badge-mini:hover {
    transform: translateY(-3px);
}

.certification-image-mini {
    width: 120px;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.certification-badge-mini:hover .certification-image-mini {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Profile Image */
.main-visual-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    order: 1;
}

.profile-image-container {
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: transparent;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: transparent;
}

.profile-image:hover {
    transform: scale(1.02);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--medium-gray);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light-gray);
}

.profile-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-gray);
}



/* Projects Tab */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.project-card {
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease, transform 0.1s ease-out;
    border: 2px solid transparent;
    position: relative;
    min-height: 320px;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    align-items: stretch;
}

.project-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(255, 155, 0, 0.2);
}

.card-left {
    flex: 0 0 45%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 280px;
}

.card-title {
    font-size: 1.755rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card-description {
    color: var(--muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1.053rem;
}

.card-links {
    display: flex;
    gap: 1rem;
}

.card-link {
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--accent), var(--primary-yellow));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.053rem;
    transition: all 0.3s ease;
}

.card-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 155, 0, 0.4);
}

/* Card Images and Media */
.card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-image-link:hover {
    transform: scale(1.05);
}

/* Hover effects for all card images (except YouTube) */
.project-card:not(.youtube-card):hover .card-image {
    filter: grayscale(20%) brightness(1.1) saturate(1.2) hue-rotate(10deg);
    transform: scale(1.02);
}

.project-card:not(.youtube-card):hover .card-image-transparent {
    filter: brightness(1.2) saturate(1.3) contrast(1.1);
    transform: scale(1.02);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
    filter: grayscale(0%) brightness(1) saturate(1);
}



.card-image-transparent {
    object-fit: contain;
    background: transparent;
}



.card-video {
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card-video:hover,
.project-card:hover .card-video {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.card-placeholder {
    width: 100%;
    max-width: 350px;
    height: 200px;
    background: var(--medium-gray);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    border: 2px dashed var(--text-light-gray);
    transition: all 0.3s ease;
}

.card-placeholder:hover,
.project-card:hover .card-placeholder {
    background: var(--card);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.02);
}

.card-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light-gray);
    transition: color 0.3s ease;
}

.card-placeholder:hover i,
.project-card:hover .card-placeholder i {
    color: var(--accent);
}

.card-placeholder p {
    font-size: 1.053rem;
    margin: 0;
}

/* YouTube Embed Card */
.youtube-embed-card {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.youtube-embed-card:hover {
    transform: scale(1.05);
}

.youtube-overlay {
    width: 100%;
    height: 100%;
    background: var(--card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.youtube-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff0000;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.youtube-embed-card:hover .youtube-play-button {
    background: #e60000;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
}

.youtube-play-button i {
    font-size: 2.5rem;
    color: white;
    margin-left: 4px; /* Slight offset for play button visual balance */
}

.youtube-channel-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--text-light-gray);
}

.channel-name {
    color: white;
    font-weight: 600;
    font-size: 1.287rem;
    margin-bottom: 0.2rem;
}

.channel-label {
    color: #aaa;
    font-size: 0.999rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}





/* Contact Tab */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-content {
    background: var(--medium-gray);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid var(--light-gray);
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-orange);
    color: var(--black);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: var(--primary-yellow);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    border-top: 1px solid var(--light-gray);
    padding: 2rem 0;
    margin-top: 3rem;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--medium-gray);
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: var(--primary-orange);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-text {
    color: var(--text-light-gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }
    
    .profile-image-container {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .tabs {
        display: none;
    }
    
    .menu-btn {
        display: inline-flex;
    }
    
    .mobile-tabs.active {
        display: block;
    }

    .main-container {
        padding: 1.5rem;
    }

    .main-header {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-text-content {
        order: 2;
    }

    .main-visual-content {
        order: 1;
        justify-content: center;
    }

    .profile-image-container {
        position: relative;
        top: auto;
        max-width: 280px;
        width: 100%;
        margin: 0 auto;
    }

    .skills-certifications-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certifications-mini {
        min-width: auto;
        margin-top: 1rem;
        order: 2;
    }

    .skills-content {
        order: 1;
        margin-bottom: 1rem;
    }

    .certifications-mini-grid {
        grid-template-columns: repeat(5, 1fr);
        justify-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-left {
        flex: none;
        padding: 1.5rem;
        text-align: center;
    }

    .card-right {
        flex: none;
        padding: 1rem 1.5rem;
    }

    .card-title {
        text-align: center;
    }

    .card-links {
        justify-content: center;
    }

    .card-image-link,
    .card-video,
    .card-placeholder {
        max-width: 100%;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-container,
    .projects-container,
    .contact-container {
        padding: 1rem;
    }

    .main-content-wrapper {
        gap: 1.5rem;
    }

    .profile-image-container {
        max-width: 240px;
    }

    .intro-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .skills-grid,
    .languages-grid {
        gap: 1rem;
    }

    .skill-category h3 {
        font-size: 1rem;
    }

    .skill-category p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
