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

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: white;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Allow scrolling underneath */
    opacity: 1;
    visibility: visible;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(81, 146, 230, 0.15);
    border-top: 3px solid #5192e6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Prevent accidental horizontal scrolling on small devices caused by large fixed widths/paddings */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navbar */
nav {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(81, 146, 230, 0.2);
    /* use relative spacing so it adapts on narrow viewports */
    padding: 15px 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 700;
}

/* make the main title responsive so it doesn't wrap awkwardly on small screens */
.navbar h1 {
    font-size: clamp(18px, 4vw, 24px);
}

.navbar-links ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.navbar-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5192e6, #7dd3fc);
    transition: width 0.3s ease;
}

.navbar-links a:hover {
    color: #7dd3fc;
}

.navbar-links a:hover::after {
    width: 100%;
}

.active-page {
    color: #5192e6;
}

.active-page::after {
    width: 100% !important;
}

/* Container for introduction*/
.container {
    /* reduce horizontal padding so content doesn't force horizontal scroll on phones */
    padding: 50px 20px;
    max-width: 1200px;
    margin: auto;

    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Separator line between horizontal cards*/
hr {
    border: none;
    height: 1px;
    background-color: #1a1a1a;
    margin: 50px 0;
}

/* Intro */
#greeting-h1 {
    font-size: 32px;
    border-bottom: 2px solid #5192e6;
    display: inline-block;
    padding-bottom: 10px;
    color: #5192e6;
    margin-bottom: 20px;
}

