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

:root {
    /* Light Mode Colors */
    --primary-color: #ff0066;
    --secondary-color: #00ddff;
    --accent-color: #00ff88;
    --bg-primary: #f0f4ff;
    --bg-secondary: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #ff0066, #ff3385);
    --gradient-2: linear-gradient(135deg, #00ddff, #00b8e6);
    --gradient-3: linear-gradient(135deg, #00ff88, #00cc6a);
    --gradient-hero: linear-gradient(135deg, rgba(255, 0, 102, 0.1), rgba(0, 221, 255, 0.1), rgba(0, 255, 136, 0.1));
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-color: #ff3385;
    --secondary-color: #00e5ff;
    --accent-color: #00ff88;
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --glass-bg: rgba(26, 26, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --gradient-1: linear-gradient(135deg, #ff3385, #ff0066);
    --gradient-2: linear-gradient(135deg, #00e5ff, #00ddff);
    --gradient-3: linear-gradient(135deg, #00ff88, #00e676);
    --gradient-hero: linear-gradient(135deg, rgba(255, 51, 133, 0.1), rgba(0, 229, 255, 0.1), rgba(0, 255, 136, 0.1));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 12px 32px rgba(255, 0, 102, 0.5);
}

[data-theme="dark"] .theme-toggle {
    background: var(--gradient-2);
}

/* Glassmorphism Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-nav.scrolled {
    background: rgba(26, 26, 46, 0.95);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #ff0066, #00ddff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff0066, #00ddff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: var(--bg-primary);
}

.gradient-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    animation: gradientShift 15s ease infinite;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    top: -10%;
    right: -10%;
    animation: float 8s ease-in-out infinite;
    border-radius: 50%;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.15;
    bottom: -10%;
    left: -10%;
    animation: float 10s ease-in-out infinite reverse;
    border-radius: 50%;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-card {
    max-width: 600px;
    padding: 3rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
}

.glitch {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.name {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ff0066, #00ddff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
    animation: gradientAnimation 3s ease infinite;
    background-size: 200% 200%;
}

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

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-glass {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-glass:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 102, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid var(--glass-border);
}

.social-link:nth-child(1):hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
}

.social-link:nth-child(2):hover {
    background: var(--gradient-2);
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
}

.social-link:nth-child(3):hover {
    background: var(--gradient-3);
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 5px; opacity: 1; }
    100% { top: 15px; opacity: 0; }
}

/* Sections */
.section {
    padding: 5rem 2rem;
    position: relative;
    background: var(--bg-secondary);
}

.section:nth-child(even) {
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff0066, #00ddff, #00ff88);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.profile-card {
    text-align: center;
}

.profile-image {
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-secondary);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff0066, #00ddff, #00ff88, #ff0066);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 4s linear infinite;
    background-size: 300% 300%;
}

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

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item:nth-child(1) {
    border-color: rgba(255, 0, 102, 0.3);
}

.stat-item:nth-child(1):hover {
    border-color: #ff0066;
    box-shadow: 0 8px 24px rgba(255, 0, 102, 0.3);
}

.stat-item:nth-child(2) {
    border-color: rgba(0, 221, 255, 0.3);
}

.stat-item:nth-child(2):hover {
    border-color: #00ddff;
    box-shadow: 0 8px 24px rgba(0, 221, 255, 0.3);
}

.stat-item:nth-child(3) {
    border-color: rgba(0, 255, 136, 0.3);
}

.stat-item:nth-child(3):hover {
    border-color: #00ff88;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.3);
}

.stat-item h4 {
    font-size: 2rem;
    background: linear-gradient(135deg, #ff0066, #00ddff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    text-align: center;
}

.skill-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #ff0066, #00ddff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skill-level {
    background: var(--glass-bg);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff0066, #00ddff, #00ff88);
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #ff0066, #00ddff, #00ff88);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--bg-secondary);
    border-radius: 50%;
    border: 4px solid #ff0066;
    z-index: 1;
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.5);
}

.timeline-item:nth-child(even) .timeline-dot {
    border-color: #00ddff;
    box-shadow: 0 0 20px rgba(0, 221, 255, 0.5);
}

.timeline-item:nth-child(3n) .timeline-dot {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content .company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 15px 15px 0 0;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 0, 102, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: #ff0066;
    border: 1px solid rgba(255, 0, 102, 0.3);
}

.tag:nth-child(even) {
    background: rgba(0, 221, 255, 0.1);
    color: #00ddff;
    border-color: rgba(0, 221, 255, 0.3);
}

.tag:nth-child(3n) {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid var(--glass-border);
}

.project-link:nth-child(1):hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.project-link:nth-child(2):hover {
    background: var(--gradient-2);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

.contact-info h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid var(--glass-border);
    transition: all 0.3s ease;
}

.contact-item:nth-child(1) .contact-icon {
    color: #ff0066;
}

.contact-item:nth-child(1) .contact-icon:hover {
    background: var(--gradient-1);
    color: white;
    transform: scale(1.1);
}

.contact-item:nth-child(2) .contact-icon {
    color: #00ddff;
}

.contact-item:nth-child(2) .contact-icon:hover {
    background: var(--gradient-2);
    color: white;
    transform: scale(1.1);
}

.contact-item:nth-child(3) .contact-icon {
    color: #00ff88;
}

.contact-item:nth-child(3) .contact-icon:hover {
    background: var(--gradient-3);
    color: white;
    transform: scale(1.1);
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form-card h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.glass-input {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 0, 102, 0.2);
}

.glass-input::placeholder {
    color: var(--text-secondary);
}

textarea.glass-input {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        left: 0;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: auto !important;
    }

    .timeline-dot {
        left: 20px;
    }

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

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

    .name {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .hero-card {
        padding: 2rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* Project Detail Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gradient-1);
    color: white;
    transform: rotate(90deg);
    border-color: transparent;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image-section {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.modal-image-section img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--glass-border);
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-info-section h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff0066, #00ddff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.modal-tags .tag {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.modal-description h3,
.modal-features h3,
.modal-tech h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.modal-description h3::before,
.modal-features h3::before,
.modal-tech h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff0066, #00ddff);
    border-radius: 2px;
}

.modal-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.modal-features ul {
    list-style: none;
    padding: 0;
}

.modal-features ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.modal-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-tech {
    display: flex;
    flex-direction: column;
}

#modalTechnologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 0, 102, 0.3);
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-btn-primary {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.modal-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 102, 0.4);
}

/* Responsive Modal */
@media (max-width: 968px) {
    .modal-content {
        grid-template-columns: 1fr;
    }

    .modal-image-section {
        position: relative;
        top: 0;
    }

    .modal-container {
        max-height: 85vh;
    }
}

@media (max-width: 600px) {
    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .modal-info-section h2 {
        font-size: 1.5rem;
    }

    .modal-links {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
    }
}
/* Clickable Project Card */
.clickable-card {
    cursor: pointer;
    position: relative;
}

.clickable-card::after {
    content: 'Click for details';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-1);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.clickable-card:hover::after {
    opacity: 1;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(255, 0, 102, 0.3);
}

.clickable-card .project-links {
    position: relative;
    z-index: 2;
}

.clickable-card .project-link {
    position: relative;
    z-index: 3;
}
