:root {
    /* Dark Theme (Default) */
    --obsidian: #0a0a0f;
    --void-black: #050507;
    --shadow-dark: #101018;
    --deep-charcoal: #1a1a24;
    --blood-crimson: #c91a25;
    --neon-red: #ff003c;
    --ghost-blue: #0ea5e9;
    --cyber-teal: #06d6a0;
    --ash-gray: #a0a0b0;
    --fog-white: #e0e0e8;
    --terminal-green: #00ff88;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
    --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.7);
    
    /* Light Theme Variables */
    --bg-primary: var(--obsidian);
    --bg-secondary: var(--void-black);
    --text-primary: var(--fog-white);
    --text-secondary: var(--ash-gray);
    --accent-primary: var(--blood-crimson);
    --accent-secondary: var(--terminal-green);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --hr-color: rgba(255, 255, 255, 0.05);
    --header-bg: rgba(0, 0, 0, 0.95);
}

[data-theme="light"] {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #000000;
    --text-secondary: #6c757d;
    --accent-primary: #007bff;
    --accent-secondary: #00a86b;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --hr-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    
    /* Override original colors */
    --obsidian: #ffffff;
    --void-black: #f8f9fa;
    --fog-white: #000000;
    --ash-gray: #6c757d;
    --blood-crimson: #007bff;
    --terminal-green: #00a86b;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-secondary);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
    user-select: none;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(109, 40, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 26, 37, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(circle at 20% 50%, rgba(109, 40, 217, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(201, 26, 37, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(14, 165, 233, 0.03) 0%, transparent 50%);
}

/* Kurdish Font */
[data-lang="ku"] body,
[data-lang="ku"] .hero-description,
[data-lang="ku"] .status-label,
[data-lang="ku"] .work,
[data-lang="ku"] .footer-text,
[data-lang="ku"] h1,
[data-lang="ku"] h3,
[data-lang="ku"] .nav-links a,
[data-lang="ku"] .logo,
[data-lang="ku"] .lang-btn {
    font-family: 'Rabar 021', sans-serif !important;
}

/* Terminal keeps its font for code */
[data-lang="ku"] .terminal,
[data-lang="ku"] .terminal-line,
[data-lang="ku"] .terminal-title,
[data-lang="ku"] .terminal-body,
[data-lang="ku"] .prompt,
[data-lang="ku"] .command,
[data-lang="ku"] .output {
    font-family: 'JetBrains Mono', monospace !important;
}

/* RTL for Kurdish */
[data-lang="ku"] {
    direction: rtl;
}

[data-lang="ku"] .terminal-container {
    margin-left: auto;
    margin-right: 0;
}

[data-lang="ku"] .terminal-line {
    direction: ltr;
    text-align: left;
}

[data-lang="ku"] .icons {
    direction: ltr;
}

[data-lang="ku"] .nav-links {
    direction: rtl;
}

[data-lang="ku"] .navbar {
    direction: rtl;
}

[data-lang="ku"] .header-controls {
    direction: ltr;
}

h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color 0.5s ease;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-slow);
    padding: 15px 0;
}

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

/* Header Controls Container */
.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    margin-right: 20px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 5px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.lang-btn {
    padding: 6px 15px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    min-width: 45px;
}

.lang-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

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

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-primary);
}

.theme-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.theme-icon.light {
    opacity: 0;
    transform: rotate(-90deg);
}

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

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

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

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.logo::before {
    content: '</> ';
    color: var(--accent-primary);
    margin-right: 5px;
}

.logo::after {
    content: '_';
    animation: blink 1s infinite;
    color: var(--accent-secondary);
}

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

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

[data-lang="ku"] .nav-links li {
    margin-left: 0;
    margin-right: 40px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

[data-lang="ku"] .nav-links a::before {
    left: auto;
    right: 0;
}

.nav-links a:hover {
    color: var(--text-primary);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 1001;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5,5,7,0.9) 0%, rgba(10,10,15,0.7) 100%);
    z-index: -1;
    opacity: 0.8;
}