.greeting-h1 {
    font-size: 36px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #5192e6, #7dd3fc, #a78bfa) 1;
    display: inline-block;
    padding-bottom: 10px;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;

    /* animation defaults */
    opacity: 0;
    transform: translate3d(0, -20px, 0);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.greeting-h1.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.intro {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.intro-text {
    flex: 1 1 400px;
}

.intro-text p {
    font-size: 18px;
    line-height: 1.8;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.intro-image {
    flex: 1 1 300px;
    text-align: center;
}

.intro-image img {
    max-width: 65%;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.profile-image {
    /* make image responsive - don't force a fixed width that breaks small screens */
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    border: 4px solid transparent;
    background: linear-gradient(#1a1a2e, #1a1a2e) padding-box,
                linear-gradient(135deg, #5192e6, #7dd3fc, #a78bfa) border-box;
    box-shadow: 0 10px 40px rgba(81, 146, 230, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image {
    cursor: pointer;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(81, 146, 230, 0.5);
}

.intro-image a {
    display: inline-block;
    text-decoration: none;
}

/* Make the profile image a bit smaller on narrow phones */
@media (max-width: 600px) {
    .profile-image {
        max-width: 200px;
    }
}

/* Buttons */
.buttons /* This is for div where buttons should be placed */ {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-github {
    background: linear-gradient(135deg, #5192e6 0%, #4169e1 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(81, 146, 230, 0.4);
}

.btn-github:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 146, 230, 0.6);
}

.btn-cv {
    background-color: transparent;
    color: #5192e6;
    border: 2px solid #5192e6;
    box-shadow: 0 4px 15px rgba(81, 146, 230, 0.2);
}

.btn-cv:hover {
    background: linear-gradient(135deg, #5192e6 0%, #4169e1 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(81, 146, 230, 0.6);
}

.btn-info {
    background-color: transparent;
    color: #7dd3fc;
    border: 2px solid #7dd3fc;
    box-shadow: 0 4px 15px rgba(125, 211, 252, 0.2);
}

.btn-info:hover {
    background: linear-gradient(135deg, #7dd3fc 0%, #5192e6 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 211, 252, 0.6);
}

/* Section Styling for horizontal cards*/
.section {
    margin: 30px auto;
    max-width: 1000px;
    width: 90%;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 15px;
    border: 1px solid rgba(81, 146, 230, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.section:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 12px 40px rgba(81, 146, 230, 0.3);
    border-color: rgba(81, 146, 230, 0.4);
}

.section h2 {
    font-size: 28px;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #5192e6, #7dd3fc) 1;
    display: inline-block;
    padding-bottom: 5px;
}

.section p {
    margin-bottom: 30px;
}

.section ul {
    list-style: none;
    padding-left: 0;
}

.section ul li {
    margin-bottom: 15px;
    font-size: 18px;
}

.section ul li span {
    font-weight: 600;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section .btn {
    margin-top: 20px;
}

/* Scroll reveal animation */
.section {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Make sure container for contact isn't hidden */
.contact-form {
    opacity: 1 !important;
}

/* Responsive */
@media (max-width: 900px) {
    .intro {
        flex-direction: column;
        text-align: center;
    }

    .intro-image {
        order: -1;
        margin-bottom: 30px;
    }

    .buttons {
        justify-content: center;
    }

    /* Reduce backdrop blur on mobile for better performance */
    .section,
    .project-card,
    nav {
        backdrop-filter: blur(5px);
    }

    /* Disable hover effects on mobile */
    .section:hover,
    .project-card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .project-card:hover video,
    .project-card:hover img {
        transform: none;
    }

    /* Reduce animations on mobile */
    .project-card::before {
        display: none;
    }

    /* Simplify project cards on mobile */
    .project-card {
        transition: none;
    }

    /* Make filters more mobile-friendly */
    .filter-container {
        gap: 10px;
        margin: 30px auto 15px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    /* Adjust code preview for mobile */
    .code-preview {
        padding: 10px;
    }

    .code-preview pre {
        font-size: 11px;
    }

    /* Stack buttons on very small screens */
    @media (max-width: 400px) {
        .project-buttons {
            grid-template-columns: 1fr;
        }

        .project-buttons .btn {
            font-size: 14px;
            padding: 12px 20px;
        }
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

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

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

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .navbar-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(5px);
        border-left: 1px solid rgba(81, 146, 230, 0.3);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .navbar-links.active {
        right: 0;
    }

    .navbar-links ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .navbar-links ul li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(81, 146, 230, 0.1);
    }

    .navbar-links a {
        display: block;
        padding: 20px 30px;
        font-size: 18px;
    }

    .navbar-links a::after {
        display: none;
    }

    .navbar-links a:hover,
    .active-page {
        background: rgba(81, 146, 230, 0.1);
    }

    /* prevent the nav from pushing off-screen by reducing horizontal padding */
    nav {
        padding-left: 1rem;
        padding-right: 1rem;
        backdrop-filter: blur(5px);
    }

    /* Reduce text shadows on mobile */
    h1, h2, h3 {
        text-shadow: none;
    }
}

/*Contact form styles*/
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 2px solid rgba(81, 146, 230, 0.3);
    background: rgba(26, 26, 26, 0.8);
    color: white;
    font-size: 16px;
    resize: vertical;
    transition: all 0.3s ease;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5192e6;
    box-shadow: 0 0 20px rgba(81, 146, 230, 0.3);
    background: rgba(26, 26, 26, 0.95);
}

/*Projects*/

/* Filter buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.filter-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    background: rgba(26, 26, 26, 0.6);
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(81, 146, 230, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(81, 146, 230, 0.1);
    color: #7dd3fc;
    border-color: rgba(81, 146, 230, 0.6);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #5192e6 0%, #4169e1 100%);
    color: white;
    border-color: #5192e6;
    box-shadow: 0 4px 15px rgba(81, 146, 230, 0.4);
}

/* Project tags */
.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0;
    justify-content: center;
}

.tag {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(81, 146, 230, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(81, 146, 230, 0.3);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Code preview for console apps */
.project-card-code {
    background: rgba(20, 20, 20, 0.8);
}

.code-preview {
    width: 100%;
    background: #0a0a0a;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid rgba(81, 146, 230, 0.2);
    overflow-x: auto;
}

.code-preview pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-preview code {
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(125, 211, 252, 0.3);
}

/* Hide filtered projects */
.project-card.hidden {
    display: none;
}

/* Slightly smaller subheading */
.subheading {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 60px 0px 30px 0px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subheading:first-of-type {
    margin-top: 40px;
}

/* Container for projects */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 1100px;
}

/* Individual project cards */
.project-card {
    background: rgba(34, 34, 34, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    flex: 1 1 280px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(81, 146, 230, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Project content wrapper - grows to push buttons to bottom */
.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Project buttons container - stays at bottom */
.project-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.project-buttons .btn {
    margin: 0;
    width: 100%;
    padding: 10px 15px;
    font-size: 13px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(81, 146, 230, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translate3d(0, -10px, 0);
    box-shadow: 0 15px 50px rgba(81, 146, 230, 0.4);
    border-color: rgba(81, 146, 230, 0.5);
}

/*Project card animation*/
.project-card {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.project-card video,
.project-card img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Optimize video rendering */
    transform: translate3d(0, 0, 0);
    /* Add loading background */
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    min-height: 200px;
}

.project-card video[data-loaded="true"] {
    background: transparent;
}

.project-card:hover video,
.project-card:hover img {
    transform: translate3d(0, 0, 0) scale(1.05);
}

/* Mobile video optimizations */
@media (max-width: 768px) {
    .project-card video {
        /* Reduce quality on mobile for better performance */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
        min-height: 150px;
    }
}

.project-card h3 {
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
/* 
Additional Visual Enhancements */

/* Smooth scrolling - disabled for better performance with animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: auto;
    }
}

/* Selection styling */
::selection {
    background: rgba(81, 146, 230, 0.3);
    color: white;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4169e1 0%, #5192e6 100%);
}

/* Add subtle glow to headings */
h1, h2, h3 {
    text-shadow: 0 0 20px rgba(81, 146, 230, 0.3);
}

/* Improve list item styling */
.section ul li {
    padding-left: 20px;
    position: relative;
}

.section ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #5192e6;
    font-size: 20px;
}

/* Add animation to buttons */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(81, 146, 230, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(81, 146, 230, 0.6);
    }
}

.btn-github {
    animation: pulse 2s ease-in-out infinite;
}

.btn-github:hover {
    animation: none;
}

/* Disable expensive animations on mobile */
@media (max-width: 768px) {
    .btn-github {
        animation: none;
    }
}

/* Improve project card text */
.project-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Add loading animation for videos */
.project-card video {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(81, 146, 230, 0.3);
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(81, 146, 230, 0.3);
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(81, 146, 230, 0.3);
    border-color: #5192e6;
    transform: rotate(90deg);
}

.modal-body h2 {
    font-size: 32px;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.modal-body h3 {
    font-size: 22px;
    color: #7dd3fc;
    margin-top: 25px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(81, 146, 230, 0.3);
    padding-bottom: 8px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.modal-body ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.modal-body ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #5192e6;
    font-size: 20px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    border-radius: 10px;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        padding: 25px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-body h2 {
        font-size: 24px;
    }

    .modal-body h3 {
        font-size: 18px;
    }

    .modal-body p,
    .modal-body ul li {
        font-size: 14px;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}


/* ===================================
   SINGLE-PAGE PORTFOLIO - NEW STYLES
   =================================== */

/* Section Container */
.section-container {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #5192e6, #7dd3fc);
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    font-style: italic;
}

/* ===================================
   HERO / LANDING SECTION
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-image {
    margin-bottom: 30px;
}

.hero-image .profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid transparent;
    background: linear-gradient(#1a1a2e, #1a1a2e) padding-box,
                linear-gradient(135deg, #5192e6, #7dd3fc, #a78bfa) border-box;
    box-shadow: 0 10px 40px rgba(81, 146, 230, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 28px;
    color: #7dd3fc;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(81, 146, 230, 0.1);
    border: 2px solid rgba(81, 146, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(81, 146, 230, 0.4);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* ===================================
   SKILLS SECTION
   =================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(81, 146, 230, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.skill-category:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(81, 146, 230, 0.5);
    box-shadow: 0 10px 30px rgba(81, 146, 230, 0.3);
}

.skill-category h3 {
    font-size: 20px;
    color: #7dd3fc;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    font-size: 24px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(81, 146, 230, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(81, 146, 230, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(81, 146, 230, 0.3);
    transform: scale(1.05);
}

/* ===================================
   CERTIFICATES SECTION
   =================================== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(81, 146, 230, 0.2);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-card.show {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.certificate-card:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(81, 146, 230, 0.5);
    box-shadow: 0 10px 30px rgba(81, 146, 230, 0.3);
}

.certificate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.certificate-card h3 {
    font-size: 20px;
    color: #7dd3fc;
    margin-bottom: 10px;
}

.cert-issuer {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.cert-year {
    font-size: 14px;
    color: #5192e6;
    font-weight: 600;
    margin-bottom: 10px;
}

.cert-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ===================================
   RESUME SECTION
   =================================== */
.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.resume-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(81, 146, 230, 0.2);
}

.resume-section h3 {
    font-size: 24px;
    color: #7dd3fc;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(81, 146, 230, 0.3);
    padding-bottom: 10px;
}

.resume-item {
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid rgba(81, 146, 230, 0.3);
}

.resume-item h4 {
    font-size: 18px;
    color: #7dd3fc;
    margin-bottom: 5px;
}

.resume-period {
    font-size: 14px;
    color: #5192e6;
    font-weight: 600;
    margin-bottom: 8px;
}

.resume-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    font-size: 28px;
    color: #7dd3fc;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-method i {
    font-size: 24px;
    color: #5192e6;
    width: 30px;
}

.contact-method a {
    color: #7dd3fc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #5192e6;
}

.contact-form-container {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(81, 146, 230, 0.2);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(81, 146, 230, 0.2);
    padding: 30px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(81, 146, 230, 0.1);
    border: 2px solid rgba(81, 146, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    color: white;
    transform: translateY(-3px);
}

/* ===================================
   RESPONSIVE - SINGLE PAGE
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-container {
        padding: 60px 15px;
    }

    .skills-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .resume-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-image .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: 28px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}


/* ===================================
   SKILL MODAL & PROGRESS BARS
   =================================== */

/* Make skill tags clickable */
.skill-tag {
    cursor: pointer;
    position: relative;
}

.skill-tag::after {
    content: '👁';
    position: absolute;
    right: -20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 12px;
}

.skill-tag:hover::after {
    opacity: 0.7;
}

/* Skill Modal Specific Styles */
.skill-modal-content {
    max-width: 500px;
}

.skill-modal-body {
    text-align: center;
}

.skill-modal-body h2 {
    font-size: 32px;
    background: linear-gradient(135deg, #5192e6 0%, #7dd3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.skill-level-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
}

/* Progress Bar Container */
.progress-bar-container {
    width: 100%;
    height: 40px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    overflow: hidden;
    margin: 30px 0;
    border: 2px solid rgba(81, 146, 230, 0.3);
    position: relative;
}

.progress-bar {
    height: 100%;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Color Coding Based on Level */
.progress-bar.level-advanced {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.skill-level-label.level-advanced {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 2px solid #10b981;
}

.progress-bar.level-intermediate {
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.skill-level-label.level-intermediate {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 2px solid #f59e0b;
}

.progress-bar.level-developing {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.skill-level-label.level-developing {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 2px solid #3b82f6;
}

.progress-bar.level-beginner {
    background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.skill-level-label.level-beginner {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
    border: 2px solid #f97316;
}

.skill-modal-body p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .skill-modal-content {
        width: 95%;
    }

    .progress-bar-container {
        height: 35px;
    }

    .progress-percentage {
        font-size: 14px;
    }

    .skill-modal-body h2 {
        font-size: 24px;
    }
}
