/* Reset default browser styles and set base styles */
* {
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    box-sizing: border-box; /* Include padding and border in element width */
}

/* Set base styles for entire page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern font stack */
    background-color: #030637; /* Dark blue background */
    color: #ffffff; /* White text */
    line-height: 1.6; /* Comfortable line spacing */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Container for centering content with max width */
.container {
    max-width: 1200px; /* Maximum width */
    margin: 0 auto; /* Center horizontally */
    padding: 0 20px; /* Side padding */
}

/* ===== NAVIGATION BAR STYLES ===== */
#navbar {
    position: fixed; /* Stay at top when scrolling */
    top: 0;
    width: 100%; /* Full width */
    background-color: rgba(3, 6, 55, 0.95); /* Semi-transparent dark blue */
    padding: 0.8rem 0; /* Vertical padding */
    z-index: 1000; /* Stay above other elements */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
}

/* Add shadow to navbar when scrolled */
#navbar.scrolled {
    background-color: rgba(3, 6, 55, 1); /* Fully opaque */
    box-shadow: 0 2px 10px rgba(145, 10, 103, 0.3); /* Pink glow shadow */
}

/* Container for navbar content */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex; /* Flexbox layout */
    justify-content: space-between; /* Space between logo and menu */
    align-items: center; /* Vertical center */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Logo/brand styling */
.nav-logo {
    font-size: 1.5rem; /* Larger text */
    font-weight: bold;
    color: #910A67; /* Pink color */
    white-space: nowrap; /* Prevent wrapping */
}

/* Navigation menu list */
.nav-menu {
    display: flex; /* Horizontal layout */
    list-style: none; /* Remove bullet points */
    gap: 2rem; /* Space between items */
    flex-wrap: wrap; /* Allow wrapping */
}

/* Navigation links */
.nav-link {
    color: #ffffff; /* White text */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease; /* Smooth color change */
    white-space: nowrap; /* Prevent wrapping */
}

