/* CSS Custom Properties for Theme Switching */
:root {
    /* Dark Theme (Default) - Enhanced Professional Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111827;
    --bg-tertiary: #1f2937;
    --bg-quaternary: #374151;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    --text-accent: #60a5fa;
    --text-accent-hover: #3b82f6;
    --border-color: #374151;
    --border-light: #4b5563;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --card-bg: rgba(31, 41, 55, 0.8);
    --card-bg-hover: rgba(55, 65, 81, 0.9);
    --nav-bg: rgba(10, 10, 15, 0.95);
    --skill-bg: #374151;
    --skill-fill: #60a5fa;
    --button-bg: #3b82f6;
    --button-hover: #2563eb;
    --button-secondary: rgba(59, 130, 246, 0.1);
    --input-bg: #374151;
    --input-border: #4b5563;
    --input-focus: #60a5fa;
    --notification-success: #10b981;
    --notification-error: #ef4444;
    --notification-info: #3b82f6;
    --social-bg: rgba(96, 165, 250, 0.1);
    --social-color: #60a5fa;
    --social-hover-bg: #3b82f6;
    --social-hover-color: #ffffff;
    --tech-tag-bg: rgba(96, 165, 250, 0.1);
    --tech-tag-color: #60a5fa;
    --tech-tag-hover: rgba(96, 165, 250, 0.2);
}

/* Light Theme - Enhanced Professional Palette */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-quaternary: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-tertiary: #64748b;
    --text-accent: #2563eb;
    --text-accent-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-bg-hover: rgba(248, 250, 252, 0.95);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --skill-bg: #e2e8f0;
    --skill-fill: #2563eb;
    --button-bg: #2563eb;
    --button-hover: #1d4ed8;
    --button-secondary: rgba(37, 99, 235, 0.1);
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --input-focus: #2563eb;
    --notification-success: #059669;
    --notification-error: #dc2626;
    --notification-info: #2563eb;
    --social-bg: rgba(37, 99, 235, 0.05);
    --social-color: #2563eb;
    --social-hover-bg: #2563eb;
    --social-hover-color: #ffffff;
    --tech-tag-bg: rgba(37, 99, 235, 0.08);
    --tech-tag-color: #2563eb;
    --tech-tag-hover: rgba(37, 99, 235, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: 1.2em;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    position: relative;
    transition: color 0.3s ease;
    font-weight: 800;
    letter-spacing: -0.03em;
}

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

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--button-bg);
    color: var(--button-text, #ffffff);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--button-hover);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-secondary {
    background: var(--button-secondary);
    color: var(--text-accent);
    border: 2px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--text-accent);
    color: var(--button-text, #ffffff);
    transform: translateY(-2px);
    border-color: var(--text-accent);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-outline {
    background: transparent;
    color: var(--text-accent);
    border: 2px solid var(--text-accent);
}

.btn-outline:hover {
    background: var(--text-accent);
    color: var(--button-text, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-bg);
    box-shadow: 0 2px 20px var(--shadow-color);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-accent);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--text-accent);
    transform: scale(1.1);
}

.theme-icon {
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: absolute;
}

.sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

/* Mobile Menu Button */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: space-around;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-accent);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section - Enhanced Modern Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
    transition: color 0.3s ease;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.hero-social-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-right: 0.5rem;
}

.hero-social a {
    width: 48px;
    height: 48px;
    background: var(--social-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--social-color);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.hero-social a:hover {
    transform: translateY(-2px);
    background: var(--social-hover-bg);
    color: var(--social-hover-color);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--social-hover-bg);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-avatar {
    width: clamp(280px, 25vw, 350px);
    height: clamp(280px, 25vw, 350px);
    background: var(--gradient-primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-icon-color, #ffffff);
    font-size: clamp(6rem, 12vw, 8rem);
    box-shadow: 0 25px 50px var(--shadow-heavy);
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid var(--border-light);
}

/* Added: style for hero image within avatar */
.hero-photo {
    width: 85%;
    height: 85%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    box-shadow: 0 10px 30px var(--shadow-heavy);
}

.hero-avatar::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-secondary);
    border-radius: 35px;
    z-index: -1;
    opacity: 0.1;
}

.hero-avatar:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 35px 70px var(--shadow-heavy);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.stat:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-heavy);
    background: var(--card-bg-hover);
}

.stat:hover::before {
    opacity: 0.03;
}

