/* ============================================
   PORTFOLIO - Inspired by tajmirul.site
   Dark Space Theme with Neon Green Accents
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Roboto+Flex:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --accent: hsl(140, 100%, 47%);
    --accent-glow: hsla(140, 100%, 47%, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #9e9e9e;
    --text-muted: #666666;
    --font-heading: 'Anton', sans-serif;
    --font-body: 'Roboto Flex', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, background 0.15s ease;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--accent-glow);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Scroll Progress Pill */
.scroll-progress {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    z-index: 100;
    overflow: hidden;
}

.scroll-progress-fill {
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 4px;
    transition: height 0.1s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Starfield Background */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Ambient Glow Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 0% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 0 6rem;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    font-size: 0.875rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.nav-menu-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-menu-btn:hover {
    border-color: var(--accent);
}

.nav-menu-btn span {
    width: 16px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
}

.nav-menu-btn span::before,
.nav-menu-btn span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    left: 0;
}

.nav-menu-btn span::before {
    top: -5px;
}

.nav-menu-btn span::after {
    bottom: -5px;
}

/* Vertical Email Link */
.vertical-email {
    position: fixed;
    left: 2rem;
    bottom: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    z-index: 100;
}

.vertical-email a {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    padding-bottom: 100px;
    position: relative;
}

.vertical-email a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: 80px;
    background: var(--text-secondary);
}

.vertical-email a:hover {
    color: var(--accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.hero-title .accent {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 450px;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: right;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 30px var(--accent-glow);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 150px 0;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
}

.about-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    padding: 100px 0;
}

.skills-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-category {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
}

.skill-category:hover,
.skill-category.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
}

.skill-item:hover {
    transform: scale(1.05);
    background: rgba(0, 230, 118, 0.1);
}

.skill-item img,
.skill-item svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.experience {
    padding: 100px 0;
}

.experience-list {
    max-width: 800px;
}

.experience-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
}

.experience-role {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.experience-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.experience-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: right;
    white-space: nowrap;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: 100px 0;
}

.projects-list {
    display: flex;
    flex-direction: column;
}

.project-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 2rem;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.project-item:hover {
    padding-left: 1rem;
}

.project-item:hover .project-name {
    color: var(--accent);
}

.project-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-muted);
}

.project-name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-primary);
    transition: var(--transition);
}

.project-tech {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.project-tech span {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education {
    padding: 100px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 230, 118, 0.05);
}

.education-degree {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-school {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.education-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.education-gpa {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 150px 0;
    text-align: center;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

.contact-email {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--accent);
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.contact-email:hover::after {
    transform: scaleX(1);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-credit {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   MOBILE NAVIGATION MENU
   ============================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-item {
        text-align: center;
    }

    .skills-content {
        grid-template-columns: 1fr;
    }

    .skills-categories {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .vertical-email {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .about-text {
        grid-template-columns: 1fr;
    }

    .experience-item,
    .project-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-number {
        display: none;
    }

    .experience-date {
        text-align: left;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .skill-item {
        padding: 1rem;
    }
}