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

:root {
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a2e;
    --text-secondary: #5f6368;
    --accent-blue: #4285f4;
    --accent-red: #ea4335;
    --accent-yellow: #fbbc04;
    --accent-green: #34a853;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.12), 0 20px 56px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 32px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s;
    white-space: nowrap;
}

.nav-logo {
    font-weight: 800;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--text-primary);
    color: #fff !important;
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

.nav-cta:hover {
    background: #2d2d44;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 100px;
    position: relative;
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 55% at 15% 8%, rgba(66,133,244,0.09) 0%, transparent 55%),
        radial-gradient(ellipse 65% 50% at 85% 15%, rgba(234,67,53,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 50% 85%, rgba(52,168,83,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 70% 60%, rgba(251,188,4,0.05) 0%, transparent 50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52,168,83,0.08);
    border: 1px solid rgba(52,168,83,0.22);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 13px;
    color: #1e7e34;
    font-weight: 600;
    margin-bottom: 36px;
    letter-spacing: 0.01em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(52,168,83,0.4); }
    50% { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 4px rgba(52,168,83,0); }
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.04em;
    max-width: 960px;
    margin-bottom: 28px;
}

.gradient-text {
    background: linear-gradient(130deg, #4285f4 0%, #ea4335 38%, #fbbc04 68%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 20px);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 52px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: #fff;
    text-decoration: none;
    padding: 17px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 24px rgba(66,133,244,0.38);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(66,133,244,0.5);
}

.btn-secondary {
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
    padding: 17px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: rgba(0,0,0,0.18);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
    animation: scrollLine 1.8s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scrollLine {
    0%   { transform: scaleY(0); opacity: 0; transform-origin: top; }
    40%  { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ── SECTIONS BASE ── */
section { padding: 108px 24px; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 18px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 560px;
}

/* ── ABOUT ── */
.about { background: var(--bg-secondary); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 88px;
    align-items: center;
}

.about-text p + p { margin-top: 18px; }

.about-extra {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-top: 20px;
}

.skill-icon--python { background: rgba(255,214,0,0.12); }
.skill-icon--html   { background: rgba(234,67,53,0.1); }
.skill-icon--css    { background: rgba(66,133,244,0.1); }
.skill-icon--js     { background: rgba(251,188,4,0.15); }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.stat-card {
    background: #fff;
    border-radius: 22px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

/* ── SKILLS ── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 56px;
}

.skill-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 36px 24px 28px;
    text-align: center;
    transition: all 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,0,0,0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 18px;
}

.skill-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.skill-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── PROJECTS ── */
.projects { background: var(--bg-secondary); }

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 52px;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.4s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.project-preview {
    height: 220px;
    background: linear-gradient(140deg, #0d0d1a 0%, #0f2044 50%, #0a1628 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-preview--dark  { background: linear-gradient(140deg, #0d0d1a 0%, #0f2044 50%, #0a1628 100%); }
.project-preview--gold  { background: linear-gradient(140deg, #1a1200 0%, #2d1f00 50%, #1a1000 100%); }
.project-preview--green { background: linear-gradient(140deg, #001a0d 0%, #002d1a 50%, #001a0a 100%); }
.project-preview--ocean { background: linear-gradient(140deg, #000d1a 0%, #001a2d 50%, #000a1a 100%); }

.preview-glow--gold  { background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%); }
.preview-glow--green { background: radial-gradient(circle, rgba(52,168,83,0.2) 0%, transparent 70%); }
.preview-glow--ocean { background: radial-gradient(circle, rgba(0,120,212,0.2) 0%, transparent 70%); }

.preview-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.preview-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66,133,244,0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.project-preview-inner {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 28px 44px;
    text-align: center;
    backdrop-filter: blur(12px);
}

.project-preview-title {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.project-preview-url {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}

.project-body { padding: 36px; }

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px 13px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.project-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

.project-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 30px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: gap 0.2s;
}

.project-link:hover { gap: 14px; }

.project-link--muted {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: default;
}

/* ── CONTACT ── */
.contact-card {
    background: linear-gradient(145deg, #0d0d1a 0%, #0f2044 60%, #0a1628 100%);
    border-radius: 36px;
    padding: 96px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 60% at 15% 30%, rgba(66,133,244,0.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 70%, rgba(52,168,83,0.12) 0%, transparent 60%);
}

.contact-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.contact-card > * { position: relative; z-index: 1; }

.contact-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 22px;
}

.contact-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 52px;
    line-height: 1.6;
}

.contact-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: #fff;
    color: var(--text-primary);
    text-decoration: none;
    padding: 17px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(0,0,0,0.28);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 17px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.28);
    transition: all 0.3s;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
    padding: 36px 24px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    nav { padding: 10px 16px; gap: 16px; }
    .nav-links { display: none; }
    .contact-card { padding: 56px 28px; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .projects-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}
