/* CSS Variables for Themes */
:root {
    /* Professional Dark Theme */
    --bg-primary: #0f1419;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #252d3d;
    --text-primary: #ffffff;
    --text-secondary: #e6e8eb;
    --text-muted: #9ca3af;
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --accent-tertiary: #0ea5e9;
    --border-color: #374151;
    --shadow-color: rgba(59, 130, 246, 0.15);
    --glow-color: #3b82f6;
    --card-bg: rgba(37, 45, 61, 0.95);
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1e40af);
    --gradient-secondary: linear-gradient(135deg, #1e40af, #0ea5e9);
    --gradient-tertiary: linear-gradient(135deg, #6366f1, #0ea5e9);
    --professional-blue: #3b82f6;
    --professional-navy: #1e40af;
    --professional-cyan: #0ea5e9;
    --success-color: #10b981;
    --neon-blue: #00d4ff;
}

/* Light Theme */
.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #1e40af;
    --accent-tertiary: #0ea5e9;
    --border-color: #e2e8f0;
    --shadow-color: rgba(59, 130, 246, 0.1);
    --glow-color: #3b82f6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1e40af);
    --gradient-secondary: linear-gradient(135deg, #1e40af, #0ea5e9);
    --professional-blue: #3b82f6;
    --professional-navy: #1e40af;
    --professional-cyan: #0ea5e9;
    --success-color: #10b981;
    --neon-blue: #3b82f6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

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

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

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

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

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--border-color);
    margin: 20px 0;
    border-radius: 2px;
    overflow: hidden;
}

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

.loading-percentage {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 10px;
}

/* Professional Text Effect */
.glitch-text {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 20, 25, 0.98);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    border-bottom: 1px solid var(--accent-primary);
}

.light-theme .navbar {
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.light-theme .navbar.scrolled {
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
    border-bottom: 1px solid var(--accent-primary);
}

.light-theme .nav-link {
    color: var(--text-secondary);
}

.light-theme .navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.light-theme .nav-logo .glitch-text {
    color: var(--text-primary);
}

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

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 15%;
    width: 2px;
    height: 80%;
    background: linear-gradient(to bottom, transparent, #00d4ff, transparent);
    transform: translateY(-50%) rotate(8deg);
    opacity: 0;
    animation: lightning1 2s infinite;
    box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff;
}

.nav-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20%;
    width: 1.5px;
    height: 70%;
    background: linear-gradient(to bottom, transparent, #3b82f6, transparent);
    transform: translateY(-50%) rotate(-12deg);
    opacity: 0;
    animation: lightning2 2.3s infinite;
    animation-delay: 0.7s;
    box-shadow: 0 0 8px #3b82f6, 0 0 16px #3b82f6;
}

.nav-logo .glitch-text::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 1.5px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #0ea5e9, transparent);
    transform: rotate(-5deg);
    opacity: 0;
    animation: lightning3 1.8s infinite;
    animation-delay: 1.2s;
    box-shadow: 0 0 6px #0ea5e9, 0 0 12px #0ea5e9;
    z-index: 1;
}

.nav-logo .glitch-text::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 25%;
    width: 1px;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #6366f1, transparent);
    transform: rotate(15deg);
    opacity: 0;
    animation: lightning4 2.1s infinite;
    animation-delay: 0.3s;
    box-shadow: 0 0 5px #6366f1, 0 0 10px #6366f1;
    z-index: 1;
}

