* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-dark: #0b1220;
    --bg-secondary: #0f1724;
    --neon-cyan: #00e5ff;
    --neon-cyan-glow: #00f0ff;
    --text-primary: #ffffff;
    --text-muted: #a0aec0;
    --glass-bg: rgba(15, 23, 36, 0.6);
    --glass-border: rgba(0, 229, 255, 0.3);
    
    /* Shadows */
    --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.3);
    --shadow-neon-strong: 0 0 30px rgba(0, 229, 255, 0.7), 0 0 60px rgba(0, 229, 255, 0.4);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

code, pre {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan-glow);
}

/* === CURSOR TRAIL === */
#cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Hide cursor trail on mobile */
@media (max-width: 768px) {
    #cursor-trail {
        display: none;
    }
}

/* === UTILITY CLASSES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.neon-text {
    color: var(--neon-cyan);
    text-shadow: var(--shadow-neon);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-glass);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    box-shadow: var(--shadow-neon-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--shadow-neon);
}

.btn-block {
    width: 100%;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(11, 18, 32, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--shadow-neon);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--neon-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    animation: slideUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.location-icon {
    stroke: var(--neon-cyan);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.skill-pills {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.pill:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--shadow-neon);
}

.typing-text {
    font-size: 1.25rem;
    color: var(--neon-cyan);
    min-height: 2rem;
    font-weight: 500;
}

.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

/* Hero Right - Code Card */
.hero-right {
    position: relative;
}

.code-card {
    background: rgba(15, 23, 36, 0.4);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 229, 255, 0.5);
    border-radius: 1.5rem;
    padding: 2rem;
    transform: rotate(2deg);
    box-shadow: var(--shadow-neon-strong), 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.1s ease-out;
}

.code-card pre {
    margin: 0;
}

.code-card code {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.2);
    filter: blur(80px);
    animation: glowPulse 4s ease-in-out infinite;
}

.glow-orb-1 {
    top: -100px;
    right: -100px;
}

.glow-orb-2 {
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

/* === ABOUT SECTION === */
.about {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-image {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.image-frame {
    position: relative;
    /* stable, bounded size so local Live Server and GitHub Pages render similarly */
    width: clamp(140px, 18vw, 200px);
    height: auto;
    border-radius: 1.25rem;
    border: 2px solid rgba(0, 229, 255, 0.5);
    overflow: hidden;
    box-shadow: var(--shadow-neon);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.06), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* keep same look as local server */
}

/* ensure the placeholder fills the frame and centers content */
.placeholder-avatar {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

/* ensure the img inside placeholder-avatar scales and is not cropped */
.placeholder-avatar img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain; /* show full image without cropping */
    display: block;
    border-radius: 0.75rem;
}

/* slightly larger on very wide screens */
@media (min-width: 1200px) {
    .image-frame {
        width: 220px;
    }
}

/* responsive tweak for tablets/phones */
@media (max-width: 768px) {
    .image-frame {
        width: 140px;
    }
}

.corner-accent {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--neon-cyan);
}

.corner-tl {
    top: -20px;
    left: -20px;
    border-right: none;
    border-bottom: none;
    border-radius: 2rem 0 0 0;
}

.corner-br {
    bottom: -20px;
    right: -20px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 2rem 0;
}

.about-content {
    padding: 2.5rem;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: var(--shadow-neon);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === PROJECTS SECTION === */
.projects {
    padding: 6rem 0;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(0, 229, 255, 0.5);
    background: transparent;
    color: var(--neon-cyan);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: var(--shadow-neon);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.project-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--neon-cyan);
}

.project-desc {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--neon-cyan);
    font-size: 0.8rem;
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 700px;
    width: 100%;
    padding: 3rem;
    border: 2px solid var(--neon-cyan);
    box-shadow: var(--shadow-neon-strong);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* === SKILLS SECTION === */
.skills {
    padding: 6rem 0;
}

.skills-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.skill-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.skill-icon {
    font-size: 1.75rem;
}

.skill-name {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
}

.skill-percent {
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 1.125rem;
}

.skill-bar {
    height: 12px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-cyan-glow));
    border-radius: 50px;
    box-shadow: 0 0 20px var(--neon-cyan);
    position: relative;
    transition: width 1.5s ease-out;
}

.skill-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

.tools-section {
    margin-top: 4rem;
    text-align: center;
}

.tools-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tool-pill {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 229, 255, 0.5);
    background: rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.tool-pill:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--shadow-neon);
}

/* === RESUME SECTION === */
.resume {
    padding: 6rem 0;
}

.resume-download {
    text-align: center;
    margin-bottom: 3rem;
}

.resume-container {
    max-width: 900px;
    margin: 0 auto;
}

.resume-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accordion-item {
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 229, 255, 0.05);
}

.accordion-title h4 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.company {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.accordion-icon {
    color: var(--neon-cyan);
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
}

.accordion-content ul {
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    list-style: none;
}

.accordion-content li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
}

.accordion-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

/* === BLOG SECTION === */
.blog {
    padding: 6rem 0;
}

.blog-search {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 36, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.blog-card {
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.blog-category {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--neon-cyan);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: var(--neon-cyan);
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === CONTACT SECTION === */
.contact {
    padding: 6rem 0;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    padding: 2.5rem;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    font-size: 1.5rem;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 36, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 229, 255, 0.3);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.social-icon:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.1);
    box-shadow: var(--shadow-neon);
}

.contact-form {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(11, 18, 32, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === SUCCESS POPUP === */
.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.success-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--neon-cyan);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-neon-strong);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--neon-cyan);
}

.success-content p {
    color: var(--text-muted);
}

/* === FOOTER === */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 229, 255, 0.2);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-tech {
    font-size: 0.875rem;
}

/* === ANIMATIONS === */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(2deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(11, 18, 32, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .code-card {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #cursor-trail {
        display: none;
    }
}