html{
	scroll-behavior: smooth;
}
:root {
    --bg-deep: #0F0524;
    --bg-card: rgba(26, 11, 60, 0.7);
    --text-cream: #FDFBF7;
    --amethyst: #8B5DFF;
    --sunny-yellow: #FFEC00;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-deep);
    color: var(--text-cream);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }

h1 { font-size: 3.5rem; margin: 1rem 0; line-height: 1.2; }
.highlight-purple { color: var(--amethyst); font-weight: 700; }
.highlight-yellow { color: var(--sunny-yellow); }

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    margin-right: 1rem;
}

.btn-primary { background: var(--sunny-yellow); color: #000; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 236, 0, 0.3); }

.btn-outline { border: 2px solid var(--amethyst); color: var(--amethyst); }
.btn-outline:hover { background: var(--amethyst); color: #fff; }

/* Image Glow Effect */
/* Section 1: Hero Image Optimization */
.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 550px; /* Limits size on big screens */
    height: auto; /* Maintains proportions */
    object-fit: contain;
    filter: drop-shadow(0 0 20px var(--amethyst));
    z-index: 2;
}





.image-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 300px; height: 300px;
    background: var(--amethyst);
    filter: blur(100px);
    opacity: 0.4;
    z-index: -1;
}

/* Glassmorphism Stat Cards */
.stats-grid { display: flex; gap: 1rem; }
.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 93, 255, 0.2);
    backdrop-filter: blur(10px);
    flex: 1;
    text-align: center;
}

.stat-card h3 { color: var(--sunny-yellow); font-size: 2rem; }

/* Skills Section */
.skills-wrapper { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; 
}
.skill-col { 
    background: var(--bg-card); 
    padding: 2rem; 
    border-radius: 10px; 
    border-left: 5px solid var(--amethyst);
}
/* Mobile Specific Fixes */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Allow hero to grow based on content */
        padding-top: 100px; /* Space for fixed progress bar */
    }

    .hero-grid {
        grid-template-columns: 1fr; /* Stack text and image */
        text-align: center;
        gap: 3rem;
    }

    .hero-image img {
        max-width: 85%; /* Shrinks image so it's not huge on phones */
        margin: 0 auto;
    }
    
    h1 {
        font-size: 2.2rem; /* Smaller heading for mobile */
    }
}
.graphics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense; /* Fills in gaps for mixed sizes */
    gap: 15px;
}

/* Styling for the Load More Container */
.load-more-container {
    text-align: center;
    margin: 2rem 0;
}

/* Initial Hidden State */
.hidden-grid {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

/* Active State (Triggered by JS) */
.hidden-grid.show {
    display: grid !important; /* Forces it to show as a grid */
    opacity: 1;
    transform: translateY(0);
    animation: cyberFade 0.6s ease-out forwards;
}

@keyframes cyberFade {
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth fade for the button container */
.load-more-container {
    transition: opacity 0.4s ease;
}

/* Make the button look like a primary cyber action */
#loadMoreBtn {
    background: rgba(139, 93, 255, 0.1);
    box-shadow: 0 0 10px var(--amethyst);
    border: 1px solid var(--amethyst);
    padding: 12px 40px;
    font-size: 1.1rem;
}

#loadMoreBtn:hover {
    background: var(--amethyst);
    color: #fff;
    box-shadow: 0 0 20px var(--amethyst);
    transform: scale(1.05);
}



/* Adds space between the description and the filter buttons */
.section-title p {
    margin-bottom: 2.5rem; /* Adjust this value (1rem to 4rem) for more or less space */
    color: rgba(253, 251, 247, 0.8); /* Matches your --text-cream with slight transparency */
}

/* Ensures the filter group itself has proper spacing */
.filter-group {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.typewriter {
    display: inline-block;
    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: 3px solid var(--sunny-yellow); /* The typing cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; 
    letter-spacing: 0.1rem; 
    width: 0; /* Start with hidden text */
    animation: 
        typing 3.5s steps(30, end) forwards,
        blink-caret 0.75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--sunny-yellow); }
}

