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

:root {
    --cyan: #00d4ff;
    --cyan-dark: #00a8cc;
    --purple: #8b5cf6;
    --dark-bg: #0a0e27;
    --darker-bg: #050812;
    --text-light: #e0e6ff;
    --text-gray: #a8b5d1;
    --border-color: rgba(0, 212, 255, 0.1);
    --accent: #00d4ff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Courier New', monospace;
    background: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 39, 0.8);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.logo:hover {
    color: var(--purple);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--cyan);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 60px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background: linear-gradient(135deg, rgba(5, 8, 18, 1) 0%, rgba(10, 14, 39, 0.8) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    top: 10%;
    left: 5%;
    filter: blur(50px);
}

.hero::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    bottom: 5%;
    right: 10%;
    filter: blur(50px);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero-illustration.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 1;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 8, 18, 0.5) 0%, rgba(10, 14, 39, 0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    color: var(--cyan);
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
    line-height: 1.8;
}

.cta-button {
    padding: 0.9rem 2.5rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3);
}

/* ===== SECTIONS ===== */
section {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.8rem;
    letter-spacing: 2px;
    color: var(--cyan);
    margin-bottom: 1rem;
    font-weight: 900;
}

.title-line {
    width: 60px;
    height: 2px;
    background: var(--cyan);
    margin: 0 auto;
    opacity: 0.5;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.project-tag {
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
}

.project-status {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.7rem;
    color: var(--purple);
    text-transform: uppercase;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.project-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.project-tech {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.tech-tag {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.75rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ===== RESOURCES SECTION ===== */
.resources {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02) 0%, transparent 100%);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-5px);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.resource-card h3 {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
    font-size: 1.2rem;
}

.resource-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: transparent;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--cyan);
    letter-spacing: 1px;
}

.about-text h4 {
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.skill-tag {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.skill-tag:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.12);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    color: var(--cyan);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    color: var(--text-gray);
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(10, 14, 39, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 3rem;
    text-align: center;
    color: var(--text-gray);
}

.footer p {
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--purple);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .hamburger {
        display: none;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background: rgba(10, 14, 39, 0.95);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        border-top: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 250px;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        text-align: left;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
    }

    section {
        padding: 3rem 1rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .hero {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 0.8rem;
    }

    .projects-grid,
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card,
    .resource-card {
        padding: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .footer {
        padding: 1.5rem 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-grid {
        gap: 0.8rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
}
