:root {
    --bg-dark: #050505;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #00f3ff;
    /* Neon Cyan */
    --primary-dim: rgba(0, 243, 255, 0.1);
    --secondary: #7000ff;
    /* Neon Purple */
    --accent-gradient: linear-gradient(135deg, var(--primary), var(--secondary));

    --font-main: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Glow Effect */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 243, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-dim);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* Cyberpunk Chromatic Aberration Effect */
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: chromatic-aberration-1 3s ease-in-out infinite;
    text-shadow: -2px 0 var(--primary), 2px 0 var(--secondary);
}

.glitch::after {
    animation: chromatic-aberration-2 3s ease-in-out infinite;
    text-shadow: 2px 0 var(--primary), -2px 0 var(--secondary);
}

@keyframes chromatic-aberration-1 {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0;
    }

    5% {
        transform: translateX(-2px);
        opacity: 0.8;
    }

    10% {
        transform: translateX(0);
        opacity: 0;
    }
}

@keyframes chromatic-aberration-2 {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0;
    }

    15% {
        transform: translateX(2px);
        opacity: 0.7;
    }

    20% {
        transform: translateX(0);
        opacity: 0;
    }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    position: relative;
}

.bio-short {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-dim);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px var(--primary-dim);
}

.btn-outline {
    border-color: var(--text-muted);
    color: var(--text-main);
}

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

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    width: 350px;
    height: 350px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    /* Breathing glow animation */
    animation: breathe-glow 4s ease-in-out infinite;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

@keyframes breathe-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
    box-shadow: 0 0 10px var(--primary);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 243, 255, 0.05);
}

.about-card .icon {
    color: var(--primary);
    width: 40px;
    height: 40px;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.about-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Skills */
.skills-category {
    margin-bottom: 3rem;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skills-category h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.skills-category h3 i {
    color: var(--primary);
}

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

.tags span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: var(--transition);
}

.tags span:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0, 243, 255, 0.05);
}

/* Contact */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    padding: 2rem 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 200px;
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    transform: translateY(-5px);
}

.contact-card i {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        z-index: 100;
    }
/*THIS PART*/
    .hero {
        padding-top: 300px;
        margin-bottom: 7rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
    }

    /* Mobile order: buttons, image, subtitle, title, glitch, description */
    .cta-group {
        order: 1;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-visual {
        order: 2;
        margin-bottom: 1.5rem;
    }

    .subtitle {
        order: 3;
    }

    .hero h1 {
        order: 4;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .glitch {
        order: 5;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .bio-short {
        order: 6;
        margin: 0 auto 1.5rem;
        font-size: 1rem;
    }

    .profile-frame {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }
}
