
/* =========================================
   GLOBAL
========================================= */

:root {
    --bg: #07111f;
    --bg-secondary: #0d1b2e;
    --card: #101f33;
    --text: #f5f7fa;
    --muted: #9eacbd;
    --accent: #4f9cff;
    --accent-light: #78b7ff;
    --border: rgba(255, 255, 255, 0.1);

    --max-width: 1100px;

    --radius: 18px;

    --transition: 0.3s ease;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(
            circle at top right,
            rgba(79, 156, 255, 0.15),
            transparent 35%
        ),
        var(--bg);

    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;
}


.container {
    width: min(90%, var(--max-width));

    margin: auto;
}


.section {
    padding: 100px 0;

    border-bottom: 1px solid var(--border);
}


section {
    scroll-margin-top: 40px;
}


/* =========================================
   TYPOGRAPHY
========================================= */

h1,
h2,
h3 {
    line-height: 1.2;
}


h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);

    letter-spacing: -2px;
}


h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 20px;
}


h3 {
    font-size: 1.3rem;

    margin-bottom: 15px;
}


p {
    color: var(--muted);

    margin-bottom: 15px;
}


a {
    color: inherit;

    text-decoration: none;
}


ul {
    list-style: none;
}


.section-label,
.eyebrow {
    color: var(--accent);

    font-size: 0.85rem;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 12px;
}


.section-intro {
    max-width: 650px;

    margin-bottom: 40px;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;

    top: 0;

    z-index: 1000;

    padding: 20px 0;

    background: rgba(7, 17, 31, 0.85);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
}


.header .container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.header h1 {
    font-size: 1.5rem;

    letter-spacing: -0.5px;
}


.subtitle {
    display: none;
}


.navbar {
    display: flex;

    align-items: center;

    gap: 25px;
}


.navbar a {
    position: relative;

    color: var(--muted);

    font-size: 0.95rem;

    transition: var(--transition);
}


.navbar a::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: var(--accent);

    transition: var(--transition);
}


.navbar a:hover {
    color: var(--text);
}


.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}


.navbar a.active {
    color: var(--text);
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: 90vh;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;
}


.hero::before {
    content: "";

    position: absolute;

    width: 450px;

    height: 450px;

    border-radius: 50%;

    background: rgba(79, 156, 255, 0.15);

    filter: blur(80px);

    right: -150px;

    top: 100px;

    animation: floatingGlow 6s ease-in-out infinite;
}


.hero h2 {
    max-width: 850px;

    font-size: clamp(2.5rem, 6vw, 5rem);

    letter-spacing: -3px;
}


.highlight {
    display: block;

    color: var(--accent);
}


.hero-text {
    max-width: 650px;

    font-size: 1.1rem;
}


.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 30px;

    flex-wrap: wrap;
}


/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-block;

    padding: 12px 24px;

    border-radius: 50px;

    font-weight: bold;

    border: 1px solid transparent;

    cursor: pointer;

    transition: transform var(--transition),
                background var(--transition),
                border var(--transition);
}


.btn:hover {
    transform: translateY(-4px);
}


.primary-btn {
    background: var(--accent);

    color: white;
}


.primary-btn:hover {
    background: var(--accent-light);
}


.secondary-btn {
    border-color: var(--border);

    color: var(--text);

    background: transparent;
}


.secondary-btn:hover {
    border-color: var(--accent);

    background: rgba(79, 156, 255, 0.08);
}


/* =========================================
   ABOUT
========================================= */

.about-content {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    gap: 50px;

    align-items: start;
}


.about-text p {
    font-size: 1.05rem;
}


.focus-card {
    padding: 30px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition: var(--transition);
}


.focus-card:hover {
    transform: translateY(-8px);

    border-color: rgba(79, 156, 255, 0.5);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}


.focus-card li {
    padding: 8px 0;

    color: var(--muted);

    border-bottom: 1px solid var(--border);
}


.focus-card li:last-child {
    border-bottom: none;
}


/* =========================================
   LEARNING CARDS
========================================= */

.learning-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.learning-card,
.skill-card,
.project-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.learning-card {
    padding: 30px;

    position: relative;

    overflow: hidden;
}


