body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden; 
}

#desktop-nav {
    transition: none; 
}


#desktop-nav {
    transition: transform 0.3s ease-in-out; 
}

.nav-hidden {
    transform: translateY(-150%); 
}


.link {
    position: relative;
    display: inline-block;
}

.underline-on-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.underline-on-hover:hover::after {
    width: 100%;
}

.active-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: white;
}

.name-underline::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: white;
    margin-top: 4px;
}

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

.hamburger-icon.open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-icon.open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 40;
    width: 75%;
    height: 100vh;
    background-color: #000000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-menu.open {
    transform: translateX(0);
}

.glowing-shadow {
    box-shadow: 
        0 0 15px rgba(0, 191, 255, 0.7),
        0 0 30px rgba(0, 191, 255, 0.5),
        0 0 60px rgba(0, 191, 255, 0.3);
    border: 2px solid rgba(0, 191, 255, 0.6);
}

.social-icon {
    color: #ccc; 
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icon:hover {
    transform: translateY(-2px) scale(1.1);
}

.fa-facebook-f:hover { color: #3b5998; }
.fa-instagram:hover { color: #E1306C; }
.fa-envelope:hover { color: #DB4437; } 
.fa-telegram-plane:hover { color: #0088cc; }
.fa-github:hover { color: #6e5494; } 

/* ---------------------------------------------------- */
/* --- MAIN CONTENT & PADDING FIX                     --- */
/* ---------------------------------------------------- */

main {
    overflow-y: auto;
    max-height: 100vh;
}

/* Apply 6rem (pt-24) padding to the top of ALL non-home sections to clear the fixed nav */
main:not(#home-section) { 
        padding-top: 6rem;
}

/* Home page doesn't need top padding as its content is centered */
#home-section {
    padding-top: 0;
}

.project-section-box {
    /* Background and border to match the About section's boxes */
    background-color: #0f172a; /* Slate 900 */
    border: 1px solid #3b82f6; /* Blue 500 */
    border-radius: 0.5rem; /* Rounded-lg */
    padding: 2rem;
    margin-bottom: 2rem; /* Spacing between the three main project sections */
}

/* --- NEW STYLES FOR VIDEO CAROUSEL --- */
.video-scroll-container {
    /* Enable horizontal scrolling and hide the default scrollbar */
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
    scroll-snap-type: x mandatory; /* Snap to elements for smooth switching */
}

.video-scroll-container::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

/* Style for each video card within the scroll container */
.video-card {
    flex-shrink: 0; /* Important: Prevents cards from shrinking */
    scroll-snap-align: center; /* Snap each card to the center/start */
}

/* Make the iframe responsive (16:9 aspect ratio) - applies to video card content */
.video-container {
    position: relative;
    width: 100%;
    /* 16:9 Aspect Ratio (9 / 16 * 100 = 56.25%) */
    padding-bottom: 56.25%; 
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.25rem; /* rounded-md */
}

/* --- NEW STYLES FOR SKILL BADGES --- */
.skill-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem; /* text-xs */
    font-weight: 500; /* font-medium */
    color: white;
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.skill-badge:hover {
    transform: scale(1.05);
}

/* ---------------------------------------------------- */
/* --- CONTACT FORM STYLES ---------------------------- */
/* ---------------------------------------------------- */
.contact-input, .contact-textarea {
    background-color: #1f2937; /* Gray 800 */
    color: #f3f4f6; /* Gray 100 */
    border: 1px solid #374151; /* Gray 700 */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-input:focus, .contact-textarea:focus {
    border-color: #3b82f6; /* Blue 500 */
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* Blue 500 ring */
}

.contact-form button {
    transition: background-color 0.3s, transform 0.2s;
}
