/* Glassmorphism card effect */
.project-card, .focus-card, .about-photo img {
    background: rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
    backdrop-filter: blur(7px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.28);
    transition: box-shadow 0.4s, transform 0.4s;
}
.project-card:hover, .focus-card:hover {
    box-shadow: 0 16px 48px 0 rgba(31,38,135,0.28);
    transform: scale(1.04) rotateY(2deg);
}

/* Animated gradient background for hero */
#hero {
    background: linear-gradient(120deg, #4f8cff 0%, #00e6d0 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease-in-out infinite;
}
@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Button hover pop and glow */
.btn, .btn.secondary, .cta-btn {
    transition: transform 0.18s cubic-bezier(.77,0,.18,1), box-shadow 0.18s;
}
.btn:hover, .btn.secondary:hover, .cta-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 2px 16px #4f8cff44;
}

/* Smooth section transitions */
section, .focus-card, .about-photo, .about-bio, .stack-group {
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}

/* Fun party mode (Konami code) */
.party {
    animation: partyBG 0.5s linear infinite;
}
@keyframes partyBG {
    0% { background: #ff5e57; }
    20% { background: #ffb347; }
    40% { background: #43e97b; }
    60% { background: #4f8cff; }
    80% { background: #a259ff; }
    100% { background: #ff5e57; }
}
/* Skill bar icons */
.skill-bars li {
    display: flex;
    align-items: center;
    margin-bottom: 0.7em;
}
.skill-bars i {
    font-size: 2em;
    margin-right: 0.5em;
    min-width: 2em;
}
.skill-bars span {
    width: 90px;
    font-weight: 500;
    margin-right: 1em;
}

/* Confetti canvas */
#confetti-canvas {
    pointer-events: none;
    z-index: 999;
}
/* Typewriter effect */
#typewriter {
    min-height: 2.5em;
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary, #2d2d2d);
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid #888;
    letter-spacing: .05em;
    margin-bottom: 0.5em;
}

/* Skill bars */
.skill-bars {
    list-style: none;
    padding: 0;
    margin: 0;
}
.skill-bars li {
    display: flex;
    align-items: center;
    margin-bottom: 0.7em;
}
.skill-bars span {
    width: 90px;
    font-weight: 500;
    margin-right: 1em;
}
.bar-bg {
    flex: 1;
    background: #e0e0e0;
    border-radius: 8px;
    height: 14px;
    overflow: hidden;
    margin-right: 1em;
}
.bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4f8cff, #00e6d0);
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(.77,0,.18,1);
}

/* Project card hover/tilt */
.project-card {
    transition: transform 0.25s cubic-bezier(.77,0,.18,1), box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    will-change: transform;
}
.project-card:hover {
    transform: perspective(600px) rotateY(4deg) scale(1.03);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    z-index: 2;
}

/* Scroll-to-top button */
#scrollTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2em;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Section reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.77,0,.18,1), transform 0.7s cubic-bezier(.77,0,.18,1);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Footer social icons */
.footer-social {
    margin-top: 0.5em;
}
.footer-social a {
    margin: 0 0.5em;
    color: #222;
    font-size: 2em;
    vertical-align: middle;
    transition: color 0.2s;
}
.footer-social a:hover {
    color: #4f8cff;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

:root {
    --primary: #007bff;
    --secondary: #f8f9fa;
    --text: #343a40;
    --bg: #fff;
    --accent: #ff7f50;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--bg);
    padding: 0.8rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav.container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    min-width: 220px;
    justify-content: flex-start;
    order: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    order: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    order: 2;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

/* Nav actions: dark mode + language select */
.nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    min-width: 220px; /* Prevent layout shift when button text changes */
    justify-content: flex-end;
}

/* Fixed control cluster (language + dark) */
.nav-actions { position: relative; }
/* Language select styles */
.lang-select { appearance:none; background: var(--secondary); border:1px solid var(--primary); color:var(--text); padding:.45rem .8rem; border-radius:6px; font-size:.75rem; cursor:pointer; }
/* Dark mode toggle button: fix width to prevent layout shift */
#dark-toggle {
    min-width: 100px;
    white-space: nowrap;
}
body.dark .lang-select { background:#242424; color:var(--text); }
.lang-select:focus { outline:2px solid var(--primary); outline-offset:2px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
}

/* Hero */
#hero {
    padding-top: 70px;
}

.hero-image {
    background: url('https://images.unsplash.com/photo-1519125323398-675f0ddb6308?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fff;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
}

.hero-text {
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #0056b3;
}

.btn.small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.cta-btn {
    background: var(--accent);
}

.cta-btn:hover {
    background: #e06d3b;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-slow {
    animation: fadeIn 2s ease-out forwards;
}

/* Section titles */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    height: 3px;
    width: 60px;
    background: var(--primary);
}

/* About */
.about-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

.about-photo img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
}

/* Skills & Stack */
.stack-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); }
.stack-group h3 { margin: 0 0 .5rem; font-size: 1.05rem; letter-spacing: .5px; }
.inline-tags { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.4rem; }
.inline-tags li { background: var(--secondary); padding:.35rem .6rem; border-radius:20px; font-size:.8rem; }

