/* Root Variables */
: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%);
    --text-dark: #0f0f1e;
    --text-light: #ffffff;
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

/* Three.js Container */
#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(241, 85, 126, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Text Gradients */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

/* Navigation */
.navbar-animated {
    background: rgba(10, 10, 15, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar-animated:hover {
    background: rgba(10, 10, 15, 0.95) !important;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.nav-link-animated {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link-animated::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.profile-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 2;
}

.profile-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 30px 80px rgba(102, 126, 234, 0.6);
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit::before,
.orbit::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-gradient);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

.orbit::after {
    bottom: 0;
    top: auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-content .lead {
    font-weight: 500;
    opacity: 0.9;
}

.btn-gradient {
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    color: white;
    transform: translateY(-3px);
}

.btn-hover-scale {
    transition: all 0.3s ease;
}

.btn-hover-scale:hover {
    transform: scale(1.05);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Social Icons */
.social-icons {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon:hover {
    background: var(--primary-gradient);
    border-color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.social-icon.large {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid white;
    border-radius: 13px;
    padding: 8px 0;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scrollIndicatorAnimation 2s ease-in-out infinite;
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* About Section */
.about-image-wrapper {
    position: relative;
}

.about-image-box {
    position: relative;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
}

.about-image-box img {
    width: 100%;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.about-image-box:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 2px solid var(--primary-gradient);
    border-radius: 20px;
    opacity: 0.5;
    pointer-events: none;
    animation: orbitAnimation 4s linear infinite;
}

.stat-box {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.stat-box h3 {
    font-size: 2rem;
    margin-bottom: 5px;
}

/* Skills Section */
.bg-gradient-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(241, 85, 126, 0.05) 100%);
    position: relative;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.skill-card:hover::before {
    opacity: 0.1;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-20px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.skill-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.skill-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.badge-gradient {
    background: var(--primary-gradient);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge-gradient:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Portfolio Section */
.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-20px);
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 25px;
}

.project-content h5 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.tag:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.6);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(241, 85, 126, 0.1) 100%);
}

.contact-box {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.contact-box i {
    font-size: 3rem;
}

.contact-box a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-box a:hover {
    color: #667eea !important;
    text-decoration: underline;
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .profile-wrapper {
        width: 250px;
        height: 250px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .stat-box {
        margin-bottom: 15px;
    }

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

@media (max-width: 576px) {
    .hero-section .row {
        flex-direction: column-reverse;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skill-card,
    .project-card {
        margin-bottom: 15px;
    }
}
