/* ==========================
   RESET
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0B1120;
    color: #F8FAFC;
    overflow-x: hidden;
}

/* ==========================
   VARIABLES
========================== */

:root {
    --background: #0B1120;
    --background-light: #111827;

    --primary: #A855F7;
    --secondary: #60A5FA;

    --text: #F8FAFC;
    --text-secondary: #CBD5E1;

    --card-bg: rgba(17, 24, 39, 0.8);

    --glow:
        0 0 10px rgba(168, 85, 247, 0.3),
        0 0 20px rgba(168, 85, 247, 0.2),
        0 0 40px rgba(168, 85, 247, 0.1);
}

/* ==========================
   NAVBAR
========================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 8%;

    backdrop-filter: blur(12px);
    background: rgba(11, 17, 32, 0.85);

    border-bottom: 1px solid rgba(168, 85, 247, 0.1);

    z-index: 1000;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ==========================
   HERO
========================== */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding: 120px 8%;
}

.hero-content {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-intro {
    color: var(--primary);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero h2 {
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.8;

    margin-bottom: 30px;
}

.typing-container {
    height: 40px;

    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 600;

    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================
   BUTTONS
========================== */

.btn-primary,
.btn-secondary {

    text-decoration: none;
    padding: 14px 28px;

    border-radius: 12px;

    transition: .3s;
}

.btn-primary {

    background: var(--primary);
    color: white;

    box-shadow: var(--glow);
}

.btn-primary:hover {

    transform: translateY(-3px);
}

.btn-secondary {

    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {

    background: var(--primary);
    color: white;
}

/* ==========================
   HERO IMAGE
========================== */

.hero-image {

    display: flex;
    justify-content: center;
    position: relative;
}

.profile-glow {

    position: absolute;

    width: 350px;
    height: 350px;

    background: var(--primary);

    filter: blur(120px);

    opacity: .25;

    animation: pulse 5s infinite ease-in-out;
}

.hero-image img {

    width: 350px;
    height: 350px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid var(--primary);

    z-index: 1;
}

/* ==========================
   SECTIONS
========================== */

.section {

    padding: 120px 8%;
}

.section-title {

    text-align: center;

    font-size: 2.8rem;

    margin-bottom: 60px;

    color: var(--primary);
}

/* ==========================
   ABOUT
========================== */

.about-container {

    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;

    align-items: center;
}

.about-image img {

    width: 100%;
    border-radius: 20px;

    border: 2px solid var(--primary);
}

.about-text p {

    margin-bottom: 25px;

    line-height: 1.9;

    color: var(--text-secondary);
}

/* ==========================
   SKILLS
========================== */

.skills-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.skill-card {

    background: var(--card-bg);

    padding: 30px;

    border-radius: 20px;

    border: 1px solid rgba(168, 85, 247, .2);

    transition: .3s;
}

.skill-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--glow);
}

.skill-card h3 {

    margin-bottom: 20px;

    color: var(--primary);
}

.skill-card li {

    list-style: none;

    margin-bottom: 12px;

    color: var(--text-secondary);
}

/* ==========================
   TIMELINE
========================== */

.timeline {

    position: relative;

    max-width: 1000px;

    margin: auto;
}

.timeline::before {

    content: "";

    position: absolute;

    left: 50%;

    width: 4px;

    height: 100%;

    background: var(--primary);

    transform: translateX(-50%);
}

.timeline-item {

    position: relative;

    width: 50%;

    padding: 30px;
}

.timeline-item:nth-child(odd) {

    left: 0;
}

.timeline-item:nth-child(even) {

    left: 50%;
}

.timeline-content {

    background: var(--card-bg);

    padding: 25px;

    border-radius: 20px;

    border: 1px solid rgba(168,85,247,.2);

    transition: .3s;
}

.timeline-content:hover {

    box-shadow: var(--glow);

    transform: scale(1.02);
}

.timeline-content h3 {

    color: var(--primary);

    margin-bottom: 10px;
}

.timeline-content p {

    color: var(--text-secondary);
}

/* ==========================
   CONTACT
========================== */

.contact-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 25px;
}

.contact-card {

    background: var(--card-bg);

    padding: 30px;

    border-radius: 20px;

    text-decoration: none;

    color: white;

    text-align: center;

    transition: .3s;

    border: 1px solid rgba(168,85,247,.2);
}

.contact-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--glow);
}

/* ==========================
   FOOTER
========================== */

footer {

    text-align: center;

    padding: 40px;

    color: var(--text-secondary);
}

/* ==========================
   SCROLL ANIMATIONS
========================== */

.hidden {

    opacity: 0;

    transform: translateY(50px);

    transition: all .8s ease;
}

.show {

    opacity: 1;

    transform: translateY(0);
}

/* ==========================
   ANIMATIONS
========================== */

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================
   MOBILE
========================== */

@media(max-width: 900px) {

    .hero-content,
    .about-container {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-image {

        order: -1;
    }

    .hero h1 {

        font-size: 3rem;
    }

    .timeline::before {

        left: 20px;
    }

    .timeline-item {

        width: 100%;
        left: 0 !important;

        padding-left: 60px;
    }

    .nav-links {

        gap: 15px;
        font-size: 0.9rem;
    }
}