/* Responsive Fix: Ensure it doesn't break on mobile */
@media (max-width: 768px) {
    .typewriter {
        white-space: normal; /* Allows wrapping if the screen is too small */
        border-right: none;
        animation: none;
        width: 100%;
    }
}
.highlight-purple, .highlight-yellow {
    animation: cyber-flicker 3s infinite;
}

@keyframes cyber-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.8; text-shadow: 0 0 15px var(--amethyst); }
}

.cursor {
    border-left: 3px solid var(--sunny-yellow);
    margin-left: 5px;
    animation: blink 0.5s step-end infinite;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(139, 93, 255, 0.3);
    cursor: pointer;
}

/* Make Posters/Flyers span 2 rows if they are tall */
.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); filter: brightness(0.7); }

.gallery-item .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(15, 5, 36, 0.6);
    opacity: 0; transition: 0.3s;
    color: var(--sunny-yellow); font-weight: bold;
}

.gallery-item:hover .overlay { opacity: 1; }

/* Section 4: Projects Gallery */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

/* Image styling inside the card */
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(139, 93, 255, 0.1);
    transition: 0.5s ease;
}

.project-card .card-content h4 {
    color: var(--sunny-yellow);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.project-card .card-content p {
    color: rgba(253, 251, 247, 0.7);
    font-size: 0.95rem;
}

/* Cyber Hover Effects */
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--amethyst);
    box-shadow: 0 0 30px rgba(139, 93, 255, 0.3);
}

.project-card:hover img {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.05);
}

/* Adding a "Glow Bar" to the bottom of the card on hover */
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--amethyst);
    box-shadow: 0 0 15px var(--amethyst);
    transition: width 0.4s ease;
}

.project-card:hover::after {
    width: 100%;
}

/* Section 5: Video Portfolio */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-card {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(139, 93, 255, 0.2);
    overflow: hidden;
    transition: 0.4s ease;
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

/* The actual video file */
.hover-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hidden until hover */
    transition: opacity 0.5s ease;
}

/* The static thumbnail */
.video-thumb {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: 0.5s ease;
}

/* Preview Label Overlay */
.play-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(139, 93, 255, 0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 10px var(--amethyst);
}

.video-info {
    padding: 1.5rem;
}

.video-info h4 {
    color: var(--sunny-yellow);
    margin-bottom: 5px;
}

.video-info p {
    color: rgba(253, 251, 247, 0.6);
    font-size: 0.9rem;
}

/* --- THE CYBER HOVER EFFECT --- */
.video-card:hover {
    border-color: var(--sunny-yellow);
    box-shadow: 0 0 25px rgba(255, 236, 0, 0.2);
    transform: translateY(-5px);
}

.video-card:hover .hover-video {
    opacity: 1; /* Shows video */
}

.video-card:hover .video-thumb {
    opacity: 0; /* Hides thumbnail */
}

.video-card:hover .play-overlay {
    background: var(--sunny-yellow);
    color: #000;
}
  


/* Lightbox Styling */
.lightbox {
    display: none; position: fixed; z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); padding: 50px;
}

.lightbox-content {
    max-width: 90%; max-height: 90%; margin: auto; display: block;
    border: 2px solid var(--amethyst); box-shadow: 0 0 30px var(--amethyst);
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-cream);
    border: 2px solid var(--amethyst);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(139, 93, 255, 0.2);
    box-shadow: 0 0 15px var(--amethyst);
}

.filter-btn.active {
    background: var(--amethyst);
    color: #fff;
    box-shadow: 0 0 20px var(--amethyst);
}

/* Smooth Transition for Gallery Items */
.gallery-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Section 6: Why Hire Me */
.why-hire .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    border: 1px solid rgba(139, 93, 255, 0.2);
    text-align: center;
    transition: 0.4s ease;
    backdrop-filter: blur(10px); /* */
}

