/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --accent: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-dark: rgba(15, 23, 42, 0.7);
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    --gradient-2: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
    --nav-gradient: linear-gradient(135deg, #4f46e5, #7c3aed, #ec4899);
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--dark);
    overflow-x: hidden;
    padding-top: 100px;
    position: relative;
}

/* body.scrolled {
    padding-top: 80px;
} */

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #475569);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Particles Canvas */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShine 3s ease-in-out infinite alternate;
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

h2 {
    font-size: 3.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient);
    border-radius: 10px;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.section-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.7);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Glass Morphism Effect */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-dark {
    background: var(--glass-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover:before {
    left: 0;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

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

.btn-outline:hover {
    color: white;
}

/* Header & Navigation - UPDATED WITH COLOR */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s ease;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
    box-sizing: content-box;
}

header.scrolled {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}


.nav-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 0;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    background: var(--nav-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--nav-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li {
    position: relative;
}

.nav-link {
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 15px;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover {
    color: white;
    background: rgba(99, 102, 241, 0.1);
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--nav-gradient);
    border-radius: 10px;
    transition: width 0.4s ease;
}

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

.nav-link.active {
    color: white;
    background: rgba(99, 102, 241, 0.15);
}

.nav-link.active:after {
    width: 80%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    z-index: 1001;
    background: var(--nav-gradient);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    position: relative;
}

.hero-text h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--secondary);
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient);
    filter: blur(40px);
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 20%;
    background: var(--gradient-2);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 3D Profile Card */
.profile-3d {
    perspective: 1000px;
    position: relative;
}

.profile-card {
    width: 400px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.profile-card:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.card-overlay h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    padding: 40px;
}

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

.stat {
    text-align: center;
    padding: 25px;
    border-radius: 20px;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat:hover {
    transform: translateY(-10px);
}

.stat:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: -1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.about-image {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: auto;
    height: auto;
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.about-img:hover {
    transform: scale(1.03);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: white;
}

.skill-category h3 i {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 25px;
    position: relative;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.skill-progress:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Projects Section */
.projects-section {
    position: relative;
    overflow: hidden;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 400px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    transform: translateY(100px);
    transition: transform 0.5s ease;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tag {
    padding: 8px 16px;
    background: var(--gradient);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.project-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-section {
    position: relative;
    /* display: none; */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: white;
}

.form-control {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.9);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.social-link:hover:before {
    left: 0;
}

.social-link:hover {
    transform: translateY(-5px) rotate(5deg);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.design-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Floating Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    filter: blur(20px);
    z-index: -1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    background: var(--gradient-2);
    animation: float 6s ease-in-out infinite reverse;
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .hero-text h1 {
        font-size: 4rem;
    }
}

@media (max-width: 992px) {

    .hero-content,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .profile-3d {
        order: 1;
        display: flex;
        justify-content: center;
    }

    .profile-card {
        width: 350px;
        height: 450px;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-img {
        height: 500px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .project-card {
        /* transform: translateY(-15px) scale(1.02); */
        height: auto;
    }

    .project-card:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.5s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px 30px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    section {
        padding: 60px 0;
    }

    .profile-card {
        width: 300px;
        height: 400px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 350px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        padding: 40px 0;
    }

    .project-card {
        /* transform: translateY(-15px) scale(1.02); */
        height: auto;
        /* transition: all none; */

    }

    .project-card:hover {
        transform: none;
    }

}