/* ===========================
   GLOBAL STYLES & VARIABLES
   =========================== */

:root {
    /* Tech Theme (Default) */
    --primary-color: #00ffff;
    --secondary-color: #ff00ff;
    --accent-color: #00ff88;
    --bg-primary: #0a0e27;
    --bg-secondary: #151b3d;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
    --shadow-glow: 0 0 20px rgba(0, 255, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

/* Night Sky Theme */
body[data-theme="night-sky"] {
    --primary-color: #ffd700;
    --secondary-color: #9370db;
    --accent-color: #4169e1;
    --bg-primary: #000814;
    --bg-secondary: #001d3d;
    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
}

/* Water Theme */
body[data-theme="water"] {
    --primary-color: #00bfff;
    --secondary-color: #1e90ff;
    --accent-color: #48d1cc;
    --bg-primary: #001f3f;
    --bg-secondary: #003366;
    --text-primary: #e0f7ff;
    --text-secondary: #87ceeb;
}

/* Pastel Theme */
body[data-theme="pastel"] {
    --primary-color: #a8e6cf;
    --secondary-color: #87ceeb;
    --accent-color: #b8f3d8;
    --bg-primary: #1e2d2f;
    --bg-secondary: #2d3e40;
    --text-primary: #e8f5e9;
    --text-secondary: #c8e6c9;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===========================
   ANIMATED BACKGROUND
   =========================== */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px),
        linear-gradient(0deg, var(--primary-color) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.03;
    animation: circuitScroll 20s linear infinite;
}

@keyframes circuitScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, var(--primary-color) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, var(--secondary-color) 0%, transparent 50%);
    opacity: 0.05;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.05; }
    50% { opacity: 0.1; }
}

/* ===========================
   THEME TOGGLE
   =========================== */

.theme-toggle {
    position: fixed;
    top: 50%;
    right: var(--spacing-md);
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: var(--bg-secondary);
    padding: var(--spacing-sm);
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--bg-primary);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    background: var(--primary-color);
    color: var(--bg-primary);
}

.theme-btn.active {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: var(--spacing-xs) var(--spacing-md);
    box-shadow: var(--shadow-glow);
}

.nav-brand .brand-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandGlow 3s ease-in-out infinite;
}