/* Focus */
.focus-cards { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.focus-card { background: var(--secondary); padding:1rem; border-radius:10px; box-shadow:0 2px 4px rgba(0,0,0,.06); transition:transform .25s; }
.focus-card:hover { transform:translateY(-4px); }
.focus-card h3 { margin-top:0; font-size:1rem; }
.focus-card p { margin-bottom:0; font-size:.85rem; line-height:1.4; }

/* Filters */
.filters { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin:0 0 1.5rem; }
.filter-btn { background: var(--secondary); border:1px solid var(--primary); color:var(--primary); padding:.45rem .9rem; border-radius:30px; cursor:pointer; font-size:.75rem; letter-spacing:.5px; text-transform:uppercase; transition:all .25s; }
.filter-btn.active, .filter-btn:hover { background:var(--primary); color:#fff; }

.btn.secondary { background: var(--secondary); color: var(--primary); border:1px solid var(--primary); }
.btn.secondary:hover { background: var(--primary); color:#fff; }

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--secondary);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card .tags { margin:.6rem 0 .8rem; display:flex; flex-wrap:wrap; gap:.4rem; }
.badge { background: var(--primary); color:#fff; padding:.25rem .5rem; border-radius:4px; font-size:.65rem; letter-spacing:.5px; }

/* Skill icon list */
.skill-icons { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:.75rem; }
.skill-icons li { background:linear-gradient(135deg,var(--secondary),rgba(0,0,0,0.03)); padding:.6rem .5rem; border-radius:10px; display:flex; align-items:center; gap:.5rem; font-size:.75rem; font-weight:600; letter-spacing:.5px; box-shadow:0 2px 4px rgba(0,0,0,.06); }
.skill-icons i { font-size:1.4rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,.15)); }

.inline-tags.fancy li { position:relative; overflow:hidden; }
.inline-tags.fancy li::after { content:""; position:absolute; inset:0; background:linear-gradient(145deg,rgba(255,255,255,.15),transparent); mix-blend-mode:overlay; }

/* Gradient hero overlay tweak */
.hero-image::after { background:linear-gradient(180deg,rgba(0,0,0,.55),rgba(0,0,0,.65)); }

body.dark .project-card, body.dark .focus-card { background:linear-gradient(155deg,#242424,#1d1d1d); }
body.dark .skill-icons li { background:linear-gradient(145deg,#242424,#1d1d1d); }
body.dark .inline-tags li { background:#242424; }
body.dark .filter-btn { background:#242424; }

/* Section patterned backgrounds */
.section-pattern { position:relative; overflow:hidden; }
.section-pattern::before { content:""; position:absolute; inset:0; opacity:.08; pointer-events:none; background-image:radial-gradient(circle at 25% 30%,var(--primary) 0,transparent 60%),radial-gradient(circle at 75% 70%,var(--accent) 0,transparent 55%); mix-blend-mode:overlay; }

.pattern-circuit::before { background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 200 200" fill="none" stroke="%23777" stroke-width="0.5" opacity="0.35"><path d="M0 20h40v40h40V20h40v40h40V20h40"/><circle cx="40" cy="60" r="3"/><circle cx="120" cy="60" r="3"/><circle cx="160" cy="60" r="3"/></svg>'); background-size:400px 400px; filter:contrast(120%); }
.pattern-code::before { background-image:repeating-linear-gradient(135deg,var(--primary) 0 2px,transparent 2px 40px),repeating-linear-gradient(45deg,var(--accent) 0 2px,transparent 2px 50px); opacity:.05; }
.pattern-alt::before { background-image:linear-gradient(135deg,var(--primary),var(--accent)); opacity:.04; }
.pattern-soft::before { background-image:radial-gradient(circle at 10% 10%,var(--primary),transparent 70%),radial-gradient(circle at 90% 90%,var(--accent),transparent 70%); opacity:.06; }

/* Spacing inside patterned sections */
.section-pattern { padding-top:3rem; padding-bottom:3rem; }

@media (max-width:768px){
    .section-pattern { padding-top:2.5rem; padding-bottom:2.5rem; }
}

/* Removed testimonials section styles */

/* Contact */
.contact-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background: var(--secondary);
    margin-top: 2rem;
}

/* Dark mode */
body.dark {
    --bg: #1a1a1a;
    --text: #f5f5f5;
    --secondary: #2a2a2a;
}

body.dark .logo { color: var(--accent); }
body.dark .project-card,
body.dark .testimonial-card { background: var(--secondary); }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        width: 200px;
        padding: 1rem;
        display: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
}
