/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Root Variables */
:root {
    --primary-color: #00ff88;
    --secondary-color: #0099ff;
    --accent-color: #ff0080;
    --bg-dark: #0a0e27;
    --bg-darker: #050810;
    --bg-card: #0f1729;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --border-color: #1a2332;
    --shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
    --glow: 0 0 20px rgba(0, 255, 136, 0.3);
    
    /* Glassmorphism Vars */
    --glass-bg: rgba(15, 23, 41, 0.6);
    --glass-border: rgba(0, 255, 136, 0.1);
    --glass-blur: blur(10px);
}

/* Light Mode - Updated to match second project */
[data-theme="light"] {
    --bg-darker: #f1f3f6;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #112718;
    --text-secondary: #4b5563;
    --primary-color: #05b86b;
    --secondary-color: #6366f1;
    --accent-color: #0891b2;
    --border-color: rgba(5, 184, 107, 0.2);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --glow: 0 0 20px rgba(5, 184, 107, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(148, 163, 184, 0.35);
}



/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== FIX: Remove rectangle on click, keep for keyboard ===== */
*:focus:not(:focus-visible) {
    outline: none !important;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.nav-link:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.social-links a:focus:not(:focus-visible),
.hamburger:focus:not(:focus-visible),
.floating-btn:focus:not(:focus-visible),
.theme-toggle:focus:not(:focus-visible) {
    outline: none !important;
}

/* Keep outline for keyboard users (Tab key) */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Exception: Form inputs always show focus */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none !important;
    border-left-color: var(--primary-color) !important;
}

/* Accessibility - Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * ,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 10000;
    transition: width 0.1s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo a {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-bracket {
    color: var(--secondary-color);
}

.logo a:hover {
    text-shadow: var(--glow);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
}

.theme-toggle i {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle i.active {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Light mode: White navigation links */
[data-theme="light"] .nav-link {
    color: #e1d2ef;  /* White links in light mode */
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
    color: #05b86b;  /* Green on hover/active */
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    z-index: 1;
}


.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 153, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}


@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
    display: inline-block;
}

.hero-title::before,
.hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8; 
    display: none;
    background: var(--bg-darker);
}

.glitch-wrapper:hover .hero-title::before,
.glitch-wrapper:hover .hero-title::after {
    display: block;
}

.glitch-wrapper:hover .hero-title::before {
    color: #ff00ff;
    z-index: -1;
    animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: initial;
}
.glitch-wrapper:hover .hero-title::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch-effect 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: initial;
}


@keyframes glitch-effect {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.typing-text {
    display: inline-block;
    border-right: 3px solid var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0,255,136,0.5);
    background: rgba(0,255,136,0.04);
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: none;
    font-size: 1rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Terminal */
.terminal {
    background: var(--bg-card);              /* same card color as style2 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.terminal:hover {
    transform: translateY(-5px);
}

.terminal-header {
    background: var(--bg-darker);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.terminal-button:hover {
    transform: scale(1.2);
}

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-body p {
    opacity: 0;
    animation: terminalFadeIn 0.5s ease forwards;
}

.terminal-body p:nth-child(1) { animation-delay: 0.2s; }
.terminal-body p:nth-child(2) { animation-delay: 0.4s; }
.terminal-body p:nth-child(3) { animation-delay: 0.6s; }
.terminal-body p:nth-child(4) { animation-delay: 0.8s; }
.terminal-body p:nth-child(5) { animation-delay: 1s; }
.terminal-body p:nth-child(6) { animation-delay: 1.2s; }
.terminal-body p:nth-child(7) { animation-delay: 1.4s; }
.terminal-body p:nth-child(8) { animation-delay: 1.6s; }
.terminal-body p:nth-child(9) { animation-delay: 1.8s; }

@keyframes terminalFadeIn {
    to {
        opacity: 1;
    }
}

.prompt {
    color: var(--primary-color);
    font-weight: 600;
}

.output {
    color: var(--text-secondary);
    margin-left: 1rem;
}

.cursor {
    animation: blink 1s infinite;
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    position: relative;
}

/* Section dividers */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0,255,136,0.4),
        rgba(0,153,255,0.4),
        transparent
    );
    opacity: 0.3;
}

/* Keep section dividers for others, but remove on hero */
#home::before {
    display: none;
    content: none;
}

section:nth-of-type(even) {
    background: var(--bg-dark);
}
section:nth-of-type(odd) {
    background: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary-color);
}

/* About Section */
.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Cards (Glassmorphism Applied) */
.stat-item,
.project-card,
.skill-category,
.cert-card,
.experience-card,
.language-card,
.blog-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Unified top accent strip on cards */
.stat-item::after,
.project-card::after,
.skill-category::after,
.cert-card::after,
.experience-card::after,
.language-card::after,
.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

.stat-item {
    text-align: center;
    overflow: hidden;
}

/* Dark mode hover (original) */
.stat-item:hover,
.project-card:hover,
.skill-category:hover,
.cert-card:hover,
.experience-card:hover,
.language-card:hover,
.blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    background: rgba(15, 23, 41, 0.8);  /* Dark background */
    transform: translateY(-5px);
}

