/* Enhanced Navigation Styles */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hamburger-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hide dropdown links by default */
.dropdown-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.3);
    z-index: 1001;
}

.dropdown-links.active {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown-links a:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateX(5px);
}

/* Show hamburger toggle on all screens */
.hamburger-toggle {
    display: flex !important;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}

.hamburger-toggle:hover {
    background: rgba(76, 175, 80, 0.2);
}

/* Light mode adjustments */
.light-mode .dropdown-links {
    background: rgba(248, 249, 250, 0.95);
}

.light-mode .dropdown-links a {
    color: #333;
}

.light-mode .dropdown-links a:hover {
    background: rgba(33, 150, 243, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dropdown-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 25, 47, 0.98);
        border-radius: 0;
        padding: 1rem;
        min-width: auto;
    }

    .light-mode .dropdown-links {
        background: rgba(248, 249, 250, 0.98);
    }
}

/* Ensure visible links are properly spaced */
.visible-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visible-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.visible-links a:hover {
    background: rgba(76, 175, 80, 0.2);
}


/* Fix for mobile skill bars overlapping */
@media (max-width: 768px) {
    .skill-bar {
        height: 35px;
        /* Increased height for mobile */
        margin-bottom: 1rem;
        position: relative;
    }

    .skill-progress {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .skill-label {
        position: static !important;
        transform: none !important;
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60%;
    }

    .skill-percentage {
        position: static !important;
        transform: none !important;
        font-size: 0.85rem;
        min-width: 40px;
        text-align: right;
    }

    /* Ensure proper spacing */
    .skills {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .skill-bar {
        height: 40px;
        /* Even more height on very small screens */
    }

    .skill-label {
        font-size: 0.8rem;
        max-width: 55%;
    }

    .skill-percentage {
        font-size: 0.8rem;
    }
}

/* Typewriter animations */
.typewriter-text {
    font-size: 1.5rem;
    line-height: 1.5;
    text-align: center;
    color: #ccd6f6;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    display: inline-block;
}

/* Add a custom cursor using a pseudo-element */
.typewriter-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 1em;
    background-color: #4CAF50;
    /* Default dark mode cursor color */
    animation: blink-caret 0.75s step-end infinite;
    transition: background-color 0.3s ease;
    /* Smooth color transition */
}

/* Light mode cursor color */
.light-mode .typewriter-text::after {
    background-color: #2196F3;
    /* Blue color for light mode */
}

/* The typing effect */
@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

/* The cursor blink effect */
@keyframes blink-caret {

    from,
    to {
        opacity: 0
    }

    50% {
        opacity: 1
    }
}

/* For mobile responsiveness */
@media (max-width: 768px) {
    .typewriter-text {
        font-size: 1rem;
        white-space: normal;
    }

    .typewriter-text::after {
        display: none;
    }

    .typewriter-container {
        min-height: auto;
    }
}

/* Add subtle entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section>.container {
    animation: fadeInUp 0.6s ease both;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg,
            #4CAF50 0%,
            #2196F3 50%,
            #9C27B0 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    border-radius: 2px;
    z-index: 9999;
    transition: width 0.3s ease-out;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    transform: translateY(-25%);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.light-mode .scroll-progress {
    background: linear-gradient(90deg,
            #2196F3 0%,
            #4CAF50 50%,
            #9C27B0 100%);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Prevent double-tap zoom(mobile opt) */
button,
a {
    touch-action: manipulation;
}

@media (hover: none) {
    .project-card:hover {
        transform: none;
    }

    .tech-stack span:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Updated Mobile Navigation - Professional Hamburger Menu */
.hamburger-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visible-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.visible-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visible-links a:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.hamburger-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    position: relative;
    margin: auto !important;
}

.hamburger-toggle:hover {
    background: rgba(76, 175, 80, 0.2);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Sidebar */
.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70% !important;
    max-width: 300px;
    height: 100vh;
    background: rgba(10, 25, 47, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(76, 175, 80, 0.3);
}

.mobile-nav-sidebar.active {
    left: 0;
}

/* Mobile Navigation Header */
.mobile-nav-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(76, 175, 80, 0.1);
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-title {
    color: #4CAF50;
    font-size: 1.2rem;
    font-weight: 600;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: rotate(90deg);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.2), transparent);
    transition: left 0.6s ease;
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 175, 80, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-nav-links a:hover::before {
    left: 100%;
}

.mobile-nav-links a:hover {
    background: rgba(76, 175, 80, 0.15);
    transform: translateX(10px);
    border-color: rgba(76, 175, 80, 0.3);
}

.mobile-nav-links a.active {
    background: rgba(76, 175, 80, 0.25);
    border-color: #4CAF50;
    transform: translateX(10px);
}

.mobile-nav-links a i {
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Light mode adjustments */
.light-mode .mobile-nav-sidebar {
    background: rgba(248, 249, 250, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.light-mode .mobile-nav-links a {
    color: #ffffff;
}

.light-mode .mobile-nav-links a:hover {
    background: rgba(33, 150, 243, 0.1);
}

.light-mode .mobile-nav-links a.active {
    background: rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

.light-mode .mobile-nav-title {
    color: #2196F3;
}

.light-mode .mobile-nav-header {
    background: rgba(33, 150, 243, 0.1);
    border-bottom-color: rgba(33, 150, 243, 0.3);
}

.light-mode .mobile-close-btn {
    color: #ffffff;
}

/* Hide desktop dropdown on mobile */
.dropdown-links {
    display: none;
}

/* Add this to your existing style.css file */

/* Desktop Navigation Fix */
@media (min-width: 769px) {
    .hamburger-menu {
        position: relative !important;
    }

    .dropdown-links {
        display: flex !important;
        position: static;
        background: none;
        backdrop-filter: none;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 2rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        flex-direction: row;
        width: auto;
        height: auto;
        min-width: auto;
    }

    .dropdown-links a {
        color: #fff;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 5px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1rem;
        border: 1px solid transparent;
    }

    .dropdown-links a:hover {
        background: rgba(76, 175, 80, 0.2);
        transform: translateY(-2px);
        border-color: rgba(76, 175, 80, 0.3);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .dropdown-links a i {
        font-size: 1.1rem;
    }

    /* Hide hamburger toggle on desktop */
    .hamburger-toggle {
        display: none;
    }

    /* Ensure visible links are shown on desktop */
    .visible-links {
        display: flex;
    }
}

/* Light mode adjustments for desktop nav */
.light-mode .dropdown-links {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.light-mode .dropdown-links a {
    color: #ffffff !important;
}

.light-mode .dropdown-links a:hover {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile navigation remains the same */
@media (max-width: 768px) {
    .dropdown-links {
        display: none !important;
    }

    .hamburger-toggle {
        display: flex;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hamburger-toggle {
        display: flex;
    }

    .visible-links {
        display: none;
    }

    .dropdown-links {
        display: none !important;
    }
}

@media (min-width: 769px) {

    .mobile-nav-overlay,
    .mobile-nav-sidebar {
        display: none !important;
    }

    .hamburger-toggle {
        display: none;
    }

    .visible-links {
        display: flex;
    }

    .dropdown-links {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .mobile-nav-sidebar {
        width: 90%;
        max-width: none;
        padding: 4rem 1.5rem 2rem;
    }

    .mobile-nav-header {
        padding: 1rem 1.5rem;
    }

    .mobile-nav-links a {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .mobile-nav-sidebar {
        width: 95%;
        padding: 3.5rem 1rem 1.5rem;
    }

    .mobile-nav-links a {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Smooth transitions for all interactive elements */
.mobile-nav-links a,
.hamburger-toggle,
.mobile-close-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states for accessibility */
.mobile-nav-links a:focus,
.hamburger-toggle:focus,
.mobile-close-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.light-mode .mobile-nav-links a:focus,
.light-mode .hamburger-toggle:focus,
.light-mode .mobile-close-btn:focus {
    outline-color: #2196F3;
}

/* Mobile overlay when menu is open */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Light mode adjustments */
.light-mode .dropdown-links {
    background: rgba(248, 249, 250, 0.95);
}

.light-mode .dropdown-links a {
    color: #333;
}

.light-mode .dropdown-links a:hover {
    background: rgba(33, 150, 243, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .visible-links {
        display: none;
    }

    .hamburger-menu {
        gap: 0.5rem;
    }

    .hamburger-toggle {
        display: flex;
    }
}

@media (min-width: 769px) {
    .dropdown-links {
        position: absolute;
        top: 100%;
        right: 2rem;
        left: auto;
        width: auto;
        height: auto;
        min-width: 200px;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 10px;
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .dropdown-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        left: auto;
    }

    .mobile-overlay {
        display: none;
    }

    .visible-links {
        display: flex;
    }
}

@media (max-width: 480px) {
    .dropdown-links {
        width: 80%;
    }

    .dropdown-links a {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
}

/* Update 22-03-25 */
/* Font loading fix in Brave */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: local('Poppins Medium'),
        url('https://fonts.gstatic.com/s/poppins/v20/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2') format('woff2');
}

/* NEW: Add Dancing Script font for navigation */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

:root {
    --primary: #2ecc71;
    --secondary: #3498db;
    --dark-bg: #0a192f;
    --light-text: #ccd6f6;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto;
    --font-secondary: 'Inter', sans-serif;
}

.section {
    padding: 5rem 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.03em;
}

h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.light-mode {
    --primary: #2196F3;
    --secondary: #4CAF50;
    background: #f8f9fa;
    color: #2d3436;
    --text-primary: #2d3436;
    --bg-primary: #f8f9fa;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.light-mode .particles {
    display: none;
}

.light-mode .project-card,
.light-mode .achievement-card,
.light-mode .language-card {
    background: rgba(0, 0, 0, 0.05);
}

.theme-indicator {
    position: fixed;
    bottom: 4.5rem;
    right: 3.3rem;
    transform: translateX(50%);
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
}

/* For light mode */
.light-mode .theme-indicator {
    color: #ffffff;
}

/* Positioning adjustment */
.theme-toggle:hover+.theme-indicator {
    opacity: 1;
    transform: translate(50%, -8px);
}

/* BG fade */
.interactive-bg {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.interactive-bg.faded {
    opacity: 0;
}

/* BG fade */
.interactive-bg {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.interactive-bg.faded {
    opacity: 0;
}

/* Upadte 22-03-25 end */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed;


    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background: var(--background);
    transition: var(--transition);
}

/* background effect */

.interactive-bg {
    position: fixed;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    z-index: -1;
    transition: all 0.3s ease;
    will-change: transform;
}

/* Add parallax effect to sections */
section {
    transform: translateZ(0);
    position: relative;
}

.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particles::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #4CAF50;
    border-radius: 50%;
    animation: particle 5s infinite linear;
}

@keyframes particle {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(var(--x), var(--y));
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* FIXED: Smooth scrolling for all modes */
html {
    scroll-behavior: smooth !important;
}

body {
    scroll-behavior: smooth !important;
}

/* Add scroll margin to all sections */
section {
    /* Adjust based on your nav height */
    scroll-margin-top: 100px;
    /* padding-top + padding-bottom + font-size */
    scroll-margin-top: calc(1rem * 2 + 1em);

}

nav {
    background: rgba(0, 0, 0, 0.705);
    padding: 0.3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CHANGED: Updated navigation h1 font to Dancing Script */
nav h1 {
    font-family: 'Dancing Script', cursive !important;
    font-weight: 600 !important;
    font-size: 2.2rem !important;
    letter-spacing: 1px;
    background: linear-gradient(45deg,
            #7a398a,
            #2196F3,
            #9C27B0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    transition: all 0.3s ease;
    text-transform: none !important;
    -webkit-background-clip: text;
    background-clip: text;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

nav h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.3s ease;
}

nav h1:hover {
    transform: scale(1.05);
}

nav h1:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    nav h1 {
        font-size: 1.8rem !important;
        margin-left: 0;
        padding-left: 0;
        text-align: left;
        width: auto;
    }
}

.hero {
    position: relative;
    overflow: hidden;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    margin: 2rem auto;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: rotate(5deg) scale(1.1);
    border: 3px solid #28a745;
    box-shadow: 0 0 30px rgba(89, 207, 93, 0.5);
}

.light-mode .profile-img:hover {
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.5);
    border: 3px solid #2196F3;
}

.hero-content h1 {
    font-size: 3.1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.hero-content h1 span.hello {
    font-size: 1.6rem;
}

@media (max-width: 768px) {
    .hero-content h1 span {
        font-size: 1.8rem;
        margin-top: 0%;
    }

    .profile-img {
        width: 180px;
        height: 180px;
        margin-bottom: 0%;
    }

    .hero-content h1 span.hello {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {

    .hero-content h1 span {
        font-size: 1.6rem;
        margin-top: 0%;
    }

    .profile-img {
        margin-bottom: 0%;
        width: 160px;
        height: 160px;
    }

    .hero-content h1 span.hello {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1 span {
        font-size: 1.2rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .hero-content h1 span.hello {
        font-size: 0.7rem;
    }
}


/* Update hero h1 styles */
.hero-content h1 span {
    background: linear-gradient(45deg,
            #4CAF50,
            #2196F3,
            #9C27B0);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 3s ease infinite;
}

@keyframes gradient-text {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.hero-content:hover h1 {
    transform: scale(1.05);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    opacity: 0.1;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

/* Replace .scroll-line with this */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.hero-scroll-indicator i {
    font-size: 2rem;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(76, 175, 80, 0.5);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}



/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.about-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.about-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.badge {
    background: rgba(76, 175, 80, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid #4CAF50;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateX(10px);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.tech-stack i {
    position: relative;
    gap: 5rem;
}

.tech-stack i:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.about-tech {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-stack {
    display: flex;
    gap: 1.5rem !important;
    font-size: 2.5rem !important;
    justify-content: center;
}

.tech-stack i {
    transition: transform 0.3s ease;
}

.tech-stack i:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .tech-stack {
        font-size: 2rem !important;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .about-content p {
        font-size: 0.9rem;
    }

    .tech-stack {
        font-size: 1.8rem !important;
        gap: 0.8rem !important;
    }

    .about-badges .badge {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }
}

/* Timeline Section */

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-timeline {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(76, 175, 80, 0.2);
    position: relative;
}


.timeline-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease-out;
}

.timeline-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: rgba(76, 175, 80, 0.2);
    border-radius: 50%;
    border: 2px solid rgb(76, 175, 80);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.timeline-content span {
    color: #4CAF50;
    font-size: 0.9rem;
}

/* end timeline */

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Projects Section */

#projects {
    padding: 6rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg,
            rgba(76, 174, 79, 0.1) 0%,
            rgba(33, 149, 243, 0.1) 50%,
            rgba(155, 39, 176, 0.1) 100%);
}

.light-mode .project-card:hover {
    background: linear-gradient(135deg,
            rgba(33, 150, 243, 0.1) 0%,
            rgba(76, 175, 80, 0.1) 50%,
            rgba(155, 39, 176, 0.1) 100%);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    transition: left 0.3s;
}

.project-card:hover::before {
    left: 0;
}

.project-card h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    color: #ccc;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0;
    justify-content: flex-mid;
}

.tech-stack span {
    background: rgba(46, 204, 113, 0.15);
    color: var(--primary);
    padding: 0.4rem clamp(0.8rem, 2vw, 1rem);
    /* Responsive padding */
    border-radius: 2rem;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem);
    /* Fluid font size */
    border: 1px solid rgba(46, 204, 113, 0.3);
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    line-height: 1.2;
    backdrop-filter: blur(4px);
    /* Prevent text overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Animation 1: Subtle scale with shadow */
.tech-stack span:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
    background: rgba(46, 204, 113, 0.25);
    border-color: rgba(46, 204, 113, 0.5);
}

/* Animation 3: Shine effect */
.tech-stack span::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transform: translateX(-100%) rotate(15deg);
    transition: all 0.4s ease;
}

.tech-stack span:hover::after {
    transform: translateX(100%) rotate(15deg);
}

/* Mobile optimization */
@media (max-width: 768px) {
    .tech-stack {
        gap: 0.4rem;
        margin: 0.8rem 0;
    }

    .tech-stack span {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 1.5rem;
        backdrop-filter: none;
        /* Remove blur for mobile performance */
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .tech-stack {
        gap: 0.3rem;
    }

    .tech-stack span {
        padding: 0.25rem 0.7rem;
        font-size: 0.7rem;
        border-radius: 1rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .tech-stack {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .tech-stack span {
        flex-shrink: 0;
    }
}

/* Achivement section */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #4CAF50;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card:hover::after {
    transform: scaleX(1);
}

.achievement-card h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.achievement-card p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Updated Skills Section */

.skills {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-bar {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0;
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(100, 255, 218, 0.1);
    position: relative;
}

.skill-label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-weight: 400;
    z-index: 1;
}

.skill-percentage {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 0.9rem;
}

.skill-disclaimer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.light-mode .skill-disclaimer {
    color: rgba(255, 255, 255, 0.7);
}

/* Optional: Add a separator line */
.skill-disclaimer::before {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(76, 175, 80, 0.3);
    margin: 0 auto 1rem;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Language Proficiency */

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.language-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #4CAF50;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.language-card:hover {
    transform: translateY(-5px);
}

.language-card:hover::after {
    transform: scaleX(1);
}

.language-card h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.language-card p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Contact Section */

.contact-disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.856);
    text-align: left;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.light-mode .contact-disclaimer {
    color: rgb(255, 255, 255);
}


#contact {
    background: rgba(0, 0, 0, 0);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #45a049;
    background: rgba(76, 175, 80, 0.1);
}

.submit-btn {
    background: var(--gradient);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: left 0.6s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.submit-btn:hover::after {
    left: 100%;
}

.statusPopup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.statusPopup.active {
    transform: translateY(0);
    opacity: 1;
}

.statusPopup.sending {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.statusPopup.success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.statusPopup.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

/* Light mode adjustments */

.light-mode input,
.light-mode textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #2f93df;
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s ease;
}

.light-mode input:focus,
.light-mode textarea:focus {
    outline: none;
    border-color: rgb(47, 147, 223);
    background: rgba(76, 175, 80, 0.1);
}

.light-mode input::placeholder,
.light-mode textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.light-mode .submit-btn {
    background: var(--gradient);
    color: #fff;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Mobile optimization */

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }

    input,
    textarea {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1.2rem;
    }
}

/* popup message */

#statusPopup {
    position: absolute;
    bottom: auto;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    transform: translateY(100%);
    opacity: 0;
    width: max-content;
    max-width: 90%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: row;
    gap: 10px;
}

#statusPopup.active {
    transform: translateY(0);
    opacity: 1;
    text-align: left;
}

#statusPopup i {
    font-size: 1.1rem;
    margin-right: 8px;
    flex-shrink: 0;
}

#statusPopup.success {
    background: rgba(40, 167, 69, 0.9);
}

#statusPopup.error {
    background: rgba(220, 53, 69, 0.9);
}

#statusPopup.sending {
    background: rgba(33, 150, 243, 0.9);
}

@media (min-width: 769px) {
    #statusPopup {
        position: absolute;
        left: 600px;
        transform: translateY(-20px);
        bottom: 90px;
        /* Adjust based on your button's position */
    }

    #statusPopup.active {
        transform: translateY(0);
    }
}

/* Mobile - Position below the button */
@media (max-width: 768px) {
    #statusPopup {
        position: absolute;
        bottom: 400px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
    }

    #statusPopup.active {
        transform: translateX(-50%) translateY(0);
    }
}


/* popup message end */

/* Social Links */

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateX(10px);
}

.social-links i {
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .social-links a {
        justify-content: center;
    }
}

/* Add this at bottom */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
}

footer p {
    font-size: 0.9rem;
    color: #888;
}

footer strong {
    color: #4CAF50;
    font-weight: 500;
}

@media (max-width: 480px) {
    footer p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

/* Add these at the end */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-20px);
        opacity: 0
    }

    50% {
        opacity: 1
    }

    100% {
        transform: translateY(20px);
        opacity: 0
    }
}

/* Section highlighting for navigation */
section:target {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Light mode adjustment */
.light-mode section:target {
    animation: highlight-light 2s ease;
}

@keyframes highlight-light {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0.3);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
    }
}

