/* ============================================
   ULTRA MODERN DESIGN SYSTEM - 2024
   ============================================ */

/* CSS Variables for Modern Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #00f2fe;
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --text-gray: #718096;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Modern Scroll Behavior */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    background: #0f0f0f;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Emoji Support */
.hero-content h1,
.home-section h2,
.featured-item h3 {
    font-variant-emoji: emoji;
    font-feature-settings: "emoji";
    -webkit-font-feature-settings: "emoji";
    text-rendering: optimizeLegibility;
    font-family: 'Inter', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Segoe UI Symbol', sans-serif;
    -webkit-text-stroke: 0.5px transparent;
    text-shadow: 0 0 0 currentColor;
}

/* Force emoji visibility */
.hero-content h1,
.home-section h2 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Specific emoji fixes for headings */
.hero-content h1::before,
.home-section h2::before {
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'Segoe UI Symbol';
    font-variant-emoji: emoji;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #667eea);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Overlay for when mobile menu is active */
body.menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

body.menu-active.transition-active::before {
    opacity: 1;
    visibility: visible;
}

#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Underline effect only for main content links, not nav */
main a:not(.hero-contact-button):not(.home-section-button) {
    position: relative;
}

main a:not(.hero-contact-button):not(.home-section-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

main a:not(.hero-contact-button):not(.home-section-button):hover::after {
    width: 100%;
}

/* ============================================
   GLASSMORPHISM HEADER
   ============================================ */
header {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: headerSlideDown 0.6s ease;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.nav-logo {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--text-light);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    transition: var(--transition-smooth);
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.nav-logo:hover {
    text-decoration: none;
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-logo::after {
    display: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.7rem 1.2rem;
    transition: var(--transition-smooth);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    background: transparent;
}

nav ul li a:hover,
nav ul li a.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

nav ul li a::after {
    display: none;
}

nav ul li a::before {
    display: none;
}

/* Language Switch - Modern Design */
.language-switch {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switch a,
.language-switch span {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    margin: 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.language-switch a::after {
    display: none;
}

.language-switch a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-1px);
}

.language-switch span {
    background: var(--accent-gradient);
    color: var(--text-light);
    font-weight: 700;
    cursor: default;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Main Content Area */
main {
    padding-top: 0;
    position: relative;
}

/* ============================================
   ULTRA MODERN HERO SECTION
   ============================================ */
.hero {
    color: var(--text-light);
    text-align: center;
    padding: 140px 20px 120px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    max-width: 1000px;
    animation: fadeInUp 1s ease;
}

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

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.2);
    animation: textGlow 3s ease-in-out infinite;
    font-variant-emoji: emoji;
    font-feature-settings: "emoji";
    -webkit-font-feature-settings: "emoji";
    text-rendering: optimizeLegibility;
}

@keyframes textGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
    }
}

.hero-content p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Ultra Modern CTA Buttons */
.hero-contact-button {
    display: inline-block;
    margin: 15px 8px;
    padding: 16px 36px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.hero-contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-contact-button:hover::before {
    left: 0;
}

.hero-contact-button:hover {
    text-decoration: none;
    color: var(--text-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-contact-button::after {
    display: none;
}

/* Special styling for primary button */
.hero-contact-button:first-of-type {
    background: var(--accent-gradient);
    border-color: transparent;
    font-weight: 700;
}

/* ============================================
   MODERN FOOTER
   ============================================ */
footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
}

footer p {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
}

/* Responsive Design - Refined for Mobile */
@media (max-width: 768px) {
    body {
        font-size: 95%; /* Slightly reduce base font size */
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 15px;
        box-sizing: border-box;
        position: relative;
    }

    .nav-logo {
        margin: 0;
    }

    .nav-button {
        display: inline-block !important;
        margin-left: 10px;
        z-index: 1010;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(51, 51, 51, 0.98);
        padding-top: 70px;
        z-index: 1005;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 60px 15px; /* Reduce padding */
        min-height: auto; /* Remove fixed min-height */
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1em; /* Keep paragraph size */
    }
    
    .hero-content p[style*="font-size: 1.4em"] { /* Target the tagline specifically */
        font-size: 1.2em !important; /* Reduce tagline size */
    }

    .hero-contact-button {
        display: block;
        margin: 12px auto 0 auto;
        padding: 14px 24px;
        font-size: 1em;
        width: 85%;
        max-width: 320px;
    }
    
    .hero-contact-button[style*="margin-left"] {
        margin-left: auto !important; /* Override inline style for centering */
    }

    /* About Page Adjustments */
    .about-container {
        flex-direction: column;
        align-items: center;
        padding: 25px 15px; /* Adjust padding */
        gap: 25px;
        width: 90%; /* Use percentage width */
        box-sizing: border-box;
    }

    .profile-pic-container {
        flex-basis: auto;
        width: 150px;
    }

    .profile-pic {
        max-width: 150px;
    }

    .about-text h1 {
        font-size: 1.8em; /* Reduce size */
        text-align: center;
    }

    .about-text p {
        font-size: 1em;
    }
    
    /* Project & Contact Container Adjustments */
    .container[style*="max-width: 900px"],
    .form-container {
        width: 90%;
        padding: 25px 15px;
        margin: 20px auto;
        box-sizing: border-box;
    }

    /* Ensure project list items have enough space */
    .project-list h3 {
        font-size: 1.1em;
    }
    .project-list p {
        font-size: 0.95em;
    }
    
    /* Contact Form Adjustments */
    .form-container h2 {
        font-size: 1.8em;
    }
    
    .container h1 {
        font-size: 2.5em;
    }
    
    .container h2 {
        font-size: 1.6em;
    }
    
    .home-section h2 {
        font-size: 2.2em;
    }
    
    .home-section {
        padding: 50px 25px;
    }

    .nav-button {
        display: inline-block !important;
        margin: 0;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        /* Remove margin-top from previous responsive rule */
    }

    nav ul li {
        margin: 15px 0; /* Increase vertical space */
        width: 100%; /* Full width for better touch targets */
        text-align: center;
    }
    
    nav ul li.language-switch {
        width: auto; /* Language switch keeps auto width */
    }
    
    /* Keep nav ul li a styles from previous responsive rule */
    nav ul li a,
    .language-switch span,
    .language-switch a {
        display: block;
        width: auto;
        padding: 10px 15px;
        font-size: 1.1em;
    }
    
    .language-switch {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }
    
    .language-switch a,
    .language-switch span {
        margin: 0 5px;
        display: inline-block;
        padding: 8px 12px;
    }
}

/* You can add further specific rules for even smaller screens if needed */
/* @media (max-width: 480px) { ... } */

/* ============================================
   GLASSMORPHIC ABOUT PAGE
   ============================================ */
.about-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    margin: 60px auto;
    max-width: 1200px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease;
}

.profile-pic-container {
    flex-basis: 280px;
    flex-shrink: 0;
    text-align: center;
    position: relative;
}

.profile-pic {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
    margin-bottom: 15px;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.profile-pic:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 24px 64px rgba(102, 126, 234, 0.5);
}

.profile-pic-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--accent-gradient);
    border-radius: 50%;
    opacity: 0.3;
    filter: blur(20px);
    z-index: 0;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

.about-text {
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.95);
}