.light-theme .nav-logo::before {
    background: linear-gradient(to bottom, transparent, #1e3a8a, transparent);
    box-shadow: 0 0 12px #1e40af, 0 0 24px #1e40af, 0 0 8px rgba(30, 64, 175, 0.8);
}

.light-theme .nav-logo::after {
    background: linear-gradient(to bottom, transparent, #0ea5e9, transparent);
    box-shadow: 0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 6px rgba(14, 165, 233, 0.8);
}

.light-theme .nav-logo .glitch-text::before {
    background: linear-gradient(to bottom, transparent, #0c4a6e, transparent);
    box-shadow: 0 0 8px #0c4a6e, 0 0 16px #0c4a6e, 0 0 5px rgba(12, 74, 110, 0.8);
}

.light-theme .nav-logo .glitch-text::after {
    background: linear-gradient(to bottom, transparent, #4338ca, transparent);
    box-shadow: 0 0 6px #4338ca, 0 0 12px #4338ca, 0 0 4px rgba(67, 56, 202, 0.8);
}

@keyframes lightning1 {
    0%, 90%, 100% {
        opacity: 0;
        transform: rotate(15deg) scaleY(1);
        height: 25px;
    }
    2% {
        opacity: 1;
        transform: rotate(12deg) scaleY(1.5);
        height: 35px;
    }
    4% {
        opacity: 0.7;
        transform: rotate(18deg) scaleY(1.2);
        height: 30px;
    }
    6% {
        opacity: 0;
        transform: rotate(15deg) scaleY(1);
        height: 25px;
    }
    12% {
        opacity: 1;
        transform: rotate(10deg) scaleY(1.8);
        height: 40px;
    }
    14% {
        opacity: 0.5;
        transform: rotate(20deg) scaleY(1);
        height: 25px;
    }
    16% {
        opacity: 0;
        transform: rotate(15deg) scaleY(1);
        height: 25px;
    }
}

@keyframes lightning2 {
    0%, 85%, 100% {
        opacity: 0;
        transform: rotate(-20deg) scaleY(1);
        height: 20px;
    }
    3% {
        opacity: 0.8;
        transform: rotate(-25deg) scaleY(1.6);
        height: 32px;
    }
    5% {
        opacity: 1;
        transform: rotate(-15deg) scaleY(1.3);
        height: 26px;
    }
    7% {
        opacity: 0.4;
        transform: rotate(-22deg) scaleY(1);
        height: 20px;
    }
    15% {
        opacity: 0.9;
        transform: rotate(-18deg) scaleY(1.7);
        height: 34px;
    }
    17% {
        opacity: 0.3;
        transform: rotate(-20deg) scaleY(1);
        height: 20px;
    }
}

@keyframes lightning3 {
    0%, 88%, 100% {
        opacity: 0;
        transform: rotate(-5deg) scaleY(1);
        height: 18px;
    }
    4% {
        opacity: 0.9;
        transform: rotate(-8deg) scaleY(1.4);
        height: 28px;
    }
    6% {
        opacity: 0.6;
        transform: rotate(-2deg) scaleY(1.1);
        height: 22px;
    }
    8% {
        opacity: 0;
        transform: rotate(-5deg) scaleY(1);
        height: 18px;
    }
    18% {
        opacity: 1;
        transform: rotate(-10deg) scaleY(1.6);
        height: 32px;
    }
    20% {
        opacity: 0.4;
        transform: rotate(-5deg) scaleY(1);
        height: 18px;
    }
}

@keyframes lightning4 {
    0%, 92%, 100% {
        opacity: 0;
        transform: rotate(15deg) scaleY(1);
        height: 15px;
    }
    1% {
        opacity: 0.7;
        transform: rotate(18deg) scaleY(1.3);
        height: 24px;
    }
    3% {
        opacity: 1;
        transform: rotate(12deg) scaleY(1.5);
        height: 28px;
    }
    5% {
        opacity: 0.3;
        transform: rotate(15deg) scaleY(1);
        height: 15px;
    }
    22% {
        opacity: 0.8;
        transform: rotate(20deg) scaleY(1.4);
        height: 26px;
    }
    24% {
        opacity: 0;
        transform: rotate(15deg) scaleY(1);
        height: 15px;
    }
}

.nav-logo .glitch-text {
    position: relative;
    z-index: 2;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--glow-color);
}

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

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

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.theme-toggle:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    box-shadow: 0 0 10px var(--shadow-color);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 10rem 0 6rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.03) 0%, 
        transparent 50%, 
        rgba(0, 212, 255, 0.03) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Enhanced Hero Elements */

.hero-subtitle-container {
    margin-bottom: 1.5rem;
}

.tech-stack-preview {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.tech-item {
    background: var(--card-bg);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
}

.hero-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

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

.avatar-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent 30%, var(--text-primary) 50%, transparent 70%);
    opacity: 0.3;
    animation: scan 3s linear infinite;
}

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


.scroll-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-family: 'Orbitron', monospace;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease;
}

.matrix-rain.active {
    opacity: 1;
}

.matrix-rain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 212, 255, 0.1) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(0, 212, 255, 0.1) 100%);
    animation: matrix-glow 8s ease-in-out infinite alternate;
}

@keyframes matrix-glow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

@keyframes matrix-fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 12s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    width: 100%;
    padding: 3rem 0;
}

.hero-text {
    padding-left: 2rem;
}

@media (max-width: 1024px) {
    .hero-content {
        gap: 6rem;
        padding: 2.5rem 0;
    }
    
    .hero-text {
        padding-left: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-text {
        padding-left: 0;
        padding-right: 0;
        order: 2;
    }
    
    .hero-avatar {
        order: 1;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 20px var(--shadow-color);
    border: 1px solid var(--accent-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-tertiary {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.btn-primary:hover {
    box-shadow: 0 15px 35px var(--shadow-color);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 12px 25px var(--shadow-color);
    transform: translateY(-2px);
}

.btn-tertiary:hover {
    background: rgba(30, 64, 175, 0.1);
    box-shadow: 0 12px 25px var(--shadow-color);
    transform: translateY(-2px);
}

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

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

.hero-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--text-primary);
    box-shadow: 0 0 30px var(--shadow-color);
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    animation: pulse 2s infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}


/* Section Styles */
section {
    padding: 10rem 0;
}

@media (max-width: 1024px) {
    section {
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 5rem 0;
    }
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 900;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
}

/* About Section */
.about {
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8rem;
    align-items: start;
    padding: 3rem 0;
}

@media (max-width: 1024px) {
    .about-content {
        gap: 6rem;
        padding: 2.5rem 0;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 2rem 0;
    }
}

.about-main {
    width: 100%;
}

.about-subtitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.expertise-areas {
    margin: 3rem 0;
}

.expertise-areas h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.expertise-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-tertiary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.expertise-item:hover::before {
    transform: scaleX(1);
}

.expertise-item:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.expertise-item i {
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 0.5rem;
}

.expertise-item h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.expertise-item p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.certifications {
    margin: 3rem 0;
}

.certifications h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.cert-item i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-stack h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-category h5 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    animation: pulse 2s infinite;
}

.about-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    text-shadow: 0 0 10px var(--glow-color);
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1rem 0;
    }
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--neon-blue);
}

