:root {
    --bg-color: #0a0a0a;
    --bg-secondary: rgba(19, 19, 19, 0.85);
    --border-glass: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.logo-text {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.1rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(3, 3, 6, 0.75);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(3, 3, 6, 0.9);
    border-bottom: 1px solid rgba(59, 110, 165, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 28px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.85rem;
}

.nav-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switch:hover {
    border-color: rgba(59, 110, 165, 0.4);
    background: rgba(59, 110, 165, 0.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-align: center;
}

.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 110, 165, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(59, 110, 165, 0.08);
    border-color: rgba(59, 110, 165, 0.4);
}

/* Hero */
.hero {
    position: relative;
    padding: 9rem 2rem 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    width: 72px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(59, 110, 165, 0.08);
    border: 1px solid rgba(59, 110, 165, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.gradient-text {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Section styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 5rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3.5rem;
    font-weight: 800;
    color: #ffffff;
}

/* Glowing Card Pattern */
.glowing-card {
    position: relative;
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glowing-card:hover {
    border-color: rgba(59, 110, 165, 0.25);
    box-shadow: 0 10px 30px rgba(3, 3, 6, 0.6);
    transform: translateY(-4px);
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 800px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-card.highlight-card {
    border-color: rgba(59, 110, 165, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.project-header .icon {
    font-size: 2rem;
}

.project-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-live {
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-dev {
    background: rgba(59, 110, 165, 0.08);
    color: var(--accent-hover);
    border: 1px solid rgba(59, 110, 165, 0.2);
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
}

.project-card p {
    color: var(--text-muted);
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    z-index: 2;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    z-index: 2;
}

.tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
}

.project-link {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--accent-hover);
}

/* Contact box */
.cta-section {
    max-width: 800px;
    margin: 1rem auto 5rem;
    padding: 3rem 2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
}

.contact-email {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    user-select: all;
}

.contact-box .btn {
    white-space: nowrap;
}

@media (max-width: 580px) {
    .contact-box {
        flex-direction: column;
        border-radius: 14px;
        padding: 1rem;
        width: 100%;
    }
    .contact-email {
        margin-bottom: 0.5rem;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 110, 165, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(59, 110, 165, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 110, 165, 0); }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive navigation */
@media (max-width: 860px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(3, 3, 6, 0.98);
        padding: 2rem;
        gap: 1.2rem;
        border-bottom: 1px solid var(--border-glass);
    }
    .nav-links a {
        font-size: 1.05rem;
        width: 100%;
        text-align: center;
        padding: 0.4rem 0;
    }
}

@media (max-width: 480px) {
    .nav-actions {
        gap: 0.4rem;
    }
    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    .hero {
        padding-top: 8rem;
    }
}