.learning-card::before {
    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 3px;

    background: var(--accent);

    transform: scaleX(0);

    transform-origin: left;

    transition: var(--transition);
}


.learning-card:hover {
    transform: translateY(-10px);

    border-color: rgba(79, 156, 255, 0.5);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}


.learning-card:hover::before {
    transform: scaleX(1);
}


.card-number,
.project-number {
    color: var(--accent);

    font-weight: bold;

    font-size: 0.85rem;

    letter-spacing: 2px;
}


.learning-card h3 {
    margin-top: 15px;
}


.learning-card li {
    color: var(--muted);

    padding: 7px 0;

    border-bottom: 1px solid var(--border);
}


.learning-card li:last-child {
    border-bottom: none;
}


/* =========================================
   SKILLS
========================================= */

.skills-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


.skill-card {
    padding: 30px;
}


.skill-card:hover {
    transform: translateY(-8px);

    border-color: rgba(79, 156, 255, 0.5);
}


.skill-card li {
    color: var(--muted);

    padding: 8px 0;
}


/* =========================================
   PROJECTS
========================================= */

.projects-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}


.project-card {
    overflow: hidden;
}


.project-content {
    padding: 35px;
}


.project-card h3 {
    margin-top: 15px;

    font-size: 1.6rem;
}


.project-card a {
    display: inline-block;

    margin-top: 10px;

    color: var(--accent);

    font-weight: bold;

    transition: var(--transition);
}


.project-card a:hover {
    transform: translateX(6px);
}


.project-card:hover {
    transform: translateY(-10px);

    border-color: rgba(79, 156, 255, 0.5);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}


/* =========================================
   TABLE
========================================= */

.table-wrapper {
    overflow-x: auto;
}


table {
    width: 100%;

    border-collapse: collapse;

    background: var(--card);

    border-radius: var(--radius);

    overflow: hidden;
}


th,
td {
    padding: 18px;

    text-align: left;

    border-bottom: 1px solid var(--border);
}


th {
    color: var(--text);

    background: rgba(79, 156, 255, 0.08);
}


td {
    color: var(--muted);
}


tr:last-child td {
    border-bottom: none;
}


/* =========================================
   CONTACT
========================================= */

.contact-form {
    max-width: 750px;

    padding: 35px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    margin-top: 30px;
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-weight: bold;
}


.form-group input,
.form-group textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.03);

    color: var(--text);

    font: inherit;

    outline: none;

    transition: var(--transition);
}


.form-group textarea {
    resize: vertical;
}


.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);

    box-shadow: 0 0 0 3px rgba(79, 156, 255, 0.1);
}


.form-buttons {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


.form-message {
    margin-top: 15px;

    color: var(--accent);
}


.social-links {
    margin-top: 50px;
}


.social-links a {
    color: var(--accent);

    font-weight: bold;
}


.social-links a:hover {
    text-decoration: underline;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    padding: 40px 0;

    text-align: center;

    border-top: 1px solid var(--border);
}


.footer p {
    margin-bottom: 5px;
}


.footer a {
    display: inline-block;

    margin-top: 15px;

    color: var(--accent);
}


/* =========================================
   SCROLL REVEAL
========================================= */

.section,
.learning-card,
.skill-card,
.project-card,
.focus-card {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.section.visible,
.learning-card.visible,
.skill-card.visible,
.project-card.visible,
.focus-card.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes floatingGlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .header .container {
        flex-direction: column;

        align-items: flex-start;
    }


    .navbar {
        width: 100%;

        overflow-x: auto;

        padding-bottom: 5px;
    }


    .about-content {
        grid-template-columns: 1fr;
    }


    .learning-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }


    .projects-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .section {
        padding: 70px 0;
    }


    .hero {
        min-height: 80vh;
    }


    .hero h2 {
        letter-spacing: -1.5px;
    }


    .navbar {
        gap: 18px;
    }


    .navbar a {
        font-size: 0.85rem;
    }


    .contact-form {
        padding: 25px;
    }


    th,
    td {
        padding: 12px;

        font-size: 0.9rem;
    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}

