/* --- NETFLIX-INSPIRED DARK THEME --- */

:root {
    --netflix-red: #E50914;
    --dark-red: #B20710;
    --bg-black: #141414;
    --bg-dark-gray: #181818;
    --bg-light-gray: #2f2f2f;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, .logo {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* --- NAVIGATION & MENU --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    background-color: var(--bg-black);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    color: var(--netflix-red);
    font-size: 2rem;
    cursor: pointer;
    text-decoration: none;
}

/* Menu Button */
.menu-btn {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2000;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-items {
    text-align: center;
}

.menu-items a {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: var(--text-gray);
    text-decoration: none;
    margin: 20px 0;
    transition: color 0.3s, transform 0.3s;
}

.menu-items a:hover {
    color: var(--netflix-red);
    transform: scale(1.1);
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 0 4%;
    position: relative;
    background: linear-gradient(to top, var(--bg-black) 10%, transparent 50%);
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    z-index: 1;
}

.profile-frame {
    width: 250px;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    border: 3px solid rgba(255,255,255,0.1);
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.profile-frame:hover {
    transform: rotate(0deg) scale(1.02);
    border-color: var(--netflix-red);
}

.hero-text {
    flex: 1;
}

.main-title {
    font-size: 5rem;
    line-height: 0.9;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.sub-title {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
}

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

.btn-dark {
    background-color: rgba(109, 109, 110, 0.7);
    color: white;
}

/* --- SECTIONS GENERAL --- */
main {
    padding: 20px 4%;
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.category-title {
    color: var(--text-white);
    font-size: 1.8rem;
    margin-bottom: 25px;
    margin-top: 50px;
    border-left: 4px solid var(--netflix-red);
    padding-left: 10px;
}

/* --- ABOUT ME SECTION --- */
.about-card {
    background-color: var(--bg-dark-gray);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #333;
}

.about-list {
    list-style: none;
}

.about-list li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-gray);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.icon-red {
    color: var(--netflix-red);
    font-size: 1.2rem;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

/* --- SKILLS SECTION (NEW GRID) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skill-card {
    background-color: var(--bg-dark-gray); /* Dark theme adjustment */
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #333;
}

.skill-card h3 {
    font-family: 'Montserrat', sans-serif; /* Using Montserrat to match UI pic */
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #ccc;
    font-weight: 500;
}

.skill-list-simple p {
    margin-bottom: 12px;
    color: #ccc;
}

.badge {
    background-color: #333;
    color: #aaa;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
}

.badge.gold {
    background-color: #CBA16F;
    color: white;
}

.badge.dark {
    background-color: #000;
    color: white;
}

/* --- ACADEMIC COURSES (YEAR/SEM INTERACTION) --- */
.view-container {
    transition: opacity 0.3s ease;
    width: 100%;
}

.view-container.hidden {
    display: none;
    opacity: 0;
}

.view-subtitle {
    color: var(--text-gray);
    margin-bottom: 20px;
    text-align: center;
}

/* Updated to make Year Selection Wider */
.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 columns for year view */
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.year-card {
    background-color: var(--bg-light-gray);
    height: 180px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    border: 1px solid transparent;
}

.year-card.active {
    background-color: white;
    color: black;
}

.year-card.active:hover {
    transform: scale(1.05);
}

.year-card.locked {
    background-color: var(--bg-dark-gray);
    color: #555;
    cursor: not-allowed;
}

.year-number {
    font-size: 3rem;
    font-weight: bold;
    background-color: #4A90E2; /* Blue square from image */
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 15px;
}

.year-label {
    font-weight: bold;
    font-size: 1.1rem;
}

.locked i {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Navigation Header for Sub-views */
.nav-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--netflix-red);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.back-btn:hover {
    text-decoration: underline;
}

/* --- COURSEWORK SCROLLER (REUSED FOR SEMESTER VIEW) --- */
.card-scroller {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin; 
    scrollbar-color: var(--netflix-red) var(--bg-black);
    width: 100%; /* Ensure full width */
}

.card-scroller::-webkit-scrollbar {
    height: 8px;
}

.card-scroller::-webkit-scrollbar-thumb {
    background-color: var(--dark-red);
    border-radius: 4px;
}

.card {
    min-width: 250px; /* Slightly wider cards */
    background-color: var(--bg-dark-gray);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid #333;
    flex-shrink: 0;
}

.card:hover {
    transform: scale(1.1); 
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0,0,0,0.8);
    border: 1px solid var(--text-gray);
}

.card-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    background: linear-gradient(135deg, #222, #000);
}

.card-image i {
    font-size: 3.5rem; 
    drop-shadow: 0 5px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}

.card:hover .card-image i {
    transform: scale(1.1);
    color: #fff;
}

.logic-bg { background: linear-gradient(45deg, #5e1b1b, #000); }
.cpp-bg { background: linear-gradient(45deg, #1b265e, #000); }
.tis-bg { background: linear-gradient(45deg, #1b5e2a, #000); }
.math-bg { background: linear-gradient(45deg, #5e4d1b, #000); }
.ethics-bg { background: linear-gradient(45deg, #381b5e, #000); }

.card-info {
    padding: 10px;
}

.card-info h3 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 4px;
}

.card-info p {
    color: #46d369; 
    font-size: 0.8rem;
    font-weight: bold;
}

/* --- LIST LAYOUT (EDUCATION) --- */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

a.list-item {
    text-decoration: none;
    display: flex;
    background-color: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 4px;
    align-items: center;
    transition: background 0.3s, transform 0.2s;
    color: white;
}

a.list-item:hover {
    background-color: rgba(255,255,255,0.15);
    transform: translateX(10px);
    border-left: 4px solid var(--netflix-red);
}

.list-item .year {
    font-weight: bold;
    color: var(--netflix-red);
    min-width: 120px;
    font-size: 1.1rem;
}

.list-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
}

.list-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.social-icons a {
    color: var(--text-gray);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.social-icons a:hover {
    color: var(--netflix-red);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .main-title {
        font-size: 3rem;
    }
    
    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar {
        padding: 15px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Adjust Year Grid for Mobile */
    .year-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid for mobile */
    }
}

/* --- SCROLL ANIMATION --- */
.hidden-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.show-section {
    opacity: 1;
    transform: translateY(0);
}
/* --- MOBILE RESPONSIVENESS FOR BUTTONS --- */
@media screen and (max-width: 768px) {
    /* Target the container holding the buttons */
    .hero-buttons {
        display: flex;
        flex-direction: column; /* This forces them to stack vertically */
        gap: 15px; /* Adds space between the buttons */
        align-items: center; /* Centers the buttons */
        width: 100%;
        padding: 0 20px; /* Adds a little breathing room on the sides */
    }

    /* Target the specific buttons to make them look good on touch screens */
    .hero-buttons .btn {
        width: 100%; /* Makes buttons full width on phone */
        max-width: 300px; /* Prevents them from getting too wide */
        text-align: center;
        display: block;
    }
}
