/* ==========================================================================
   CSS Variables & Ultra-Aesthetic Theming
   ========================================================================== */
:root {
    /* Color Palette: Cyber-Tech Premium */
    --bg-base: #030014;         /* Deepest void space */
    --bg-surface: rgba(10, 10, 25, 0.6); /* Translucent glass */
    --bg-card: rgba(20, 20, 40, 0.4); 
    
    --neon-cyan: #00f0ff;
    --neon-purple: #7000ff;
    --neon-pink: #ff0055;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Spacing & Layout */
    --section-padding: 120px 20px;
    --container-width: 1100px;
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   Base Styles & Animated Background
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Ambient Background Blobs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    z-index: -1;
    filter: blur(120px);
    opacity: 0.4;
    animation: floatBlob 20s infinite alternate linear;
    pointer-events: none;
}

body::before {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 60%);
    animation-delay: -5s;
}

body::after {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 60%);
    animation-duration: 25s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 15%) scale(0.9); }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-padding {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Navigation (Advanced Glassmorphism)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 0, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo .highlight {
    color: var(--neon-pink);
    -webkit-text-fill-color: var(--neon-pink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Creative Outline Button */
.btn-primary-outline {
    position: relative;
    padding: 0.6rem 1.5rem !important;
    border-radius: 30px;
    color: var(--neon-cyan) !important;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-base), var(--bg-base)) padding-box,
                linear-gradient(45deg, var(--neon-cyan), var(--neon-purple)) border-box;
    overflow: hidden;
    z-index: 1;
}

.btn-primary-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary-outline:hover {
    color: #fff !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary-outline:hover::before {
    opacity: 1;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
}

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

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.greeting {
    color: var(--neon-cyan);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a1a1aa, var(--neon-cyan));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.role {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.description {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 90%;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

/* Hyper-Aesthetic Glow Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-cyan));
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan), var(--neon-pink));
    background-size: 300%;
    z-index: -1;
    animation: glowingBorder 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(112, 0, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 2rem;
    background: var(--bg-surface);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.social-links a:hover {
    color: #fff;
    background: var(--neon-purple);
    transform: translateY(-5px) rotate(8deg);
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.4);
    border-color: transparent;
}

/* Image Container */
.hero-image-container {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    z-index: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Pulsing animated rings behind the photo */
.glow-ring {
    position: absolute;
    top: -20px; right: -20px; bottom: -20px; left: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), var(--neon-cyan));
    z-index: 1;
    filter: blur(25px);
    opacity: 0.6;
    animation: spinGlow 8s linear infinite;
}

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

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--neon-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

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

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 200px; height: 200px;
    background: var(--neon-purple);
    filter: blur(100px);
    opacity: 0.3;
    z-index: -1;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(145deg, rgba(30,30,50,0.6), rgba(15,15,25,0.8));
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(112, 0, 255, 0.2);
    border-color: rgba(255,255,255,0.1);
}

.skill-category:hover::after {
    transform: scaleX(1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header i {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 8px rgba(0,240,255,0.5));
}

.category-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: default;
}

.tag:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,240,255,0.2);
}

/* ==========================================================================
   Projects Section (Advanced 3D Cards)
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(20, 20, 35, 0.6);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Gradient hover effect */
.project-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(112, 0, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(112,0,255,0.1);
}

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

.project-content {
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
    background: linear-gradient(135deg, rgba(30, 20, 50, 0.8), rgba(10, 10, 25, 0.9));
    border-radius: 30px;
    padding: 5rem 3rem;
    border: 1px solid rgba(112, 0, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.contact-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(112, 0, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: inset 0 0 10px rgba(0,240,255,0.2);
}

.contact-item h4 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #02000a;
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--neon-cyan);
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--neon-cyan));
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .description {
        margin: 0 auto 3rem auto;
    }

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

    .hero-image-container {
        order: -1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 0, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .name {
        font-size: 3.5rem;
    }

    .section-padding {
        padding: 80px 20px;
    }

    .about-content {
        padding: 2.5rem 1.5rem;
    }

    .contact-card {
        padding: 3rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .name {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1.5rem;
    }
}
