/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #ffffff;
    --text-dark: #2d3748;
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* ================= HEADER & NAVIGATION ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    transition: transform 0.3s ease;
    border: 2px solid var(--glass-border);
}

.logo img:hover {
    transform: scale(1.1) rotate(5deg);
}

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

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-menu li a:hover {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.nav-menu li a:hover::before {
    width: 80%;
}

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

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ================= HOME SECTION WITH FLOATING OBJECTS ================= */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Floating Objects Background */
.home-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.4), transparent);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.home-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 87, 108, 0.3), transparent);
    border-radius: 50%;
    bottom: 15%;
    right: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Additional floating shapes */
.home-section .home-content::before,
.home-section .home-content::after {
    content: '';
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: -1;
}

.home-section .home-content::before {
    width: 200px;
    height: 200px;
    background: rgba(79, 172, 254, 0.2);
    top: 50%;
    right: -50px;
    animation: morph 10s ease-in-out infinite;
}

.home-section .home-content::after {
    width: 180px;
    height: 180px;
    background: rgba(118, 75, 162, 0.2);
    bottom: 20%;
    left: -40px;
    animation: morph 12s ease-in-out infinite reverse;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }
}

.home-content {
    text-align: center;
    z-index: 1;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(244, 114, 182, 0.8));
    }
}

.home-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* ================= ABOUT SECTION ================= */
.about-me {
    padding: 5rem 0;
    position: relative;
}

.about-heading,
.skills-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    transition: transform 0.3s ease;
}

.about-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.5);
}

.about-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.5);
    transition: transform 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.1) rotate(5deg);
}

.about-content p {
    flex: 1;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ================= SKILLS SECTION ================= */
.skills {
    margin-top: 5rem;
}

.skills-subheading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 2rem 0 1.5rem;
    color: #f472b6;
    text-align: center;
}

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

.skill-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.skill-item:nth-child(1) {
    --i: 1;
}

.skill-item:nth-child(2) {
    --i: 2;
}

.skill-item:nth-child(3) {
    --i: 3;
}

.skill-item:nth-child(4) {
    --i: 4;
}

.skill-item:nth-child(5) {
    --i: 5;
}

.skill-item:nth-child(6) {
    --i: 6;
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.4);
}

.skill-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-item:hover img {
    transform: rotateY(360deg);
}

.skill-item span {
    display: block;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ================= PORTFOLIO SECTION ================= */
.portfolio-section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.project-card:nth-child(1) {
    --i: 1;
}

.project-card:nth-child(2) {
    --i: 2;
}

.project-card:nth-child(3) {
    --i: 3;
}

.project-card:nth-child(4) {
    --i: 4;
}

.project-card:nth-child(5) {
    --i: 5;
}

.project-card:nth-child(6) {
    --i: 6;
}

.project-card:nth-child(7) {
    --i: 7;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(31, 38, 135, 0.5);
    border-color: rgba(167, 139, 250, 0.5);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    padding: 1.5rem 1.5rem 1rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-light);
}

.tech-icons {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    font-size: 1.5rem;
    flex-wrap: wrap;
}

.tech-icons i {
    transition: all 0.3s ease;
}

.tech-icons i:hover {
    transform: scale(1.3) rotateY(180deg);
    color: #f472b6;
}

.project-buttons {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    background: var(--primary-gradient);
    color: white;
    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.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
    background: var(--secondary-gradient);
}

.btn-secondary:hover {
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.5);
}

/* ================= CONTACT SECTION ================= */
.contact {
    padding: 5rem 0;
    position: relative;
}

.contact-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease-out;
}

.contact-content h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin: 1rem 0;
}

.contact-content a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: #f472b6;
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    background: var(--primary-gradient);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.5);
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(30, 60, 114, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        padding: 2rem;
        gap: 1rem;
        transition: right 0.3s ease;
        border-top: 1px solid var(--glass-border);
    }

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

    .about-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .about-content img {
        width: 150px;
        height: 150px;
    }

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

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

    .project-buttons {
        flex-direction: column;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem 15px;
    }

    .logo img {
        height: 40px;
    }

    .about-content {
        padding: 1.5rem;
    }

    .contact-content {
        padding: 2rem 1.5rem;
    }

    .skill-item {
        padding: 1rem;
    }

    .skill-item img {
        width: 50px;
        height: 50px;
    }
}

/* ================= SCROLLBAR STYLING ================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 60, 114, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #764ba2, #f5576c);
}