/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #e0d7ff;
    background: #0a0612;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #1a0d2e 0%, #2d1b4e 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    width: 100%;
    overflow-x: hidden;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(168, 85, 247, 0.6);
}

.brand-name {
    font-family: 'Russo One', sans-serif;
    font-size: 1.6rem;
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a0d2e 0%, #4c1d95 50%, #2d1b4e 100%);
    color: #e0d7ff;
    padding: 120px 0;
    text-align: center;
    animation: fadeInDown 0.8s ease;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: nowrap;
    text-align: left;
}

.hero-mascot-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mascot {
    width: 340px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(168, 85, 247, 0.6));
    transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-mascot.hero-photo {
    object-fit: cover;
    border-radius: 20px;
    filter: none;
    border: 4px solid #a855f7;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.5);
    transition: none;
}

.hero-mascot:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 20px 55px rgba(168, 85, 247, 0.9));
}

.hero-mascot.hero-photo:hover {
    transform: none;
    filter: none;
    border: 4px solid #a855f7;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.5);
}

.hero-text {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

@media (max-width: 900px) {
    .hero-mascot {
        width: 220px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero-content {
        flex-wrap: wrap;
        gap: 1.5rem;
        text-align: center;
    }
    .hero-mascot {
        width: 200px;
    }
}

/* Hero text uses scroll-reveal with a longer/smoother curve */
.hero-content .scroll-reveal {
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-content h1.scroll-reveal {
    transition-delay: 0.1s;
}

.hero-content p.scroll-reveal {
    transition-delay: 0.3s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal — triggers when element enters/leaves viewport */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .scroll-reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.7);
}

/* About Section */
.about {
    padding: 100px 0;
    background: #0f0820;
    animation: fadeIn 0.8s ease;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 0;
    object-fit: contain;
    filter: none;
    box-shadow: none;
    transition: none;
}

.about-image:hover img {
    transform: none;
    filter: none;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #a855f7;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #b8a8e0;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.2s backwards;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background: #0a0612;
}

.skills h2,
.projects h2,
.group-projects h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #a855f7;
    font-weight: 800;
    animation: fadeInDown 0.8s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: linear-gradient(135deg, #1a0d2e 0%, #2d1b4e 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
    animation: slideInUp 0.8s ease backwards;
}

.skill-card:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-card:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.5);
}

.skill-image {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-image {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #c4b5fd;
    font-weight: 700;
}

.skill-card p {
    color: #9d8dc4;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: #0f0820;
}

.group-projects {
    padding: 100px 0;
    background: #0a0612;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #1a0d2e 0%, #2d1b4e 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.4s ease;
    animation: scaleIn 0.8s ease backwards;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.5);
}

/* Project Description Card */
.project-description {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: auto;
    min-height: 400px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-description h3 {
    color: #c4b5fd;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.project-description p {
    color: #9d8dc4;
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Project Image Card */
.project-image-card {
    padding: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #14092a;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    padding: 1rem;
}

.project-card:hover .project-image {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* YouTube Grid */
.yt-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.yt-card {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.yt-label {
    color: #c4b5fd;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
}

.yt-thumb-wrap {
    position: relative;
    width: 340px;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
    background: #14092a;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-thumb-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.5);
}

.yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 1.6rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    transition: all 0.3s ease;
}

.yt-thumb-wrap:hover .yt-play {
    background: rgba(168, 85, 247, 0.9);
    transform: translate(-50%, -50%) scale(1.15);
}

.yt-portrait {
    width: 295px;
    height: 380px;
}

/* Contact Section */
.contact {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #1a0d2e 0%, #4c1d95 50%, #2d1b4e 100%);
    color: #e0d7ff;
    text-align: center;
    animation: fadeInUp 0.8s ease;
    overflow: hidden;
}

.contact h2 {
    color: #ffffff;
    font-size: 3rem;
}

.contact-char {
    position: absolute;
    bottom: 0;
    width: auto;
    height: 380px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(168, 85, 247, 0.4));
    pointer-events: none;
}

.contact-char-left {
    left: 60px;
}

.contact-char-right {
    right: 130px;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    animation: slideInUp 0.8s ease backwards;
}

.contact-info p:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-info p:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-info a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.contact-info a:hover::after {
    width: 100%;
}

/* Footer */
.footer {
    background: #050309;
    color: #b8a8e0;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.8s ease;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image img {
        max-width: 300px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .skills h2,
    .projects h2,
    .group-projects h2,
    .contact h2 {
        font-size: 2rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-image {
        min-height: 200px;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.5rem;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        padding: 1rem;
        border-radius: 5px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 80px 0;
    }

    .about,
    .skills,
    .projects,
    .group-projects,
    .contact {
        padding: 60px 0;
    }
}
