/* ================================================
   SHADOW'S PROFILE - ENHANCED STYLES
   ================================================ */

:root {
    --bg-dark: #0a0a0f;
    --surface: #12121a;
    --surface-light: #1a1a25;
    --primary: #b400ff;
    --primary-dim: rgba(180, 0, 255, 0.3);
    --secondary: #00ffd5;
    --secondary-dim: rgba(0, 255, 213, 0.3);
    --accent: #ff3366;
    --accent-dim: rgba(255, 51, 102, 0.3);
    --text: #ffffff;
    --text-dim: #a0a0b0;
    --gradient: linear-gradient(135deg, #b400ff 0%, #00ffd5 50%, #ff3366 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--surface);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ================================================
   ANIMATED BACKGROUND
   ================================================ */

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--primary-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--primary-dim) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    pointer-events: none;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: float 15s infinite;
    opacity: 0;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Cursor Follower */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out;
    mix-blend-mode: difference;
}

/* ================================================
   HEADER
   ================================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--primary-dim);
    transition: all 0.3s;
}

.main-header:hover {
    background: rgba(10, 10, 15, 0.95);
}

.header-left .logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px var(--primary)); }
    to { filter: drop-shadow(0 0 25px var(--primary)); }
}

.header-right {
    display: flex;
    gap: 2rem;
}

.nav-item {
    cursor: pointer;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 8px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-item:hover {
    color: var(--secondary);
}

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

/* ================================================
   HERO SECTION - PURPLE
   ================================================ */

.purple {
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #1a0033 0%, #0a0a0f 50%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.purple::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, var(--primary-dim), transparent, var(--secondary-dim), transparent);
    animation: rotate 15s linear infinite;
    opacity: 0.3;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--surface-light);
    border-radius: 24px;
    padding: 4rem;
    display: flex;
    gap: 4rem;
    align-items: center;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 80px rgba(180, 0, 255, 0.15);
}

.container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gradient);
    border-radius: 24px;
    opacity: 0.3;
    z-index: -1;
}

/* Profile Image */
.profile-img-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 2;
    border: 4px solid var(--surface-light);
    box-shadow: 0 0 60px var(--primary-dim);
    animation: floatImg 6s ease-in-out infinite;
}

@keyframes floatImg {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.profile-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    border-radius: 50%;
    animation: rotateRing 8s linear infinite;
}

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

/* Right Content */
.right {
    flex: 1.5;
    color: var(--text);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--primary-dim);
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.right h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.glow-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 10px var(--primary)); }
    to { filter: drop-shadow(0 0 30px var(--primary)); }
}

.typing-effect {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.typewriter {
    font-family: 'JetBrains Mono', monospace;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.right p {
    margin: 1.5rem 0;
    line-height: 1.8;
    color: var(--text-dim);
    font-size: 1.1rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.tagline {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(180, 0, 255, 0.1) 0%, rgba(0, 255, 213, 0.05) 100%);
    border: 1px solid rgba(180, 0, 255, 0.3);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.tagline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #b400ff 0%, #00ffd5 100%);
}

.tagline-line {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.tagline-line.highlight {
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(90deg, #b400ff, #00ffd5, #ff3366);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(180, 0, 255, 0.5));
}

.tagline-sub {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
    font-style: italic;
    opacity: 0.9;
}

.icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.icon-link {
    width: 45px;
    height: 45px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
    text-decoration: none;
}

.icon-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--primary-dim);
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-dim);
}

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

/* ================================================
   STATS SECTION
   ================================================ */

.stats {
    background: var(--bg-dark);
    padding: 5rem 2rem;
    border-top: 1px solid var(--surface-light);
    border-bottom: 1px solid var(--surface-light);
}

.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-wrap: wrap;
}

.stats-text {
    flex: 1;
    min-width: 300px;
}

.stats-text .tag {
    color: var(--secondary);
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stats-text h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-text .desc {
    color: var(--text-dim);
    line-height: 1.7;
}

.stats-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 300px;
}

.stats-card {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: scale(1.02);
}

/* ================================================
   SERVICES SECTION - ORANGE
   ================================================ */

.orange {
    background: linear-gradient(135deg, #1a0a1a 0%, #0a0a0f 100%);
    padding: 6rem 2rem;
    color: white;
}

.orange-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.left-content {
    flex: 1;
    min-width: 300px;
}

.tag {
    letter-spacing: 3px;
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--secondary);
}

.left-content h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    line-height: 1.2;
}

.left-content .desc {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: 10px;
    transition: all 0.3s;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

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

.skill-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--primary-dim);
}

.skill-icon {
    font-size: 1.2rem;
}

/* Right Services List */
.right-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 1.1rem;
    transition: all 0.3s;
    cursor: pointer;
}

.service-item:hover {
    padding-left: 1rem;
    border-bottom-color: var(--primary);
}

.service-item:hover .arrow {
    transform: translate(5px, -5px);
    background: var(--primary);
    color: white;
}

.arrow {
    width: 36px;
    height: 36px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: all 0.3s;
}

/* ================================================
   PROJECTS SECTION
   ================================================ */

.projects-section {
    background: var(--bg-dark);
    padding: 6rem 2rem;
}

.projects-container {
    max-width: 1000px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 3rem;
}

.projects-header h2 {
    font-size: 2.5rem;
    margin-top: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--surface-light);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-dim);
    box-shadow: 0 25px 60px rgba(180, 0, 255, 0.15);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.project-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.project-info p {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.4rem 0.8rem;
    background: var(--surface-light);
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--secondary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.project-link:hover {
    gap: 1rem;
}

/* ================================================
   CONTACT SECTION - BLUE
   ================================================ */

.blue {
    background: linear-gradient(180deg, #0a0a0f 0%, #0d1a2d 100%);
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
}

.blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-dim), transparent);
}

.contact-card {
    background: var(--surface);
    width: 100%;
    max-width: 700px;
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--surface-light);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-dim), transparent, var(--secondary-dim), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0.2;
}

.contact-card h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.contact-desc {
    color: var(--text-dim);
    margin-bottom: 2rem;
    position: relative;
}

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

.social-link {
    width: 55px;
    height: 55px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--primary-dim);
}

.btn-contact {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.btn-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--primary-dim);
}

/* ================================================
   FOOTER
   ================================================ */

footer {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    color: var(--text-dim);
    font-size: 0.9rem;
    border-top: 1px solid var(--surface-light);
}

footer .glow {
    color: var(--secondary);
    animation: textGlow 2s ease-in-out infinite alternate;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 968px) {
    .container {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .profile-img, .profile-ring, .profile-glow {
        width: 200px;
        height: 200px;
    }
    
    .profile-ring {
        width: 230px;
        height: 230px;
    }
    
    .profile-glow {
        width: 220px;
        height: 220px;
    }
    
    .orange-container {
        flex-direction: column;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-header {
        padding: 1rem 1.5rem;
    }
    
    .header-right {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .right h1 {
        font-size: 1.75rem;
    }
    
    .typing-effect {
        font-size: 1.1rem;
    }
    
    .stats-text h2, .left-content h2, .projects-header h2, .contact-card h1 {
        font-size: 1.75rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-icon {
        width: 60px;
        height: 60px;
    }
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */

.scroll-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}
