/* ========================================
   GLOBAL & THEME
   ======================================== */
:root {
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --accent: #3b56cc;
    --accent-hover: #242b8a;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --bg-color: #3b56cc;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-color);
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

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

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link.active {
    background: var(--accent);
    color: white;
}

.nav-link:not(.active):hover {
    color: var(--accent);
    outline: 1px solid var(--accent);
    transform: translateY(-2px);
}

.nav-link.active:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: #d1d5db;
}

.btn-resume {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-resume:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 40px;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-text {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 48px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.btn-primary-large {
    background: white;
    color: var(--accent);
    padding: 18px 48px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: white;
    color: var(--accent);
    transform: translateY(-4px);
}

.scroll-indicator {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

.scroll-indicator:hover {
    color: white;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

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

    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: black;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: black;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
    padding: 80px 30px;
    background: rgba(255, 255, 255, 0.2);
}

.projects-section .section-title,
.projects-section .section-subtitle {
    color: white !important;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: var(--card-bg);
    border-radius: 24px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.project-showcase:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.project-showcase:nth-child(even) {
    grid-template-columns: 1.2fr 1fr;
}

.project-showcase:nth-child(even) .project-image {
    order: 2;
}

.project-image {
    border-radius: 16px;
    overflow: hidden;
    height: 15rem;
    width: 20rem;
    background: var(--accent);
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    justify-self: center;
}

.project-placeholder {
    color: rgba(255, 255, 255, 0.5);
    padding: 40px;
}

.project-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge-live {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-tech {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.project-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 24px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.tech-stack span {
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.project-actions {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.btn-project-primary {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-project-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-project-secondary {
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.btn-project-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skills-section {
    padding: 80px 30px;
    background: white;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid black;
    box-shadow: var(--shadow-sm);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-list span {
    background: white;
    padding: 10px 20px;
    border-radius: 16px;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid black;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 80px 30px;
    background: var(--bg-color);
    text-align: center;
}

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

.contact-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
}

.contact-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 48px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.contact-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    color: white;
}

/* ========================================
   MODAL
   ======================================== */
.modal-content {
    border-radius: 16px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 24px;
}

.modal-title {
    font-weight: 700;
    color: var(--text);
}

/* ========================================
   ARROWS CANVAS
   ======================================== */
#arrows-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
    background-color: transparent;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
    }

    .nav-link {
        display: none;
    }

    .project-showcase,
    .project-showcase:nth-child(even) {
        grid-template-columns: 1fr;
        padding: 32px;
        gap: 32px;
    }

    .project-showcase:nth-child(even) .project-image {
        order: 1;
    }

    .hero-section {
        padding: 100px 24px 60px;
    }

    .projects-section,
    .skills-section,
    .contact-section {
        padding: 80px 24px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: auto;
        width: 100%;
    }
}