@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
    /* Dark Neon Palette */
    --bg-body: #050505;
    --bg-card: #0a0a0a;
    --bg-nav: rgba(5, 5, 5, 0.85);

    --primary: #00f3ff;
    /* Neon Cyan */
    --primary-dim: rgba(0, 243, 255, 0.1);
    --secondary: #bc13fe;
    /* Neon Purple */
    --secondary-dim: rgba(188, 19, 254, 0.1);

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    --border: #333333;
    --border-glow: rgba(0, 243, 255, 0.5);

    --shadow-neon: 0 0 10px rgba(0, 243, 255, 0.3), 0 0 20px rgba(0, 243, 255, 0.1);
    --shadow-neon-hover: 0 0 20px rgba(0, 243, 255, 0.6), 0 0 40px rgba(0, 243, 255, 0.3);

    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Animations */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px var(--primary-dim);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-dim), 0 0 10px var(--primary);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-dim);
    }
}

/* Navbar */
.navbar {
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

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

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

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

.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger div {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    margin: 6px 0;
    transition: var(--transition);
}

.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 80px 0;
}

/* Typography */
h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin-top: 10px;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
}

.hero .role {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--secondary-dim);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-dim);
    position: relative;
    overflow: hidden;
}

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

.btn:hover {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 30px var(--primary);
    transform: translateY(-3px);
}

.btn:hover::before {
    left: 100%;
}

/* About Section */
.about-section h1,
.projects-section h1,
.contacts-section h1 {
    text-align: center;
    margin-bottom: 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2rem;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.05);
}

.timeline-item {
    position: relative;
    padding: 24px;
    margin-bottom: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.timeline-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
    transform: translateX(10px);
}

.timeline-item .period {
    font-size: 0.875rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 243, 255, 0.03), transparent);
    z-index: -1;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon-hover);
    transform: translateY(-10px);
}

.project-card h3 a {
    color: var(--text-main);
    transition: var(--transition);
}

.project-card h3 a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

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

.project-tech span {
    font-size: 0.75rem;
    color: var(--secondary);
    background-color: rgba(188, 19, 254, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid rgba(188, 19, 254, 0.2);
}

/* Contacts Section */
.contacts-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 2rem;
}

.contact-card {
    display: contents;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 40px;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.contact-btn i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
    text-shadow: 0 0 10px var(--primary-dim);
}

.contact-btn:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-neon-hover);
    transform: translateY(-5px) scale(1.02);
    background: rgba(0, 243, 255, 0.05);
}

.contact-btn:hover i {
    transform: scale(1.2) rotate(5deg);
    text-shadow: 0 0 15px var(--primary);
}

/* Footer */
footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0;
    margin-top: auto;
    text-align: center;
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

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

.social-links a:hover {
    color: var(--primary);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px var(--primary-dim);
    transform: translateY(-5px);
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {

    /* Container adjustments */
    .container {
        padding: 0 16px;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        height: calc(100vh - 80px);
        background-color: var(--bg-card);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        border-top: 1px solid var(--border);
        z-index: 999;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .burger {
        display: block;
    }

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

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Grids */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .contacts-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Cards */
    .project-card,
    .contact-card {
        padding: 20px;
    }

    /* Buttons */
    .cta-btn,
    .contact-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Skills */
    .skills-list {
        gap: 8px;
    }

    .skill-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    /* Timeline */
    .timeline-item {
        padding: 16px;
    }

    /* Social links */
    .social-links {
        gap: 20px;
    }

    .social-links a {
        font-size: 1.5rem;
        width: 45px;
        height: 45px;
    }

    /* Comments */
    .comment-card {
        padding: 16px;
    }

    .comment-form textarea {
        min-height: 120px;
        font-size: 0.95rem;
    }

    /* Auth methods */
    .auth-methods {
        padding: 24px;
        gap: 16px;
    }

    .auth-btn {
        width: 100%;
        padding: 14px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

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

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

    h1 {
        font-size: 1.75rem;
    }

    .navbar {
        padding: 15px 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .project-card h3,
    .contact-btn span {
        font-size: 1rem;
    }

    .cta-btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}