.stat h3 {
    font-size: 2.8rem;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.stat p {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

/* Skills Section - Enhanced Design */
.skills {
    padding: 120px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px var(--shadow-heavy);
    background: var(--card-bg-hover);
}

.skill-category:hover::before {
    opacity: 0.02;
}

.skill-category h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    text-align: center;
    transition: color 0.3s ease;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.skill-item {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-size: 1rem;
}

.skill-percentage {
    font-size: 0.9rem;
    color: var(--text-accent);
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: var(--skill-bg);
    border-radius: 6px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    position: relative;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 6px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects Section - Enhanced Design */
.projects {
    padding: 120px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px var(--shadow-heavy);
    background: var(--card-bg-hover);
}

.project-card:hover::before {
    opacity: 0.03;
}

.project-image {
    height: 220px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--project-icon-color, #ffffff);
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.project-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: var(--tech-tag-bg);
    color: var(--tech-tag-color);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    letter-spacing: -0.01em;
}

.tech-tag:hover {
    background: var(--tech-tag-hover);
    transform: translateY(-1px);
}

.project-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.project-link {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.project-link:hover {
    color: var(--text-accent-hover);
    border-bottom-color: var(--text-accent-hover);
    transform: translateY(-1px);
}

/* Education Section */
.education {
    padding: 100px 0;
    background: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--text-accent);
    transition: background-color 0.3s ease;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--text-accent);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px var(--text-accent);
    transition: all 0.3s ease;
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.timeline-content h4 {
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
    transition: color 0.3s ease;
}

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

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--contact-icon-color, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--text-accent);
}

.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-accent);
}

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

/* Footer */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 3rem 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text p {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--social-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--social-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    background: var(--social-hover-bg);
    color: var(--social-hover-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 35px;
        height: 35px;
        margin-left: 0.5rem;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 60px var(--shadow-heavy);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        backdrop-filter: blur(20px);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }

    .hero-description {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-avatar {
        width: clamp(180px, 40vw, 220px);
        height: clamp(180px, 40vw, 220px);
        font-size: clamp(4rem, 10vw, 5.5rem);
    }

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

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 1rem;
    }

    .stat {
        padding: 2rem 1.5rem;
        min-width: 0;
        flex: 1;
    }

    .stat h3 {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .timeline-item {
        padding-left: 60px;
    }

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

    .timeline-marker {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 0 3rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }

    .section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
        margin-bottom: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-category {
        padding: 1.5rem 1rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat {
        padding: 1.5rem 1rem;
    }

    .stat h3 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }

    .hero-avatar {
        width: clamp(140px, 35vw, 180px);
        height: clamp(140px, 35vw, 180px);
        font-size: clamp(3.5rem, 8vw, 4.5rem);
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.3rem;
    }

    .tech-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .nav-menu {
        padding: 1.5rem 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    /* Interactive Lab Responsive Styles */
    .lab-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lab-card {
        padding: 1.5rem;
    }

    .lab-header i {
        font-size: 2rem;
    }

    .lab-header h3 {
        font-size: 1.3rem;
    }

    .terminal-body {
        min-height: 250px;
        padding: 0.8rem;
    }

    .terminal-input {
        font-size: 0.8rem;
    }

    .network-canvas {
        height: 250px;
    }

    .network-node {
        width: 60px;
        height: 60px;
    }

    .network-node i {
        font-size: 1.2rem;
    }

    .network-node span {
        font-size: 0.6rem;
    }

    .network-node.router {
        left: 280px;
    }

    .network-node.server {
        left: 420px;
    }

    .network-node.client#client1 {
        left: 200px;
    }

    .network-node.client#client2 {
        left: 360px;
    }

    .network-node.firewall {
        left: 40px;
    }

    .editor-controls {
        flex-direction: column;
        gap: 0.8rem;
    }

    .quiz-controls {
        flex-direction: column;
        gap: 0.8rem;
    }

    .network-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .options-container {
        max-width: 100%;
    }

    .option-btn {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    #question-text {
        font-size: 1.1rem;
    }

    .password-field {
        padding: 0.8rem 2.5rem 0.8rem 0.8rem;
        font-size: 0.9rem;
    }

    .toggle-visibility {
        right: 0.8rem;
    }

    #code-input {
        min-height: 150px;
        padding: 0.8rem;
        font-size: 0.8rem;
    }

    .tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(2px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-60px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(1px);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(60px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(1px);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
}

/* Stagger Animation */
.stagger-animation {
    animation-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--text-accent);
    }
    50% {
        box-shadow: 0 0 40px var(--text-accent), 0 0 60px var(--text-accent);
    }
}

.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

/* Typewriter Effect */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--text-accent);
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--notification-text, #ffffff);
    font-weight: 500;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--notification-success);
}

.notification.error {
    background: var(--notification-error);
}

.notification.info {
    background: var(--notification-info);
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Interactive Cybersecurity Lab Styles */
.cyber-lab {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.cyber-lab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0.02;
    pointer-events: none;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.lab-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.lab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-heavy);
}

.lab-card:hover::before {
    opacity: 0.02;
}

.lab-card.full-width {
    grid-column: 1 / -1;
}

.lab-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.lab-header i {
    font-size: 2.5rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
    display: block;
}

