/* DESIGN SYSTEM */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #333333;
    --spacing-section: 100px;
    --spacing-container: 20px;
    --max-width: 1200px;
    --border-radius: 12px;
    --transition: 0.3s ease;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

/* UTILITIES */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-container);
}

.section {
    padding: var(--spacing-section) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent);
    color: var(--text-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-hover);
}

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

.btn-outline:hover {
    background-color: var(--accent);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 10px 0;
    transition: background-color var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title span {
    color: var(--accent);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ABOUT */
.about {
    background-color: var(--bg-secondary);
}

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

.about-image {
    width: 100%;
    height: 400px;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: transform var(--transition), border-color var(--transition);
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skill-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.skill-list li {
    padding: 6px 0;
    position: relative;
    padding-left: 20px;
}

.skill-list li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* PROJECTS */
.projects {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.project-card.featured {
    border-color: var(--accent);
    background-color: rgba(59, 130, 246, 0.05);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.tech-tag {
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-links a {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

.project-links a:hover {
    text-decoration: underline;
}

/* REVIEWS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.review-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 32px;
}

.review-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    font-weight: 600;
    color: var(--text-primary);
}

.review-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* CONTACT */
.contact {
    background-color: var(--bg-primary);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

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

.social-link {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: color var(--transition);
}

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

/* FOOTER */
.footer {
    padding: 15px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background-color: var(--bg-secondary);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .skills-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

    .about-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: var(--spacing-container);
        right: var(--spacing-container);

        background-color: rgba(26, 26, 26, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(15px);

        border: 1px solid rgba(51, 51, 51, 0.5);
        border-radius: var(--border-radius);
        padding: 0;
        flex-direction: column;
        gap: 0;

        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
        margin-top: 8px;
        z-index: 999;

        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.35s ease,
            padding 0.35s ease;
    }

    .nav.active {
        max-height: 400px;
        opacity: 1;
        padding: 16px;
        gap: 8px;
    }

    .nav-link {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 0.95rem;
        white-space: nowrap;
        color: rgba(204, 204, 204, 0.9);
        transform: translateX(-10px);
        opacity: 0;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--text-primary);
    }

    .nav.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }

    .nav.active .nav-link:nth-child(1) { transition-delay: 0.05s; }
    .nav.active .nav-link:nth-child(2) { transition-delay: 0.1s; }
    .nav.active .nav-link:nth-child(3) { transition-delay: 0.15s; }
    .nav.active .nav-link:nth-child(4) { transition-delay: 0.2s; }
    .nav.active .nav-link:nth-child(5) { transition-delay: 0.25s; }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .mobile-menu-btn {
        display: block;
        padding: 8px;
        z-index: 1000;
        background: rgba(26, 26, 26, 0.5);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(51, 51, 51, 0.3);
        border-radius: 8px;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn:hover {
        background: rgba(26, 26, 26, 0.8);
    }

    .mobile-menu-btn.active {
        transform: rotate(90deg);
        background: rgba(59, 130, 246, 0.2);
        border-color: var(--accent);
    }

    /* MENU ANIMATION */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: block;
    }

    /* HERO SECTION */

    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 24px;
    }

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

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

    .section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-buttons,
    .contact-buttons {
        flex-direction: column;
        width: 100%;
        max-width:300px;
        margin: 0 auto;
    }
}