.about-text h1 {
    font-size: 3.2em;
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.about-text h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.about-text h2 {
    font-size: 1.8em;
    color: var(--text-light);
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    font-size: 1.15em;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 20px;
}

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

.about-text ul li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05em;
}

.about-text ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
}

.about-text ul li strong {
    color: var(--text-light);
    font-weight: 700;
}

/* Responsive adjustments for About page */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column; /* Stack image and text vertically */
        align-items: center; /* Center items */
        padding: 30px;
        gap: 30px;
    }

    .profile-pic-container {
        flex-basis: auto; /* Reset basis */
        width: 150px; /* Smaller image on mobile */
    }

    .profile-pic {
        max-width: 150px;
    }

    .about-text h1 {
        font-size: 2.2em;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 1.5em;
    }

    .about-text p {
        font-size: 1em;
    }
}

/* Navigation button styles */
.nav-button {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    font-weight: bold;
    font-size: 1rem;
    transition: var(--transition-smooth);
    line-height: 0;
}

.nav-button:hover,
.nav-button.active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* SVG icon styles */
.nav-button svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.nav-button .menu-icon,
.nav-button .close-icon {
    stroke: var(--text-light);
    stroke-width: 2.5px;
    transition: var(--transition-smooth);
}

/* Navigation Links Wrapper */
.nav-links {
    display: flex; /* Keep flex for desktop */
    align-items: center;
}

/* Style the active state of the navigation button (toggled by JS) */
.nav-button.active {
    background-color: #e69500;
}

/* ============================================
   MODERN HOME SECTIONS
   ============================================ */
.home-section {
    padding: 80px 40px;
    max-width: 1300px;
    margin: 60px auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease;
}

.home-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: sectionGlow 10s linear infinite;
}

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

.home-section h2 {
    font-size: 3em;
    margin-bottom: 25px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    z-index: 1;
    font-variant-emoji: emoji;
    font-feature-settings: "emoji";
    -webkit-font-feature-settings: "emoji";
    text-rendering: optimizeLegibility;
}

.home-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.home-section p {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.85);
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    z-index: 1;
    position: relative;
}

/* Grid layout for featured items (projects/skills) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
    z-index: 1;
    position: relative;
}

.featured-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.featured-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.featured-item:hover::before {
    opacity: 0.1;
}

.featured-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.featured-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.featured-item h3 a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.featured-item h3 a::after {
    display: none;
}

.featured-item h3 a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.featured-item p {
    font-size: 1.05em;
    margin-bottom: 0;
    max-width: none;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Button style for home sections */
