/* GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0e0e0f;
    color: #f0f0f0;
    line-height: 1.6;
}

/* NAVBAR */
.burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #b066ff;
    cursor: pointer;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);

    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b066ff;
}
.nav-logo a {
    text-decoration: none;
    color: #b066ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(176, 102, 255, 0.25);
    background: rgba(176, 102, 255, 0.08);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #b066ff;
}

.nav-logo a:hover {
    opacity: 0.9;
}

/* active nav link */
.nav-links a.active {
    color: #b066ff;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #b066ff;
}

section,
header {
    scroll-margin-top: 90px;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
    background: radial-gradient(circle at top, #1a1a1a, #0d0d0d);
}

/* Canvas for particles */
#particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* HERO TEXT */
.hero h1,
.hero p,
.hero-buttons a {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    position: relative;
    z-index: 1;
    animation: fadeInUpWave 0.8s forwards;
}

/* Staggered wave delays */
.hero h1 {
    animation-delay: 0.2s;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    animation-delay: 0.5s;
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: #cfcfcf;
}

.hero-buttons a:nth-child(1) {
    animation-delay: 0.8s;
}

.hero-buttons a:nth-child(2) {
    animation-delay: 1.0s;
}

/* Buttons container */
.hero-buttons {
    display: flex;
    gap: 20px;
    z-index: 1;
    position: relative;
}

/* Buttons styling */
.hero-buttons a {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    backdrop-filter: blur(6px);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Primary Button */
.btn-primary {
    background: #b066ff;
    color: #fff;
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(176, 102, 255, 0.4);
}

.btn-primary:hover {
    background: #8149bc;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 15px rgba(176, 102, 255, 0.6);
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #b066ff;
    color: #b066ff;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(176, 102, 255, 0.3);
    padding: 14px 30px;
    border-radius: 8px;
}

.btn-secondary:hover {
    background: rgba(49, 29, 71, 0.4);
    box-shadow: 0 0 15px rgba(176, 102, 255, 0.6);
    transform: translateY(-2px) scale(1.02);
}

/* ABOUT SECTION */
.about-section {
    padding: 100px 20px;
    color: #fff;
    background: #0f0f0f;
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 260px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(176, 102, 255, 0.3);
}

.about-right {
    flex: 1.2;
}

.about-text {
    margin-bottom: 18px;
    line-height: 1.7;
    opacity: 0.9;
}

/* SKILLS SECTION */
.skills-section {
    padding: 90px 20px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.6), rgba(8, 8, 8, 0.6));
    color: #f0f0f0;
}

.skills-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    font-weight: 700;
    color: #fff;
}

/* GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

/* CARD */
.skill-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 30px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}

/* ICON */
.skill-icon {
    margin-bottom: 15px;
}

.skill-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #eae6ff;
}

.skill-list {
    list-style: none;
    padding-left: 0;
    color: #d6d3f5;
    line-height: 1.7;
}

/* PROJECTS SECTION */
.projects-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0.6), rgba(8, 8, 8, 0.6));
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-section .section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: stretch;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.project-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(176, 102, 255, 0.08), rgba(0, 0, 0, 0.2));
    padding: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    text-align: center;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-content p {
    font-size: 1rem;
    margin-bottom: 16px;
    color: #d6d3f5;
}

.project-tech {
    font-size: 0.85rem;
    color: #b066ff;
    margin-bottom: 16px;
}

.project-buttons {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}



/* .project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
} */ 

.skill-card,
.project-card {
    transition: all 0.3s ease;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(176, 102, 255, 0.4);
}

/* .project-card img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    object-fit: cover;
} */

.project-buttons a {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-buttons .btn-primary {
    background: #b066ff;
    color: #fff;
}

.project-buttons .btn-primary:hover {
    background: #8149bc;
    transform: translateY(-2px) scale(1.02);
}

.project-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #b066ff;
    border: 2px solid #b066ff;
}

.project-buttons .btn-secondary:hover {
    background: rgba(49, 29, 71, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* CONTACT SECTION */
.contact-section {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0d0d0d, #1a1a1a);
    color: #fff;
}

.contact-section .section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.form-status {
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    display: none;
    animation: fadeInUp 0.3s ease;
    transition: opacity 0.3s ease;
}

.form-status.success {
    background: #b066ff33;
    color: #b066ff;
}

.form-status.error {
    background: #ff6b6b33;
    color: #ff6b6b;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.contact-form.show {
    opacity: 1;
    transform: translateY(0);
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.contact-form label {
    margin-bottom: 6px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #b066ff;
    box-shadow: 0 0 8px rgba(176, 102, 255, 0.4);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    min-height: 18px;
    animation: fadeInUp 0.3s ease;
}

.btn-contact {
    background: #b066ff;
    color: #fff;
    font-weight: 600;
    padding: 16px 0;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #8149bc;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 15px rgba(176, 102, 255, 0.6);
}

/* FOOTER */
.footer {
    padding: 40px 20px;
    background: #080808;
    text-align: center;
    color: #ccc;
    position: relative;
    z-index: 1;
}

.footer .social-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer .social-links a {
    color: #b066ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    color: #fff;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b066ff;
    outline-offset: 3px;
}

/* ANIMATION */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpWave {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Responsive */
@media (max-width: 900px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
}

@media (max-width: 880px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        gap: 15px;
    }
}


/* mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .burger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 20px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        padding: 20px;
        border-radius: 12px;
        display: none;
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.9rem;
    }
   
    .nav-links.show {
        display: flex;
    }

    .hero {
        height: auto;
        min-height: 80svh;
        padding: 90px 16px 50px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .hero-buttons a {
        width: 100%;
    }

    section {
        padding: 50px 16px;
    }

    .skill-card,
    .project-card {
        padding: 18px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .about-wrapper {
        gap: 25px;
    }
    .about-left {
        order: 2;
    }

    .about-right {
        order: 1;
    }

    .project-media {
        aspect-ratio: 16 / 11;
        padding: 8px;
    }
}