.lab-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.lab-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Terminal Simulator Styles */
.terminal-container {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #404040;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.terminal-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 1rem;
    background: #1a1a1a;
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.terminal-output {
    margin-bottom: 1rem;
}

.terminal-line {
    color: #00ff00;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.terminal-line.error {
    color: #ff6b6b;
}

.terminal-line.warning {
    color: #ffd93d;
}

.terminal-line.info {
    color: #74c0fc;
}

.terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: #00ff00;
    margin-right: 0.5rem;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
    flex: 1;
}

.terminal-input::placeholder {
    color: #666666;
}

/* Code Editor Styles */
.code-editor-container {
    position: relative;
    z-index: 2;
}

.editor-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    background: var(--text-accent);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.code-editor {
    background: var(--bg-tertiary);
    border-radius: 0 0 8px 8px;
    padding: 1rem;
}

#code-input {
    width: 100%;
    min-height: 200px;
    background: var(--bg-quaternary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

#code-input:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 2px var(--input-focus);
}

.editor-controls {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.code-output {
    margin-top: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.output-header {
    background: var(--bg-quaternary);
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.output-content {
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-height: 60px;
    white-space: pre-wrap;
}

/* Password Analyzer Styles */
.password-analyzer {
    position: relative;
    z-index: 2;
}

.password-input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.password-field {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.password-field:focus {
    border-color: var(--text-accent);
    box-shadow: 0 0 0 3px var(--input-focus);
}

.toggle-visibility {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-visibility:hover {
    color: var(--text-accent);
}

.strength-meter {
    margin-bottom: 1.5rem;
}

.strength-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--strength-width, 0%);
    background: var(--strength-color, #e74c3c);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-text {
    font-weight: 600;
    color: var(--strength-color, var(--text-secondary));
    font-size: 0.9rem;
}

.password-feedback {
    margin-bottom: 1.5rem;
}

.feedback-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feedback-item i {
    color: var(--text-accent);
}

.feedback-item.success i {
    color: #27ae60;
}

.feedback-item.warning i {
    color: #f39c12;
}

.feedback-item.error i {
    color: #e74c3c;
}

.password-tips {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.password-tips h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.password-tips ul {
    list-style: none;
    padding: 0;
}

.password-tips li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.password-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--text-accent);
    font-weight: bold;
}

/* Quiz Styles */
.quiz-container {
    position: relative;
    z-index: 2;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.quiz-progress {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.quiz-score {
    font-weight: 600;
    color: var(--text-accent);
    font-size: 1.1rem;
}

.quiz-content {
    margin-bottom: 2rem;
}

.question-container {
    text-align: center;
}

#question-text {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

.options-container {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.option-btn {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--text-accent);
    background: var(--card-bg-hover);
}

.option-btn.selected {
    border-color: var(--text-accent);
    background: var(--input-focus);
}

.option-btn.correct {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.option-btn.incorrect {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.quiz-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Network Visualization Styles */
.network-container {
    position: relative;
    z-index: 2;
}

.network-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.network-status {
    font-weight: 600;
    font-size: 1.1rem;
}

.status-indicator {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--bg-quaternary);
    border: 1px solid var(--border-color);
}

.network-canvas {
    position: relative;
    height: 300px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.network-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--shadow-light);
}

.network-node:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px var(--shadow-heavy);
}

.network-node i {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-bottom: 0.2rem;
}

.network-node span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.network-node.router {
    top: 50px;
    left: 350px;
}

.network-node.server {
    top: 50px;
    left: 550px;
}

.network-node.client {
    top: 150px;
}

.network-node.client#client1 {
    left: 250px;
}

.network-node.client#client2 {
    left: 450px;
}

.network-node.firewall {
    top: 50px;
    left: 50px;
}

.network-node.compromised {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    animation: pulse-red 1s infinite;
}

.network-node.protected {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

@keyframes pulse-red {
    0%, 100% {
        box-shadow: 0 4px 12px var(--shadow-light);
    }
    50% {
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    }
}

.network-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection {
    stroke: var(--border-color);
    stroke-width: 2;
    transition: all 0.3s ease;
}

.connection.active {
    stroke: var(--text-accent);
    stroke-width: 3;
    animation: data-flow 2s infinite;
}

.connection.compromised {
    stroke: #e74c3c;
    stroke-width: 3;
    animation: attack-flow 1s infinite;
}

@keyframes data-flow {
    0%, 100% {
        stroke-dasharray: 0, 10;
    }
    50% {
        stroke-dasharray: 5, 5;
    }
}

@keyframes attack-flow {
    0%, 100% {
        stroke-dasharray: 0, 8;
    }
    50% {
        stroke-dasharray: 4, 4;
    }
}

.network-logs {
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    max-height: 200px;
}

.log-header {
    background: var(--bg-quaternary);
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.log-content {
    padding: 1rem;
    max-height: 150px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.log-entry {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.log-entry.warning {
    color: #f39c12;
}

.log-entry.error {
    color: #e74c3c;
}

.log-entry.success {
    color: #27ae60;
}