/* ========== BASIC RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root {
    --bg: #050816;
    --bg-light: #0f172a;
    --card: #111827;
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.15);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border-radius: 16px;
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.35);
}

body {
    background: radial-gradient(circle at top, #1e293b 0, #020617 55%);
    color: var(--text);
    min-height: 100vh;
}

/* ========== NAVBAR ========== */
header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 999px;
    transition: 0.2s ease-in-out;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0f172a;
    background: var(--accent);
}

/* ========== HERO SECTION ========== */
.hero {
    max-width: 1100px;
    margin: 40px auto 20px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.7rem;
    margin-bottom: 10px;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text h2 {
    font-size: 1.3rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.hero-text p {
    max-width: 480px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 22px;
    display: flex;
    gap: 12px;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s ease-in-out;
}

.btn.primary {
    background: var(--accent);
    color: #0f172a;
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.btn.outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn.outline:hover {
    background: var(--accent-soft);
}

/* ========== HERO IMAGE ========== */
.hero-image {
    display: flex;
    justify-content: center;
}

.image-circle {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient(from 180deg, #22d3ee, #6366f1, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    animation: float 5s ease-in-out infinite;
}

.image-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* ========== HIGHLIGHT SECTION ========== */
.highlight-section {
    max-width: 1100px;
    margin: 10px auto 40px auto;
    padding: 0 20px 40px 20px;
}

.highlight-section h3 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.highlight-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.highlight-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-soft);
}

.highlight-card h4 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Hover elevation */
.hover-rise {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-rise:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* ========== PAGE HEADER ========== */
.page-header {
    max-width: 1100px;
    margin: 30px auto 10px auto;
    padding: 10px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--muted);
}

/* ========== ABOUT LAYOUT ========== */
.about-container {
    max-width: 1100px;
    margin: 10px auto 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 26px;
}

.about-text h2 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.about-text p {
    margin-bottom: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.custom-list {
    margin-left: 20px;
    margin-top: 6px;
    margin-bottom: 10px;
    color: var(--muted);
}

.custom-list li {
    margin-bottom: 6px;
}

/* Tags */
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.tags li {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(34, 211, 238, 0.4);
    font-size: 0.8rem;
}

/* Skills sidebar */
.about-sidebar {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-soft);
}

.about-sidebar h3 {
    margin-bottom: 10px;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.skills-list span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--muted);
}

.bar {
    background: #020617;
    border-radius: 999px;
    overflow: hidden;
    height: 6px;
}

.fill {
    height: 100%;
    background: linear-gradient(to right, #22d3ee, #6366f1);
    border-radius: inherit;
    animation: grow 1.2s ease-out;
}

.fill-80 { width: 80%; }
.fill-85 { width: 85%; }
.fill-70 { width: 70%; }
.fill-75 { width: 75%; }
.fill-90 { width: 90%; }

/* ========== PROJECTS GRID ========== */
.projects-grid {
    max-width: 1100px;
    margin: 10px auto 40px auto;
    padding: 0 20px 30px 20px;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-soft);
}

.project-card h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.project-card p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.project-card .btn {
    margin-top: 10px;
    margin-right: 10px;
    display: inline-block;
}

/* ========== CONTACT PAGE ========== */
.contact-section {
    max-width: 1100px;
    margin: 10px auto 40px auto;
    padding: 0 20px 20px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
    gap: 24px;
}

.contact-info p {
    margin-bottom: 6px;
    color: var(--muted);
}

.contact-info h2, .contact-info h3 {
    margin-bottom: 8px;
}

.contact-form-box {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 18px 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-soft);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.contact-form label {
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #020617;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form button {
    margin-top: 6px;
}

.note {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ========== FOOTER ========== */
footer {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 20px;
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes grow {
    from { width: 0; }
    to { width: 100%; }
}

.fade-in-down { animation: fadeDown 0.7s ease-out; }
.fade-in-up { animation: fadeUp 0.7s ease-out; }
.fade-in-right { animation: fadeRight 0.8s ease-out; }

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .about-container,
    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 8px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }
}
