@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    /* Colors */
    --bg-color: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;

    /* Neon Accents */
    --accent-primary: #d946ef;
    /* Fuchsia */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-tertiary: #06b6d4;
    /* Cyan */

    --gradient-aurora: linear-gradient(135deg, #d946ef 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-text: linear-gradient(to right, #d946ef, #06b6d4);

    /* Spacing */
    --header-height: 80px;
    --section-padding: 100px 10%;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 20px rgba(139, 92, 246, 0.3);

    --transition-fast: 0.3s ease;
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: default;
    /* Custom cursor pointer below */
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
    cursor: pointer;
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-tertiary));
    border-radius: 4px;
}

/* Animated Background Blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    animation: floatBlob 20s infinite alternate;
}

body::before {
    background: var(--accent-primary);
    top: -10%;
    left: -10%;
}

body::after {
    background: var(--accent-tertiary);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 100px) scale(1.2);
    }
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(0, 0, 0, 0.5);
    /* Darker glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition-fast);
}

.logo h3 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-list {
    display: flex;
    gap: 3rem;
}

.header-list a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

.header-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-aurora);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.3s ease;
}

.header-list a:hover,
.header-list a.active {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header-list a:hover::after,
.header-list a.active::after {
    width: 100%;
}

.header-list-icon {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-list-icon a {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: var(--transition-bounce);
}

.header-list-icon a:hover {
    color: var(--accent-tertiary);
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 15px var(--accent-tertiary);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}

/* ===== SLIDE MENU (Mobile) ===== */
.slide-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: right 0.4s ease-in-out;
}

.slide-menu.active {
    right: 0;
}

.slide-menu a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.slide-menu a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* ===== HERO SECTION ===== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-padding);
    padding-top: calc(var(--header-height) + 50px);
    position: relative;
    overflow: hidden;
}

.home-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

.home-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-tertiary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.home-text h2 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typewriter span {
    color: var(--accent-primary);
    border-right: 3px solid var(--accent-primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.home-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
    border-left: 2px solid var(--accent-secondary);
    padding-left: 20px;
}

.home-btn {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-bounce);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-aurora);
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

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

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

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Floating Image with Glow */
.home-img {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    /* For 3D tilt */
}

.home-img img {
    width: 100%;
    max-width: 420px;
    border-radius: 30px;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatImg 6s ease-in-out infinite;
    z-index: 2;
    transition: transform 0.1s;
    /* Smooth tilt */
}

.home-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-aurora);
    filter: blur(60px);
    opacity: 0.6;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes floatImg {

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

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

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Social Sidebar */
.socials-side {
    position: fixed;
    right: 40px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    z-index: 100;
}

.socials-side::after {
    content: '';
    width: 1px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
}

.socials-side a {
    font-size: 1.4rem;
    color: var(--text-secondary);
    transition: var(--transition-bounce);
}

.socials-side a:hover {
    color: var(--accent-primary);
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 20px var(--accent-primary);
}

/* ===== GENERAL SECTION STYLES ===== */
.section-page {
    padding: var(--section-padding);
    padding-top: 150px;
    min-height: 100vh;
}

.section-title {
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--accent-tertiary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== ABOUT PAGE ===== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-bounce);
    filter: grayscale(100%);
}

.about-img-wrapper:hover img {
    filter: grayscale(0%);
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 30px var(--accent-secondary);
}

.about-text {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: var(--glass-shadow);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.skills-list p {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.skills-list span {
    color: var(--accent-primary);
    margin-right: 15px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--accent-primary);
}

/* ===== PROJECT PAGE ===== */
.project-header {
    text-align: center;
    margin-bottom: 5rem;
}

.tools-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 5rem;
}

.tool-badge {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    cursor: default;
}

.tool-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-5px);
}

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

.project-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    position: relative;
    /* 3D effect foundation */
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(217, 70, 239, 0.2);
}

.project-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    opacity: 0.6;
}

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

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

.project-content {
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #fff;
    transition: 0.3s;
}

.project-card:hover .project-content h3 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-size: 0.75rem;
    color: #fff;
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ===== CONTACT PAGE ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-tertiary);
    transform: translateX(10px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.info-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #fff;
}

.info-text p {
    color: var(--text-secondary);
}

.contact-form-box {
    background: rgba(20, 20, 20, 0.6);
    padding: 50px;
    border-radius: 30px;
    border: var(--glass-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

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

.form-input {
    width: 100%;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .home-text p {
        margin: 0 auto 3rem auto;
    }

    .home-btn {
        justify-content: center;
    }

    .socials-side {
        display: none;
    }

    .contact-container,
    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 20px;
    }

    .header-list,
    .header-list-icon {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

    .contact-form-box {
        padding: 30px;
    }

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