:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #00f2ff;
    /* Electric Cyan */
    --card-bg: #161616;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* UTILS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.accent {
    color: var(--accent);
}

/* SCROLL REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
}

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

/* HEADER */
header {
    padding: 2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.social-links a {
    font-size: 1.2rem;
    margin-left: 1.5rem;
}

.social-links a:hover {
    color: var(--accent);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Split text and avatar */
    padding-top: 80px;
    position: relative;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* AVATAR CONTAINER */
.hero-avatar {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    position: relative;
}

/* SVG STYLES */
#dev-avatar {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.2));
}

.eye-socket {
    fill: #0a0a0a;
    stroke: var(--accent);
    stroke-width: 2;
}

.pupil {
    fill: var(--accent);
}

/* SECTIONS GENERAL */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
    color: var(--text-secondary);
}

/* EXPERIENCE & PROJECTS GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #222;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card .role {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid #333;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
    color: #bbb;
}

/* SKILLS SCROLL */
.skills-marquee {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: 'Space Grotesk';
    font-size: 4rem;
    font-weight: 700;
    margin: 0 2rem;
    color: #222;
    -webkit-text-stroke: 1px var(--text-secondary);
    transition: var(--transition);
}

.marquee-item:hover {
    color: var(--accent);
    -webkit-text-stroke: 1px var(--accent);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* FOOTER */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

footer p {
    color: var(--text-secondary);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }

    .hero-avatar {
        height: 300px;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

/* TIMELINE STYLES */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    overflow: hidden;
}

/* The vertical line */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
    z-index: 1;
}

/* The glowing trace line that moves */
.experience-timeline::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    z-index: 1;
    animation: scanline 3s linear infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 60px;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* The Dot */
.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
    transition: all 0.3s ease;
}

/* Pulse effect for the dot */
.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
    transform: scale(1.1);
}

/* Content Card */
.timeline-content {
    background: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent);
    transform: translateX(10px);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 255, 0.1);
}

.timeline-item:hover .timeline-content::before {
    opacity: 1;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.timeline-content p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .experience-timeline {
        padding-left: 0;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .experience-timeline::before,
    .experience-timeline::after {
        left: 10px;
    }

    .timeline-dot {
        left: 1px;
    }
}

/* CERTIFICATION ICONS */
.cert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.cert-icon {
    width: 40px;
    height: 40px;
    fill: var(--text-primary);
    transition: var(--transition);
}

.card:hover .cert-icon {
    fill: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}