/* ==================== Variables & Reset ==================== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --text-dark: #e5e7eb;
    --text-light: #9ca3af;
    --bg-light: #111827;
    --bg-white: #1f2937;
    --border-color: #374151;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Navigation ==================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

/* ==================== Hero Section ==================== */
.hero {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: slideInUp 0.8s ease;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.highlight {
    color: #5c30b3;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    animation: bounce 2s infinite;
}

.hero-scroll span {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 2px;
    height: 20px;
    background: white;
    margin: 0 auto;
    border-radius: 2px;
}

/* ==================== Sections ==================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* ==================== About Section ==================== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 16px;
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.stat h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-light);
    font-size: 14px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.placeholder-image {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: white;
    opacity: 0.9;
}

/* ==================== Projects Section ==================== */
.projects {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image.carousel {
    background: #000;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.project-content p {
    color: #d1d5db;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.view-all-projects {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.view-all-projects .btn-primary {
    padding: 14px 40px;
}

/* ==================== Projects Page ==================== */
.projects-page {
    margin-top: 70px;
    padding: 60px 0;
    background: var(--bg-light);
    min-height: calc(100vh - 70px);
}

.projects-header {
    position: relative;
    margin-bottom: 50px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.back-button:hover {
    color: var(--primary-dark);
    transform: translateX(-5px);
}

.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.project-card-all {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-card-all:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.project-card-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-icon {
    font-size: 50px;
    color: rgba(255, 255, 255, 0.3);
}

.project-card-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.project-card-info p {
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.project-tags-all {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags-all .tag {
    font-size: 12px;
    padding: 4px 10px;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 1200px) {
    .all-projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .all-projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.skills {
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    cursor: default;
}

.skill-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ==================== Experiences Section ==================== */
.experiences {
    background: var(--bg-white);
}

.experiences-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.experience-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.experience-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.experience-header h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 0 4px 0;
}

.experience-company {
    font-size: 12px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

.experience-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.experience-description {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.experience-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.experience-tags .tag {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 4px 10px;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 600;
}

.discord-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 8px;
    color: #5865f2;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
    flex-shrink: 0;
}

.discord-link:hover {
    background: rgba(88, 101, 242, 0.3);
    transform: scale(1.1);
    border-color: #5865f2;
}

/* ==================== Contact Section ==================== */
.contact {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-top: 1px solid var(--border-color);
    color: white;
}

.contact .section-title {
    color: var(--text-dark);
}

.contact .section-subtitle {
    color: #9ca3af;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    margin-top: 5px;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    opacity: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(31, 41, 55, 0.5);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(31, 41, 55, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    background: var(--primary-color);
    color: white;
}

.contact-form .btn-primary:hover {
    background: var(--primary-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-light);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

/* ==================== Animations ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 20px;
        display: block;
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 36px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .all-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .experience-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .about-stats {
        gap: 15px;
    }

    .stat {
        padding: 20px;
    }

    .stat h3 {
        font-size: 24px;
    }

    .social-links {
        gap: 20px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