[data-theme="light"] .hero::before {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
}

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

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 30px 0 40px;
    color: var(--text-secondary);
    line-height: 1.8;
    transition: color 0.5s ease;
}

/* Active Status */
.active-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.green-indicator {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
}

.status-label {
    color: var(--text-secondary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.5s ease;
}

.work {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.work:hover {
    color: var(--accent-primary);
}

/* Terminal Container */
.terminal-container {
    width: 100%;
    max-width: 600px;
    transition: all 0.5s ease;
}

[data-lang="ku"] .terminal-container {
    margin-left: auto;
}

/* Terminal */
.terminal {
    background-color: var(--void-black);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 25px;
    margin-top: 40px;
    box-shadow: var(--shadow-deep);
    position: relative;
    transition: all 0.5s ease;
    width: 100%;
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 60, 0.03), transparent);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

[data-theme="light"] .terminal {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

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

.dot-red { background-color: var(--blood-crimson); }
.dot-yellow { background-color: #fbbf24; }
.dot-green { background-color: var(--terminal-green); }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    color: var(--ash-gray);
    font-size: 0.9rem;
}

.terminal-line {
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    direction: ltr !important;
    text-align: left !important;
}

.prompt {
    color: var(--terminal-green);
    margin-right: 10px;
    white-space: nowrap;
    direction: ltr !important;
}

.command {
    color: var(--ghost-blue);
}

.output {
    color: var(--ash-gray);
}

/* Typing Text */
.typing-text {
    color: var(--terminal-green);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

/* Typewriter cursor effect */
.typing-text::after {
    content: '|';
    position: absolute;
    right: -5px;
    color: var(--terminal-green);
    animation: blink 1s infinite;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 20px;
    background-color: var(--terminal-green);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

/* Install Link */
.install-link {
    color: var(--terminal-green);
    background-color: rgba(0, 255, 136, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: var(--transition-fast);
    direction: ltr !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.install-link:hover {
    background-color: rgba(0, 255, 136, 0.2);
    border-color: var(--terminal-green);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 255, 136, 0.2);
}

.fade-in-link {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in-link.show {
    opacity: 1;
}

/* VS Code Theme Text Styling */
.theme-highlight {
    color: var(--neon-red);
    font-weight: 600;
}

.theme-name {
    color: var(--terminal-green);
    font-weight: 600;
}

/* Horizontal Rule */
.hr-gray {
    border: none;
    border-top: 1px solid var(--hr-color);
    margin: 60px 0;
    transition: border-color 0.5s ease;
}

/* Contact Section */
.section.contact {
    padding: 80px 0;
    position: relative;
}

/* Social Icons */
.icons {
    display: flex;
    gap: 20px;
    z-index: 10;
    justify-content: center;
    align-items: center;
    direction: ltr !important;
}

.icons img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
    transition: all 0.3s ease;
}

.icons a {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    transition: all 0.25s ease;
   
    backdrop-filter: blur(10px);
  
}

.icons a:hover {
    border-radius: 50%;
    transform: scale(1.2) translateY(-5px);
}

/* Hover colors for social icons */
.icons a.whatsapp:hover { background: #25d366; box-shadow: 0 0 15px rgba(37, 211, 102, 0.5); }
.icons a.telegram:hover { background: #0088cc; box-shadow: 0 0 15px rgba(0, 136, 204, 0.5); }
.icons a.instagram:hover { background: linear-gradient(45deg, #F9CE34, #EE2A7B, #6228D7); box-shadow: 0 0 15px rgba(225, 48, 108, 0.5); }
.icons a.snapchat:hover { background: #FFD700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
.icons a.tiktok:hover { background: #000000; box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); }



/* Footer */
.footer {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.5s ease;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--ghost-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(112px, 9999px, 76px, 0); }
    10% { clip: rect(85px, 9999px, 77px, 0); }
    15% { clip: rect(27px, 9999px, 97px, 0); }
    20% { clip: rect(64px, 9999px, 98px, 0); }
    25% { clip: rect(61px, 9999px, 85px, 0); }
    30% { clip: rect(99px, 9999px, 114px, 0); }
    35% { clip: rect(1px, 9999px, 115px, 0); }
    40% { clip: rect(80px, 9999px, 119px, 0); }
    45% { clip: rect(66px, 9999px, 98px, 0); }
    50% { clip: rect(88px, 9999px, 98px, 0); }
    55% { clip: rect(68px, 9999px, 84px, 0); }
    60% { clip: rect(14px, 9999px, 115px, 0); }
    65% { clip: rect(73px, 9999px, 102px, 0); }
    70% { clip: rect(42px, 9999px, 96px, 0); }
    75% { clip: rect(107px, 9999px, 113px, 0); }
    80% { clip: rect(74px, 9999px, 98px, 0); }
    85% { clip: rect(28px, 9999px, 111px, 0); }
    90% { clip: rect(65px, 9999px, 88px, 0); }
    95% { clip: rect(52px, 9999px, 85px, 0); }
    100% { clip: rect(119px, 9999px, 116px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 119px, 0); }
    5% { clip: rect(52px, 9999px, 99px, 0); }
    10% { clip: rect(108px, 9999px, 114px, 0); }
    15% { clip: rect(10px, 9999px, 85px, 0); }
    20% { clip: rect(31px, 9999px, 107px, 0); }
    25% { clip: rect(78px, 9999px, 104px, 0); }
    30% { clip: rect(1px, 9999px, 119px, 0); }
    35% { clip: rect(113px, 9999px, 102px, 0); }
    40% { clip: rect(99px, 9999px, 136px, 0); }
    45% { clip: rect(31px, 9999px, 122px, 0); }
    50% { clip: rect(114px, 9999px, 115px, 0); }
    55% { clip: rect(15px, 9999px, 99px, 0); }
    60% { clip: rect(91px, 9999px, 118px, 0); }
    65% { clip: rect(21px, 9999px, 117px, 0); }
    70% { clip: rect(96px, 9999px, 131px, 0); }
    75% { clip: rect(54px, 9999px, 111px, 0); }
    80% { clip: rect(66px, 9999px, 89px, 0); }
    85% { clip: rect(103px, 9999px, 125px, 0); }
    90% { clip: rect(42px, 9999px, 127px, 0); }
    95% { clip: rect(120px, 9999px, 150px, 0); }
    100% { clip: rect(8px, 9999px, 112px, 0); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 { font-size: 3.8rem; }
}

@media (max-width: 992px) {
    .header-controls {
        margin-right: 15px;
    }
    
    .language-switcher {
        padding: 4px;
    }
    
    .lang-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
        min-width: 40px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
    
    .theme-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 3;
    }
    
    .header-controls {
        order: 2;
        margin-right: 15px;
        margin-left: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }

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

    .nav-links li {
        margin: 15px 0;
    }

    h1 {
        font-size: 3rem;
    }
    
    .hero {
        padding: 150px 0 100px;
    }
    
    .section.contact {
        padding: 60px 0;
    }
    
    .logo {
        order: 1;
    }
    
    .terminal {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.5rem; }
    
    .terminal {
        padding: 15px;
    }
    
    .terminal-header {
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .terminal-line {
        font-size: 0.9rem;
    }
    
    .typing-text {
        font-size: 0.9rem;
    }
    
    .install-link {
        font-size: 0.8rem;
        padding: 3px 8px;
        margin-left: 8px;
    }
    
    .icons {
        gap: 15px;
    }
    
    .icons a {
        width: 50px;
        height: 50px;
    }
    
    .icons img {
        width: 30px;
        height: 30px;
    }
    
    .header-controls {
        gap: 10px;
    }
    
    .language-switcher {
        padding: 3px;
    }
    
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.75rem;
        min-width: 35px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .theme-icon {
        width: 16px;
        height: 16px;
    }
    
    .logo {
        font-size: 1.7rem;
    }
}
/* Add to your existing CSS */
.install-link {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    color: var(--neon-red);
}