.home-section-button {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 40px;
    background: var(--primary-gradient);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05em;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.home-section-button::after {
    display: none;
}

.home-section-button:hover {
    background: var(--accent-gradient);
    color: var(--text-light);
    text-decoration: none;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

@media (max-width: 768px) {
    header {
        padding: 0;
    }
    
    .nav-container {
        padding: 10px 15px;
    }

    .nav-links {
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        padding-bottom: 30px;
    }
}

/* ============================================
   CONTENT SECTIONS & CONTAINERS
   ============================================ */
.content-section {
    padding: 40px 20px;
    position: relative;
}

.container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    margin: 40px auto;
    max-width: 1200px;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease;
}

.container h1 {
    font-size: 3.5em;
    margin-bottom: 30px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.container h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.container h2 {
    font-size: 2em;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.container h2:first-of-type {
    margin-top: 0;
}

.container h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 80%;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.container p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1em;
    line-height: 1.8;
}

/* Light background variant for readability */
.container.container-light,
.container.container-light h1,
.container.container-light h2,
.container.container-light h3,
.container.container-light p,
.container.container-light a {
    color: var(--text-dark) !important;
}

.container.container-light {
    background: rgba(255, 255, 255, 0.95) !important;
}

.container.container-light h2::before {
    background: var(--primary-gradient);
}

.container.container-light .project-list li {
    background: rgba(102, 126, 234, 0.05);
    border-color: rgba(102, 126, 234, 0.2);
}

.container.container-light .project-list li:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.container.container-light .project-list h3 a {
    color: var(--primary-color) !important;
}

.container.container-light .project-list h3 a:hover {
    color: var(--accent-color) !important;
}

/* Project List Styles */
.project-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.project-list li {
    margin-bottom: 35px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.project-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.project-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-list h3 {
    margin: 0 0 12px 0;
    font-size: 1.5em;
    font-weight: 700;
}

.project-list h3 a {
    font-weight: 700;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.project-list h3 a::after {
    display: none;
}

.project-list h3 a:hover {
    color: var(--accent-color);
}

.project-list p {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05em;
    line-height: 1.7;
}

/* ============================================
   MODERN FORM STYLES
   ============================================ */
.form-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    margin: 60px auto;
    max-width: 700px;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease;
}

.form-container h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-size: 1em;
    transition: var(--transition-smooth);
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-light);
    background: var(--primary-gradient);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    font-family: inherit;
}

.submit-button:hover {
    background: var(--accent-gradient);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

/* ============================================
   ADMIN PANEL STYLES
   ============================================ */
.admin-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
}

.admin-section h3 {
    color: var(--text-light);
    font-size: 1.5em;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.admin-item {
    margin-bottom: 20px;
}

.admin-item label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1em;
}

.admin-input,
.admin-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-size: 1em;
    font-family: inherit;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.admin-input:focus,
.admin-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.admin-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.admin-input::placeholder,
.admin-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Admin panel visibility toggle */
#admin-panel {
    position: relative;
    z-index: 1000;
}

#admin-panel.show {
    display: block !important;
    animation: slideInUp 0.5s ease;
}

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

/* ============================================
   GLOBAL ADMIN PANEL STYLES
   ============================================ */
.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.admin-panel-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.admin-panel-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-header h2 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

.admin-close-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2em;
    transition: var(--transition-smooth);
}

.admin-close-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: scale(1.05);
}

.admin-panel-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.admin-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.admin-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.admin-tab.active {
    background: var(--accent-gradient);
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-section h4 {
    color: var(--text-light);
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.admin-item {
    margin-bottom: 15px;
}

.admin-item label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1em;
}

.admin-input,
.admin-textarea,
.admin-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    font-size: 1em;
    font-family: inherit;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.admin-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.admin-button {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: var(--transition-smooth);
    margin-right: 10px;
    margin-bottom: 10px;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.admin-button.primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.admin-button.danger {
    background: linear-gradient(135deg, #ff6b35, #f5576c);
}

.admin-button.small {
    padding: 8px 16px;
    font-size: 0.9em;
}

.admin-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h5 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.stat-item p {
    color: var(--accent-color);
    font-size: 2em;
    font-weight: 700;
    margin: 0;
}

.projects-list {
    max-height: 300px;
    overflow-y: auto;
}

.project-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-item h5 {
    color: var(--text-light);
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.project-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9em;
}

/* Responsive Design for Admin Panel */
@media (max-width: 768px) {
    .admin-panel-container {
        margin: 10px;
        max-height: 95vh;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================
   DEDICATED ADMIN PANEL STYLES
   ============================================ */
.admin-dashboard {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

.stat-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin: 0;
}

.quick-actions {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-actions h3 {
    color: var(--text-light);
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    background: var(--accent-gradient);
    border: none;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: var(--transition-smooth);
    text-align: center;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.analytics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analytics-card h3 {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.analytics-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.metric-value {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1em;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.settings-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.settings-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.project-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-info h5 {
    color: var(--text-light);
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.project-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 5px 0;
    font-size: 0.9em;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.admin-button.large {
    padding: 15px 30px;
    font-size: 1.1em;
}

.admin-button.success {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.admin-button.primary {
    background: var(--accent-gradient);
}

/* Responsive Design for Admin Panel */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .project-actions {
        width: 100%;
        justify-content: space-between;
    }
} 