/* Navigation link hover effect */
.nav-link:hover {
    color: #910A67; /* Change to pink on hover */
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    min-height: 100vh; /* Full viewport height */
    display: flex; /* Flexbox for centering */
    align-items: center; /* Vertical center */
    justify-content: center; /* Horizontal center */
    text-align: center; /* Center text */
    padding: 2rem; /* Padding around content */
    background: linear-gradient(135deg, #030637 0%, #3C0753 100%); /* Gradient background */
}

/* Hero content container */
.hero-content {
    animation: fadeInUp 1s ease; /* Fade in animation */
}

/* Main hero title */
.hero-title {
    font-size: 4rem; /* Large text */
    margin-bottom: 1rem; /* Space below */
    background: linear-gradient(45deg, #910A67, #720455); /* Gradient text */
    -webkit-background-clip: text; /* Clip background to text */
    -webkit-text-fill-color: transparent; /* Make text transparent to show gradient */
    background-clip: text;
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 1.5rem;
    color: #910A67; /* Pink color */
    margin-bottom: 1rem;
}

/* Hero description text */
.hero-description {
    font-size: 1.1rem;
    max-width: 600px; /* Limit width for readability */
    margin: 0 auto 2rem; /* Center and add bottom margin */
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent white */
}

/* Hero call-to-action button */
.hero-btn {
    padding: 1rem 2rem; /* Button padding */
    font-size: 1.1rem;
    background: linear-gradient(45deg, #720455, #910A67); /* Gradient background */
    color: white;
    border: none; /* Remove default border */
    border-radius: 50px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    box-shadow: 0 4px 15px rgba(145, 10, 103, 0.4); /* Pink glow */
}

/* Button hover effect */
.hero-btn:hover {
    transform: translateY(-3px); /* Lift up slightly */
    box-shadow: 0 6px 20px rgba(145, 10, 103, 0.6); /* Stronger glow */
}

/* ===== SECTION STYLES ===== */
.projects-section,
.about-section,
.contact-section {
    padding: 5rem 0; /* Vertical padding */
    min-height: 100vh; /* Minimum full viewport height */
}

/* Alternating section backgrounds */
.about-section {
    background-color: #3C0753; /* Purple background */
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    text-align: center; /* Center text */
    margin-bottom: 3rem; /* Space below */
    color: #910A67; /* Pink color */
}

/* ===== PROJECTS GRID STYLES ===== */
.projects-grid {
    display: grid; /* CSS Grid layout */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Smaller squares */
    gap: 1.5rem; /* Space between cards */
    margin-top: 2rem;
}

/* Individual project card */
.project-card {
    background: linear-gradient(135deg, #3C0753, #720455); /* Gradient background */
    border-radius: 15px; /* Rounded corners */
    overflow: hidden; /* Hide overflow */
    cursor: pointer; /* Pointer cursor */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    animation: fadeIn 0.6s ease; /* Fade in animation */
    aspect-ratio: 1 / 1; /* Make it square */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Stack vertically */
}

/* Project card hover effect */
.project-card:hover {
    transform: translateY(-10px) scale(1.05); /* Lift up and slightly enlarge */
    box-shadow: 0 10px 30px rgba(145, 10, 103, 0.5); /* Pink glow */
}

/* Project card image */
.project-image {
    width: 100%; /* Full width */
    height: 70%; /* 70% of card height */
    object-fit: cover; /* Cover area without distortion */
    display: block; /* Remove inline spacing */
}

/* Project card content area */
.project-content {
    padding: 0.8rem; /* Padding inside card */
    height: 30%; /* Fixed height for content area */
    display: flex; /* Flexbox layout */
    flex-direction: column; /* Stack vertically */
    justify-content: flex-start; /* Align to top */
    gap: 0.3rem; /* Small gap between elements */
    position: relative; /* For absolute positioning of button */
}

/* Project title */
.project-title {
    font-size: 0.95rem;
    margin: 0;
    color: #ffffff;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ... for long text */
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limit to 1 line */
    -webkit-box-orient: vertical;
    font-weight: bold;
    line-height: 1.2;
}

/* Project description */
.project-description {
    color: rgba(255, 255, 255, 0.8); /* Slightly transparent */
    line-height: 1.3;
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ... for long text */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    font-size: 0.75rem;
    margin: 0;
    flex: 1; /* Take available space */
}

/* Buy button on project cards */
.buy-button {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(45deg, #910A67, #720455);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start; /* Align to left */
    white-space: nowrap; /* Prevent text wrapping */
    margin-top: 0.3rem;
}

/* Buy button hover effect */
.buy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(145, 10, 103, 0.6);
}

/* ===== ABOUT SECTION STYLES ===== */
.about-content {
    max-width: 800px; /* Limit width */
    margin: 0 auto; /* Center */
    text-align: center; /* Center text */
}

/* About text paragraph */
.about-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Skills container */
.skills-container {
    margin-top: 2rem;
}

/* Skills section title */
.skills-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #910A67; /* Pink color */
}

/* Skills list */
.skills-list {
    list-style: none; /* Remove bullets */
    display: flex; /* Flexbox layout */
    flex-wrap: wrap; /* Wrap to multiple lines */
    justify-content: center; /* Center items */
    gap: 1rem; /* Space between items */
}

/* Individual skill item */
.skill-item {
    background: linear-gradient(45deg, #720455, #910A67); /* Gradient background */
    padding: 0.8rem 1.5rem; /* Padding */
    border-radius: 25px; /* Rounded corners */
    transition: transform 0.3s ease; /* Smooth transition */
}

/* Skill item hover effect */
.skill-item:hover {
    transform: scale(1.05); /* Slightly enlarge */
}

/* ===== CONTACT SECTION STYLES ===== */
.contact-content {
    display: flex; /* Flexbox layout */
    justify-content: center; /* Center items */
    gap: 4rem; /* Space between items */
    flex-wrap: wrap; /* Wrap on small screens */
}

/* Individual contact item */
.contact-item {
    text-align: center; /* Center text */
}

/* Contact item heading */
.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #910A67; /* Pink color */
}

/* Contact item text */
.contact-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Above everything */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(3, 6, 55, 0.95); /* Semi-transparent background */
    animation: fadeIn 0.3s ease; /* Fade in animation */
}

/* Modal content box */
.modal-content {
    background: linear-gradient(135deg, #3C0753, #720455); /* Gradient background */
    margin: 3% auto; /* Center with top margin */
    padding: 2.5rem; /* Padding inside */
    border-radius: 20px; /* More rounded corners */
    max-width: 900px; /* Maximum width */
    max-height: 90vh; /* Maximum height */
    overflow-y: auto; /* Scroll if content is too tall */
    position: relative; /* For positioning close button */
    animation: slideDown 0.3s ease; /* Slide down animation */
    box-shadow: 0 20px 60px rgba(145, 10, 103, 0.6); /* Strong glow */
}

/* Modal close button */
.modal-close {
    position: absolute; /* Position in corner */
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer; /* Pointer cursor */
    transition: color 0.3s ease; /* Smooth color change */
}

/* Close button hover effect */
.modal-close:hover {
    color: #910A67; /* Change to pink */
}

/* Modal title */
#modal-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-align: center;
}

/* Modal description */
#modal-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    text-align: center;
}

/* Modal media container */
#modal-media {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* Modal image - at the top */
.modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 15px;
}

/* Modal video - takes full width at bottom */
.modal-video {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    border: none;
}

