@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');
@import './variables.css';

/* =========================================
   Utility Classes & Reset
   ========================================= */
* {
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    line-height: 1.1;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* Gradient Text Animation */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #e879f9, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s ease infinite;
}

@keyframes gradientText {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.text-accent {
    color: var(--text-accent);
}

/* =========================================
   Background Animation (Nebula)
   ========================================= */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 50vh;
    height: 50vh;
    background: var(--neon-primary);
    /* Violet */
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 60vh;
    height: 60vh;
    background: #4c1d95;
    /* Deep Purple */
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    width: 40vh;
    height: 40vh;
    background: var(--neon-secondary);
    /* Magenta */
    top: 40%;
    left: 60%;
    animation-duration: 22s;
    animation-delay: -10s;
    opacity: 0.4;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 40px) scale(1.1);
    }

    100% {
        transform: translate(-20px, -30px) scale(0.9);
    }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   Glassmorphism Components
   ========================================= */
.glass-card {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.01));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(217, 70, 239, 0.3);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.6);
    transform: translateY(-2px);
}

.btn-glow {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-glow:hover {
    border-color: var(--neon-secondary);
    color: var(--neon-secondary);
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
}

/* =========================================
   Sections & Specifics
   ========================================= */
/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    line-height: 0.95;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Expanded Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 900px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-card-large {
        grid-column: span 2;
    }
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.service-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-secondary);
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--neon-primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

/* Education Timeline (Vertical) */
.edu-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.edu-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-primary), var(--neon-secondary));
    opacity: 0.5;
    box-shadow: 0 0 10px var(--neon-primary);
}

.edu-card {
    margin-left: 3rem;
    position: relative;
}

.edu-card::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 2.5rem;
    width: 14px;
    height: 14px;
    background: var(--bg-dark);
    border: 3px solid var(--neon-secondary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--neon-secondary);
}

.edu-year {
    font-family: var(--font-display);
    color: var(--text-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 0, 0, 0));
}

.project-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-accent);
    font-weight: 600;
}

.project-link:hover {
    text-shadow: 0 0 10px var(--text-accent);
}

/* Contact */
.contact-hub {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--neon-primary);
    color: white;
    box-shadow: 0 0 20px var(--neon-primary);
    transform: scale(1.1) rotate(10deg);
}

.hydra-box {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(217, 70, 239, 0.1));
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 3rem 2rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .edu-container::before {
        left: 15px;
    }

    .edu-card {
        margin-left: 2.5rem;
        padding: 1.5rem;
    }

    .edu-card::before {
        left: -2.35rem;
    }
}