/* ===================================
   CSS Variables
   =================================== */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #111633;
    --accent-cyan: #00fff5;
    --accent-pink: #ff006e;
    --accent-purple: #8338ec;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --grid-color: rgba(0, 255, 245, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===================================
   Animated Grid Background
   =================================== */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

/* ===================================
   Cursor Glow Effect
   =================================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 245, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ===================================
   Navigation
   =================================== */
nav {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.8s ease-out;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

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

nav a:hover {
    color: var(--accent-cyan);
}

nav a:hover::after {
    width: 100%;
}

/* Resume Button in Nav */
.btn-resume {
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.btn-resume:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 245, 0.3);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.hero-content {
    max-width: 800px;
}

/* Profile Image */
.profile-image-container {
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.1s forwards;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 255, 245, 0.4);
    transition: all 0.3s ease;
    animation: profileGlow 3s ease-in-out infinite;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 245, 0.6);
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(0, 255, 245, 0.4);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 245, 0.6), 0 0 70px rgba(131, 56, 236, 0.3);
    }
}

.hero-tag {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.2s forwards;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.4s forwards;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.6s forwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.8s forwards;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border: 2px solid var(--accent-cyan);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-pink);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    border-color: var(--accent-pink);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 255, 245, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.2);
}

/* ===================================
   Floating Code Snippet
   =================================== */
.code-float {
    position: absolute;
    right: 5%;
    top: 20%;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.2);
    opacity: 0;
    animation: float 6s ease-in-out infinite, fadeIn 1s ease-out 1s forwards;
}

.code-float pre {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    line-height: 1.8;
}

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

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    color: var(--accent-pink);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.skill-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 245, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 255, 245, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent-cyan));
}

.skill-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.skill-card p {
    color: var(--text-secondary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(0, 255, 245, 0.1);
    border: 1px solid rgba(0, 255, 245, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
}

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

.project-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(131, 56, 236, 0.3);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(131, 56, 236, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-purple), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.project-content {
    padding: 2rem;
}

.project-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-purple);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent-pink);
    transform: translateX(5px);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(255, 0, 110, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.contact-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 15px 30px rgba(0, 255, 245, 0.4);
}

/* ===================================
   Footer
   =================================== */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 255, 245, 0.1);
    margin-top: 4rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .btn-resume {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 80vh;
    }

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

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .code-float {
        display: none;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        text-align: center;
    }

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

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

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

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

    .contact-section h2 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .social-link {
        width: 50px;
        height: 50px;
    }
}