.benefit-card span {
    display: inline-block;
    font-size: 2rem;
    color: var(--sunny-yellow);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 236, 0, 0.4);
}

.benefit-card h4 {
    color: var(--amethyst);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--amethyst);
    box-shadow: 0 10px 30px rgba(139, 93, 255, 0.2); /* */
}

/* Section 7: Contact Section */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 93, 255, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-cream);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--sunny-yellow);
    background: rgba(139, 93, 255, 0.1);
    box-shadow: 0 0 15px rgba(139, 93, 255, 0.3); /* */
}

.contact-form .btn-primary {
    cursor: pointer;
    border: none;
    align-self: center;
    padding: 1rem 3rem;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(139, 93, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(253, 251, 247, 0.6);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite; /* Floating Animation */
}

.whatsapp-float img { width: 35px; }

/* Social Media Row */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.social-icon {
    color: var(--text-cream);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--amethyst);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
    background: rgba(139, 93, 255, 0.05);
}

.social-icon:hover {
    background: var(--amethyst);
    box-shadow: 0 0 15px var(--amethyst);
    transform: translateY(-5px);
}

/* Keyframe for Floating Effect */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* WhatsApp Popup Styling */
.whatsapp-popup {
    visibility: hidden;
    opacity: 0;
    width: 200px;
    background: rgba(26, 11, 60, 0.9); /* Deep Amethyst Glass */
    color: var(--text-cream);
    text-align: center;
    border-radius: 12px;
    padding: 12px;
    position: absolute;
    z-index: 101;
    bottom: 125%; /* Positioned above the button */
    right: 0;
    border: 1px solid var(--amethyst);
    box-shadow: 0 0 20px rgba(139, 93, 255, 0.5); /* Neon Glow */
    backdrop-filter: blur(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
}

/* Little Arrow at the Bottom of Popup */
.whatsapp-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 25px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--amethyst) transparent transparent transparent;
}

/* Show Popup on Hover */
.whatsapp-float:hover .whatsapp-popup {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure the main button stays glowing */
.whatsapp-float:hover {
    box-shadow: 0 0 30px rgba(37, 211, 102, 0.8);
    transform: scale(1.1);
}

/* Animation Base Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* When the section becomes active */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay for Grid Items (Cards) */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }


/* Glass Card Hover Elevation */
.glass-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 25px var(--amethyst); /* Your theme's purple glow */
    border-color: var(--sunny-yellow); /* Changes border to yellow on hover */
}

/* Smooth Scroll for the whole page */
html {
    scroll-behavior: smooth;
}


/* Progress Bar Container */
.progress-container {
    position: fixed;
    top: 0;
    z-index: 1000; /* Stays above everything */
    width: 100%;
    height: 4px;
    background: rgba(15, 5, 36, 0.5); /* Transparent Dark Background */
}

/* The Moving Bar */
.progress-bar {
    height: 4px;
    background: linear-gradient(to right, var(--amethyst), #d600ff);
    width: 0%; /* Starts at 0 */
    box-shadow: 0 0 15px #d600ff, 0 0 5px var(--amethyst); /* Cyber Glow */
    transition: width 0.1s ease-out;
}


/* Back to Top Button Styling */
.back-to-top {
    position: fixed;
    bottom: 40px;
    left: 40px; /* Positioned on the left as requested */
    width: 50px;
    height: 50px;
    background: var(--bg-card); /* Using your existing glass background */
    border: 2px solid var(--amethyst);
    border-radius: 50%;
    color: var(--sunny-yellow);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Hidden by default */
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 0 15px rgba(139, 93, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Hover Effect */
.back-to-top:hover {
    background: var(--amethyst);
    color: #fff;
    box-shadow: 0 0 25px var(--amethyst);
    transform: translateY(-5px);
}

/* Visibility Class */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}