.project-header h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    text-shadow: 0 0 5px var(--glow-color);
}

.project-image {
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-metrics {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.metric-item {
    background: var(--bg-tertiary);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    min-width: 100px;
}

.metric-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    font-family: 'Orbitron', monospace;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.skill-details {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skills Section */
.skills {
    background: var(--bg-secondary);
}

.skills-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .skills-overview {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2.5rem;
        margin-bottom: 4rem;
    }
}

.skills-intro h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.skills-intro p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.skills-metrics {
    display: flex;
    gap: 2rem;
}

.metric {
    text-align: center;
}

.metric-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    display: block;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.skills-content {
    display: grid;
    gap: 3rem;
}

.skills-categories-detailed {
    display: block;
    width: 100%;
    opacity: 1;
    visibility: visible;
}

.skills-category {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    margin-bottom: 1rem;
    position: relative;
    display: block;
    opacity: 1;
    visibility: visible;
}

.skills-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 16px 16px 0 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-header i {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.category-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
    opacity: 1;
    visibility: visible;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 212, 255, 0.3);
    border-color: var(--neon-blue);
    background: var(--bg-secondary);
}

.light-theme .skill-item:hover {
    background: var(--bg-primary);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.2);
}

.skill-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.skill-info {
    flex: 1;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1s ease;
    width: 0%;
}

.skill-level {
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.skills-certifications {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.skills-certifications h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

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

.cert-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--text-primary);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.cert-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
}

.cert-info h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

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

.cert-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-intro {
    text-align: center;
    margin-bottom: 5rem;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .contact-intro {
        margin-bottom: 4rem;
        padding: 0 1rem;
    }
}

.contact-intro h3 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.contact-intro p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
    padding: 3rem 0;
}

@media (max-width: 1024px) {
    .contact-content {
        gap: 6rem;
        padding: 2.5rem 0;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 2rem 0;
    }
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-header h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.response-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1rem;
}

.contact-method:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
    transform: translateY(-3px);
}

.contact-method.primary {
    border-color: var(--text-primary);
    background: rgba(0, 212, 255, 0.05);
}

.method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 10px;
    color: white;
    font-size: 1.3rem;
}

.method-info {
    flex: 1;
}

.method-info h5 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.method-info span {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.3rem;
}

.method-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.method-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.active {
    background: var(--text-primary);
    animation: pulse 2s infinite;
}

.method-status span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.availability-info {
    margin-bottom: 3rem;
}

.availability-info h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.status-indicator.online {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    animation: pulse 2s infinite;
}

.status-text {
    flex: 1;
}

.status-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
}

.status-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.timezone-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.expertise-quick h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.form-header h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    background: rgba(26, 26, 46, 0.9);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.form-group input:focus + .input-border,
.form-group textarea:focus + .input-border,
.form-group select:focus + .input-border {
    width: 100%;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: var(--text-primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.submit-btn {
    position: relative;
    overflow: hidden;
}

.btn-text,
.btn-loading {
    transition: opacity 0.3s ease;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 4rem 0;
    border-top: 2px solid var(--neon-blue);
    position: relative;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0;
    }
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

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

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }
}

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

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

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .avatar-container {
        width: 200px;
        height: 200px;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
    
    .hero-text {
        padding: 0 0.5rem;
    }
    
    .hero-description {
        padding: 0 0.5rem;
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        padding: 0 0.5rem;
    }
    
    .section-title {
        padding: 0 1.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* Selection */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Floating Theme Toggle */
.floating-theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
    background: var(--gradient-primary);
    color: white;
}

.floating-theme-toggle:active {
    transform: translateY(-1px) scale(1.02);
}

@media (max-width: 768px) {
    .floating-theme-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Enhanced Matrix Rain Styles */
.matrix-rain {
    opacity: 0.8;
}

.matrix-rain.active {
    opacity: 1;
}

.matrix-column {
    filter: drop-shadow(0 0 3px #00d4ff);
}

/* Smooth transitions for theme switching */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