/* Light mode hover only */
[data-theme="light"] .stat-item:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .skill-category:hover,
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .experience-card:hover,
[data-theme="light"] .language-card:hover,
[data-theme="light"] .blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(236, 239, 237, 0.2);
    background: rgba(188, 202, 235, 0.8);  /* Light background */
    transform: translateY(-5px);
}

.project-card:hover h3,
.project-card:hover p {
    color: var(--text-primary);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    letter-spacing: 0.02em;
}

.skill-tag[data-level="advanced"]::after {
    content: '⭐⭐⭐';
    font-size: 0.6rem;
    position: absolute;
    top: -8px;
    right: -8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag[data-level="intermediate"]::after {
    content: '⭐⭐';
    font-size: 0.6rem;
    position: absolute;
    top: -8px;
    right: -8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag[data-level="beginner"]::after {
    content: '⭐';
    font-size: 0.6rem;
    position: absolute;
    top: -8px;
    right: -8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-tag:hover::after {
    opacity: 1;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-darker);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.project-tags span:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 1rem;
}

/* Certifications Section */
.certifications {
    background: var(--bg-darker);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    text-align: center;
}

.cert-logo {
    width: 80px;
    height: 80px;
    background: var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0 auto 1.5rem;
    transition: all 0.6s ease;
}

.cert-card:hover .cert-logo {
    transform: rotateY(360deg);
}

.cert-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.cert-status {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cert-status.in-progress {
    background: rgba(255, 189, 46, 0.1);
    color: #ffbd2e;
    border: 1px solid rgba(255, 189, 46, 0.3);
}

.cert-status.completed {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.cert-status.active {
    background: rgba(0, 153, 255, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 153, 255, 0.3);
}

/* Certification Link Styling */
.cert-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cert-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.cert-link i {
    margin-right: 0.3rem;
}

/* Experiences Section */
.experiences {
    background: var(--bg-dark);
}

.experiences-grid {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.experience-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.exp-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.exp-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-darker);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.experience-card:hover .exp-icon {
    transform: scale(1.1) rotate(5deg);
}

.exp-details {
    flex: 1;
}

.exp-details h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.exp-org {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.exp-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.exp-description {
    margin-top: 1rem;
}

.exp-description ul {
    list-style: none;
    padding: 0;
}

.exp-description li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.7rem;
    line-height: 1.6;
}

.exp-description li::before {
    content: '▹';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Project Date Badge */
.project-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.3);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* CTFs & Activities Section */
.ctfs {
    background: var(--bg-dark);
}

.ctf-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.ctf-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color), transparent);
    opacity: 0.6;
}

.ctf-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.ctf-dot {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.ctf-item:hover .ctf-dot {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.ctf-content {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
}

.ctf-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

.ctf-item:hover .ctf-content {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateX(5px);
}

[data-theme="light"] .ctf-item:hover .ctf-content {
    box-shadow: 0 0 20px rgba(236, 239, 237, 0.2);
    background: rgba(188, 202, 235, 0.8);
}

.ctf-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.04);
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.ctf-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.ctf-org {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.ctf-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.ctf-content strong {
    color: var(--primary-color);
}

.ctf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ctf-tags span {
    padding: 0.25rem 0.7rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.ctf-tags span:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Education Section */
.education {
    background: var(--bg-darker);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
}

.education-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.6;
}

.education-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
}

[data-theme="light"] .education-card:hover {
    box-shadow: 0 0 20px rgba(236, 239, 237, 0.2);
    background: rgba(188, 202, 235, 0.8);
}

.edu-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-darker);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.education-card:hover .edu-icon {
    transform: scale(1.1) rotate(5deg);
}

.edu-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.edu-org {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.edu-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Languages Section */
.languages {
    padding: 4rem 2rem;
    background: var(--bg-darker);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.language-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.language-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.language-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.language-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.language-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.language-level {
    width: 100%;
    height: 6px;
    background: var(--bg-darker);
    border-radius: 3px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s ease;
}

/* Contact Section */
.contact {
    background: var(--bg-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-method h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-method p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.contact-method a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Terminal Style Inputs */
.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--border-color);
    border-left-color: var(--primary-color);
    background: rgba(0, 255, 136, 0.05);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Improved form status animation */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, max-height 0.25s ease, transform 0.25s ease;
}

.form-status.show {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

.form-status.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.form-status.error {
    background: rgba(255, 0, 128, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    border: none;
}

.floating-btn.visible {
    opacity: 1;
    transform: translateY(0);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer i {
    color: var(--accent-color);
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-terminal {
        order: -1;
        transform: translateY(-15px);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 8, 16, 0.98);
        backdrop-filter: blur(16px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.5rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .exp-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .exp-icon {
        margin: 0 auto;
    }
    
    .exp-details {
        text-align: center;
    }
    
    .experiences-grid {
        grid-template-columns: 1fr;
    }
    
    .languages-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .edu-icon {
        margin: 0 auto;
    }

    .ctf-timeline {
        padding-left: 30px;
    }

    .ctf-timeline::before {
        left: 10px;
    }

    .ctf-dot {
        left: -27px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        margin-bottom: 0.3rem;
    }

    .hero-description {
        margin-bottom: 1.2rem;
    }

    section {
        padding: 4rem 1rem;
    }

    .terminal-body {
        font-size: 0.85rem;
        padding: 1rem;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}