@keyframes brandGlow {
    0%, 100% { filter: drop-shadow(0 0 5px var(--primary-color)); }
    50% { filter: drop-shadow(0 0 15px var(--primary-color)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

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

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

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 
        0 0 30px var(--primary-color),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
    animation: imageFloat 6s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0) rotateZ(0deg); }
    50% { transform: translateY(-20px) rotateZ(2deg); }
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-frame:hover .hero-image {
    transform: scale(1.1);
}

.scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan 3s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.corner-accent {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    z-index: 2;
}

.corner-tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.corner-tr { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.corner-br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.hero-text {
    animation: fadeInUp 1s ease;
}

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

.glitch-wrapper {
    margin-bottom: var(--spacing-sm);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
    animation: glitchTitle 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    color: var(--primary-color);
    animation: glitchBefore 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    color: var(--secondary-color);
    animation: glitchAfter 2s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitchTitle {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitchBefore {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

@keyframes glitchAfter {
    0% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
    100% { transform: translate(0); }
}

.typing-container {
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 600;
    min-height: 2.5rem;
}

.typing-text {
    border-right: 2px solid var(--primary-color);
}

.cursor {
    animation: blink 0.7s infinite;
}

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

.hero-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button span,
.cta-button i {
    position: relative;
    z-index: 1;
}

.cta-button.primary {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: 2px solid var(--primary-color);
}

.cta-button.primary:hover {
    box-shadow: 0 0 30px var(--primary-color);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left var(--transition-normal);
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.social-icon:hover::before {
    left: 0;
}

.social-icon:hover i {
    color: var(--bg-primary);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

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

/* ===========================
   SECTION STYLES
   =========================== */

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    position: relative;
    display: inline-block;
}

.title-number {
    color: var(--primary-color);
    margin-right: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

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

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

.stat-item {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

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

.tech-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--bg-secondary);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.orbit-1 {
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    animation: rotate 10s linear infinite;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    margin: -125px 0 0 -125px;
    animation: rotate 15s linear infinite reverse;
}

.orbit-3 {
    width: 350px;
    height: 350px;
    margin: -175px 0 0 -175px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.orbit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    transform: translate(-50%, -50%);
    animation: counterRotate var(--delay) linear infinite reverse, pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px var(--accent-color);
}

@keyframes counterRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 15px var(--accent-color); }
    50% { box-shadow: 0 0 30px var(--accent-color); }
}

.electron {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    z-index: 5;
    animation: electronGlow 1.5s ease-in-out infinite;
}

@keyframes electronGlow {
    0%, 100% { 
        box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
        transform: scale(1.2);
    }
}

/* ===========================
   EXPERIENCE SECTION
   =========================== */

.timeline {
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInRight 0.6s ease forwards;
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.4s; }

.timeline-icon {
    position: absolute;
    left: -38px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1));
    transition: width var(--transition-slow);
}

.timeline-content:hover::before {
    width: 100%;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-card);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.timeline-company a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.timeline-company a:hover {
    color: var(--accent-color);
    text-decoration: underline;
    text-shadow: 0 0 10px var(--primary-color);
}

.timeline-description {
    list-style: none;
    margin-bottom: var(--spacing-sm);
}

.timeline-description li {
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: var(--text-secondary);
}

.timeline-description li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
}

/* ===========================
   SKILLS SECTION
   =========================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.skill-category {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.skill-item {
    margin-bottom: var(--spacing-sm);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
}

.skill-level {
    color: var(--primary-color);
    font-weight: 700;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    width: var(--progress);
    animation: fillBar 1.5s ease-out;
    position: relative;
}

@keyframes fillBar {
    from { width: 0; }
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: shine 2s infinite;
}

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

.tech-stack {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.tech-stack-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.tech-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    white-space: nowrap;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    transition: transform var(--transition-fast);
    z-index: 10;
}

.tech-icon:hover::before {
    transform: translateX(-50%) scale(1);
}

.tech-icon:hover {
    transform: translateY(-10px) rotate(5deg);
    box-shadow: var(--shadow-glow);
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* ===========================
   CERTIFICATIONS SECTION
   =========================== */

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.cert-card {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.cert-card:hover::before {
    top: 100%;
}

.cert-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.cert-badge {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: rotateBadge 3s linear infinite;
}

@keyframes rotateBadge {
    0%, 90%, 100% { transform: rotate(0deg); }
    95% { transform: rotate(10deg); }
}

.cert-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-issuer {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.cert-status {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.cert-status.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
}

.contact-method i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-method h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

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

.terminal-window {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.terminal-header {
    background: var(--bg-secondary);
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--primary-color);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.close { background: #ff5f56; }
.terminal-button.minimize { background: #ffbd2e; }
.terminal-button.maximize { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.terminal-body {
    padding: var(--spacing-md);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.terminal-body p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.prompt {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.output {
    color: var(--text-primary);
}

.cursor-blink {
    animation: blink 0.7s infinite;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--primary-color);
    padding: var(--spacing-md) 0;
}

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

.footer-text {
    color: var(--text-secondary);
}

.heart {
    color: #ff0000;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(0.9); }
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

/* ===========================
   INTERACTIVE SHOWCASE
   =========================== */

.interactive-showcase {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 2px solid var(--primary-color);
}

.showcase-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.showcase-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.demo-container {
    padding: var(--spacing-md);
}

.demo-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.demo-frame {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: var(--spacing-md);
    min-height: 400px;
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
}

.demo-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

/* Mini Website Styles */
.mini-website {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mini-nav {
    background: rgba(0, 255, 255, 0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.mini-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.mini-menu {
    display: flex;
    gap: 1.5rem;
}

.mini-link {
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition-fast);
    font-weight: 500;
}

.mini-link:hover,
.mini-link.active {
    color: var(--primary-color);
}

.mini-content {
    flex: 1;
    position: relative;
    padding: 2rem;
}

.mini-page {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.mini-page.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mini-page h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.mini-page p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.mini-btn {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mini-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

.mini-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mini-card {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.mini-progress {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-bar {
    background: rgba(0, 255, 255, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
}

.mini-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--width);
    background: var(--primary-color);
    opacity: 0.3;
    transition: width 1s ease;
}

.mini-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-input {
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    padding: 0.8rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif;
}

.mini-submit {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mini-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Game Canvas Styles */
#gameCanvas {
    width: 100%;
    height: 350px;
    background: #000;
    border-radius: 8px;
    display: block;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.game-info {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
}

.game-info strong {
    color: var(--primary-color);
}

.game-btn {
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* Automation Builder Styles */
.automation-builder {
    display: flex;
    gap: 1rem;
    height: 300px;
}

.automation-sidebar {
    width: 200px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--primary-color);
}

.automation-sidebar h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.action-item {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-color);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: grab;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.action-item:hover {
    transform: translateX(5px);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.action-item:active {
    cursor: grabbing;
}

.automation-canvas {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    overflow-y: auto;
}

.canvas-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.5;
}

.canvas-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.automation-canvas.has-items .canvas-placeholder {
    display: none;
}

.dropped-action {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: dropIn 0.3s ease;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dropped-action .action-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
}

.dropped-action .remove-action {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    color: #ff0000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.dropped-action .remove-action:hover {
    background: #ff0000;
    color: white;
}

.automation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

.auto-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auto-btn.clear {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 2px solid var(--text-secondary);
}

.auto-btn.clear:hover {
    background: rgba(255, 255, 255, 0.2);
}

.auto-btn.run {
    background: var(--accent-color);
    color: var(--bg-primary);
}

.auto-btn.run:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-container {
        margin: 0 auto var(--spacing-md);
    }

    .image-frame {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .tech-orbit {
        width: 300px;
        height: 300px;
    }

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

    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-md);
        border-left: 2px solid var(--primary-color);
        transition: right var(--transition-normal);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        right: 5px;
        padding: 4px;
        gap: 4px;
    }

    .theme-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

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

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .image-frame {
        width: 250px;
        height: 250px;
        margin-top: 60px;
    }

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

    .tech-orbit {
        width: 250px;
        height: 250px;
    }

    .orbit-center {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }

    /* Interactive Showcase Mobile */
    .interactive-showcase {
        padding: var(--spacing-md);
    }

    .showcase-title {
        font-size: 1.8rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: -20px;
    }

    .carousel-btn.next {
        right: -20px;
    }

    .demo-title {
        font-size: 1.4rem;
    }

    .demo-frame {
        min-height: 400px;
        padding: var(--spacing-sm);
    }

    /* Mini Website Mobile */
    .mini-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.8rem;
    }

    .mini-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .mini-content {
        padding: 1rem;
    }

    .mini-page {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .mini-cards {
        flex-direction: column;
    }

    /* Game Mobile */
    #gameCanvas {
        height: 300px;
    }

    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .game-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    /* Automation Mobile */
    .automation-builder {
        flex-direction: column;
        height: auto;
    }

    .automation-sidebar {
        width: 100%;
        height: auto;
        max-height: 150px;
        overflow-y: auto;
    }

    .action-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    .automation-canvas {
        min-height: 200px;
    }

    .automation-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .tech-icons {
        gap: var(--spacing-sm);
    }

    .tech-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    /* Interactive Showcase - Extra Small Screens */
    .showcase-title {
        font-size: 1.5rem;
    }

    .showcase-subtitle {
        font-size: 0.95rem;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: -17px;
    }

    .carousel-btn.next {
        right: -17px;
    }

    .demo-title {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .demo-frame {
        min-height: 350px;
        padding: 0.5rem;
    }

    .demo-description {
        font-size: 0.9rem;
    }

    /* Mini Website - Extra Small */
    .mini-logo {
        font-size: 1rem;
    }

    .mini-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .mini-page h2 {
        font-size: 1.2rem;
    }

    .mini-page p {
        font-size: 0.9rem;
    }

    .mini-btn,
    .mini-submit {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Game - Extra Small */
    #gameCanvas {
        height: 250px;
    }

    .game-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Automation - Extra Small */
    .automation-sidebar h5 {
        font-size: 0.9rem;
    }

    .action-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .dropped-action {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .auto-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ===========================
   CUSTOM SCROLLBAR
   =========================== */

::-webkit-scrollbar {
    width: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===========================
   SELECTION
   =========================== */

::selection {
    background: var(--primary-color);
    color: var(--bg-primary);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--bg-primary);
}
