/* ===================================
   SPIDERMAN PORTFOLIO - CSS
   Color Scheme: Red (#DE0606, #AC0202), Blue (#007FD7), Black (#000, #1a1a1a)
   =================================== */

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

:root {
    --primary-red: #DE0606;
    --dark-red: #AC0202;
    --primary-blue: #007FD7;
    --dark-blue: #005A9C;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #e2e2e2;
    --white: #ffffff;
    --web-color: rgba(222, 6, 6, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   ANIMATED SPIDER WEB BACKGROUND
   =================================== */
#webCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===================================
   FLOATING SPIDER
   =================================== */
.spider {
    position: fixed;
    width: 30px;
    height: 30px;
    z-index: 999;
    pointer-events: none;
    transition: transform 0.1s ease;
}

.spider-body {
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(222, 6, 6, 0.8);
}

.spider-body::before,
.spider-body::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--primary-red);
    top: 50%;
}

.spider-body::before {
    left: -15px;
    transform: rotate(45deg);
}

.spider-body::after {
    right: -15px;
    transform: rotate(-45deg);
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary-red);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 30px rgba(222, 6, 6, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(222, 6, 6, 0.5);
}

.logo-icon {
    width: 32px;
    height: 32px;
    stroke: var(--primary-red);
    filter: drop-shadow(0 0 5px rgba(222, 6, 6, 0.8));
}

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

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 2rem 4rem;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: slideInLeft 1s ease;
}

.hero-title {
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: var(--primary-red);
    text-shadow: 
        3px 3px 0 var(--primary-blue),
        6px 6px 0 var(--black),
        0 0 30px rgba(222, 6, 6, 0.5);
    margin-bottom: 1rem;
    line-height: 1;
}

.glitch {
    position: relative;
    animation: glitch 3s infinite;
}

.hero-subtitle {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero-role {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(222, 6, 6, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 127, 215, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease;
}

.spider-logo {
    width: 400px;
    height: 400px;
    animation: float 3s ease-in-out infinite, rotate 20s linear infinite;
    filter: drop-shadow(0 0 50px rgba(222, 6, 6, 0.8));
}

.spider-svg {
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    width: 40px;
    height: 40px;
    stroke: var(--primary-red);
}

/* ===================================
   SECTIONS
   =================================== */
section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.title-number {
    font-family: 'Bangers', cursive;
    color: var(--primary-red);
    font-size: 2rem;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
}

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

.about-text {
    animation: fadeInUp 1s ease;
}

.about-intro {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
}

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

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(222, 6, 6, 0.1);
    border: 2px solid var(--primary-red);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(222, 6, 6, 0.3);
}

.stat-item i {
    width: 40px;
    height: 40px;
    stroke: var(--primary-red);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.about-image {
    position: relative;
}

.image-frame {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(222, 6, 6, 0.4);
}

.web-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 35px, rgba(255,255,255,0.1) 35px, rgba(255,255,255,0.1) 36px),
        repeating-linear-gradient(90deg, transparent, transparent 35px, rgba(255,255,255,0.1) 35px, rgba(255,255,255,0.1) 36px);
    animation: webMove 20s linear infinite;
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */
.experience {
    background: var(--black);
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-red), var(--primary-blue));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease;
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border: 3px solid var(--black);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(222, 6, 6, 0.8);
}

.timeline-content {
    background: rgba(222, 6, 6, 0.05);
    padding: 2rem;
    border-left: 3px solid var(--primary-red);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(222, 6, 6, 0.1);
    transform: translateX(10px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeline-header h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: var(--white);
}

.company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
}

.company i {
    width: 20px;
    height: 20px;
    stroke: var(--primary-blue);
}

.timeline-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.timeline-date i {
    width: 18px;
    height: 18px;
    stroke: var(--primary-red);
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
    line-height: 1.6;
}

.timeline-list li i {
    width: 20px;
    height: 20px;
    stroke: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===================================
   PROJECTS SECTION
   =================================== */
.projects {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(222, 6, 6, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(222, 6, 6, 0.4);
    border-color: var(--primary-blue);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    width: 40px;
    height: 40px;
    stroke: var(--primary-red);
}

.project-header h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: var(--white);
}

.project-description {
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 127, 215, 0.2);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.05);
}

.project-features {
    list-style: none;
}

.project-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--light-gray);
    line-height: 1.5;
}

.project-features li i {
    width: 18px;
    height: 18px;
    stroke: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===================================
   SKILLS SECTION
   =================================== */
.skills {
    background: var(--black);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(222, 6, 6, 0.05);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(222, 6, 6, 0.3);
    background: rgba(222, 6, 6, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    width: 35px;
    height: 35px;
    stroke: var(--primary-red);
}

.category-header h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: var(--white);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-item {
    background: rgba(0, 127, 215, 0.2);
    color: var(--primary-blue);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 20px rgba(0, 127, 215, 0.4);
}

/* ===================================
   EDUCATION SECTION
   =================================== */
.education {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.education-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 127, 215, 0.4);
    border-color: var(--primary-red);
}

.edu-icon {
    width: 50px;
    height: 50px;
    stroke: var(--primary-red);
    margin-bottom: 1.5rem;
}

.education-card h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.edu-major {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.edu-school {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.edu-date {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: var(--black);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text h3 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.contact-text p {
    color: var(--light-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(222, 6, 6, 0.05);
    border: 2px solid var(--primary-red);
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(222, 6, 6, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(222, 6, 6, 0.3);
}

.contact-item i {
    width: 24px;
    height: 24px;
    stroke: var(--primary-red);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--dark-gray);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid var(--primary-red);
}

.footer p {
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-credit i {
    width: 16px;
    height: 16px;
    stroke: var(--primary-red);
    fill: var(--primary-red);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes glitch {
    0%, 100% {
        text-shadow: 
            3px 3px 0 var(--primary-blue),
            6px 6px 0 var(--black),
            0 0 30px rgba(222, 6, 6, 0.5);
    }
    25% {
        text-shadow: 
            -3px 3px 0 var(--primary-blue),
            -6px 6px 0 var(--black),
            0 0 30px rgba(222, 6, 6, 0.5);
    }
    50% {
        text-shadow: 
            3px -3px 0 var(--primary-blue),
            6px -6px 0 var(--black),
            0 0 30px rgba(222, 6, 6, 0.5);
    }
    75% {
        text-shadow: 
            -3px -3px 0 var(--primary-blue),
            -6px -6px 0 var(--black),
            0 0 30px rgba(222, 6, 6, 0.5);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes webMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 35px 35px;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .spider-logo {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 2px solid var(--primary-red);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-role {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .skills-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .spider-logo {
        width: 200px;
        height: 200px;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .project-card,
    .skill-category,
    .education-card {
        padding: 1.5rem;
    }
}