/* ===== ANIMATIONS ===== */
/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0; /* Start invisible */
    }
    to {
        opacity: 1; /* End visible */
    }
}

/* Fade in and move up animation */
@keyframes fadeInUp {
    from {
        opacity: 0; /* Start invisible */
        transform: translateY(30px); /* Start lower */
    }
    to {
        opacity: 1; /* End visible */
        transform: translateY(0); /* End at normal position */
    }
}

/* Slide down animation */
@keyframes slideDown {
    from {
        transform: translateY(-50px); /* Start higher */
        opacity: 0; /* Start invisible */
    }
    to {
        transform: translateY(0); /* End at normal position */
        opacity: 1; /* End visible */
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablet and smaller screens */
@media (max-width: 768px) {
    /* Smaller hero title on mobile */
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Smaller hero subtitle on mobile */
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Adjust navigation menu for mobile */
    .nav-menu {
        gap: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Smaller section titles on mobile */
    .section-title {
        font-size: 2rem;
    }
    
    /* Better grid on mobile - 2 columns */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Adjust project card for mobile */
    .project-card {
        border-radius: 10px;
    }
    
    .project-content {
        padding: 0.6rem;
    }
    
    .project-title {
        font-size: 0.85rem;
    }
    
    .project-description {
        font-size: 0.7rem;
        -webkit-line-clamp: 2;
    }
    
    .buy-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    /* Smaller modal on mobile */
    .modal-content {
        margin: 10% 5%;
        padding: 1.5rem;
        max-width: 95%;
    }
    
    #modal-title {
        font-size: 1.8rem;
    }
    
    #modal-description {
        font-size: 1rem;
    }
    
    /* Adjust sections padding */
    .projects-section,
    .about-section,
    .contact-section,
    .faq-section {
        padding: 3rem 0;
    }
    
    /* Container padding */
    .container {
        padding: 0 15px;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 480px) {
    /* Even smaller hero title */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    /* Navigation adjustments */
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    /* Single column on very small screens */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Larger cards on single column */
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .project-title {
        font-size: 0.9rem;
    }
    
    .project-description {
        font-size: 0.75rem;
    }
    
    .buy-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* ===== FAQ SECTION STYLES ===== */
.faq-section {
    padding: 5rem 0;
    background-color: #3C0753;
}

/* FAQ container */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Individual FAQ item */
.faq-item {
    background: linear-gradient(135deg, #720455, #910A67);
    border-radius: 15px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ item hover effect */
.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(145, 10, 103, 0.5);
}

/* FAQ item active state */
.faq-item.active {
    background: linear-gradient(135deg, #910A67, #720455);
}

/* FAQ question */
.faq-question {
    padding: 1.5rem 2rem;
    font-size: 1.15rem;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s ease;
}

/* FAQ icon */
.faq-icon {
    color: #ffffff;
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
}

/* FAQ answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    padding: 0 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    font-size: 1.05rem;
    opacity: 0;
}

/* FAQ answer when active */
.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    opacity: 1;
}

/* FAQ question hover effect */
.faq-question:hover {
    padding-left: 2.3rem;
}

/* FAQ icon rotation when active */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}


/* ===== MUSIC TOGGLE BUTTON ===== */
.music-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #720455, #910A67);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(145, 10, 103, 0.5);
    transition: all 0.3s ease;
}

/* Music button hover effect */
.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(145, 10, 103, 0.7);
}

/* Music button active effect */
.music-toggle:active {
    transform: scale(0.95);
}

/* Music icon */
.music-icon {
    transition: transform 0.3s ease;
}

/* Music button when music is playing */
.music-toggle.playing .music-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Pulse animation for music icon */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .music-toggle {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.2rem;
    }
}

/* ===== MUSIC VISUALIZER (FIXED BACKGROUND) ===== */
#visualizer-canvas {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #visualizer-canvas {
        height: 200px;
    }
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #030637 0%, #3C0753 50%, #720455 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Hide splash screen */
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Splash content */
.splash-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

/* Splash title */
.splash-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #910A67, #720455);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Splash subtitle */
.splash-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Splash button */
.splash-button {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, #720455, #910A67);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 10, 103, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* Splash button hover */
.splash-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(145, 10, 103, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .splash-title {
        font-size: 2.5rem;
    }
    
    .splash-subtitle {
        font-size: 1.2rem;
    }
    
    .splash-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ===== SOCIAL LINKS STYLES ===== */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Social link button */
.social-link-btn {
    padding: 0.8rem 1.8rem;
    background: linear-gradient(45deg, #720455, #910A67);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 10, 103, 0.4);
}

/* Social link button hover effect */
.social-link-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(145, 10, 103, 0.6);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link-btn {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
}
