* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --dark: #0f172a;
    --darker: #020617;
    --gray: #94a3b8;
    --light: #e5e7eb;
    --card-bg: #1e293b;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ==================== SIDEBAR ==================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    z-index: 400;
    transition: all 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-right: 3px solid var(--primary);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 500;
    box-shadow: 8px 0 30px rgba(56, 189, 248, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 20px 0;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    transform: rotate(90deg);
    color: var(--primary-dark);
}

.sidebar-header {
    padding: 25px;
    text-align: center;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    font-size: 1.6rem;
    color: var(--primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
}

.sidebar-link {
    display: block;
    padding: 15px 20px;
    color: var(--gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border-left-color: var(--primary);
    transform: translateX(10px);
}

/* ==================== HAMBURGER ==================== */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 600;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background: var(--primary-dark);
}

/* ==================== HEADER ==================== */
.header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 2px solid var(--primary);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header h1 {
    display: none;
}

.lang-btn {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-left: auto;
}

.lang-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ==================== MAIN CONTAINER ==================== */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: calc(100vh - 100px);
}

.dashboard {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.dashboard-title {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    animation: slideInDown 0.8s ease-out;
    font-weight: bold;
    text-shadow: 0 5px 20px rgba(56, 189, 248, 0.3);
}

.dashboard-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 60px;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* ==================== CARDS GRID ==================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 35px;
    width: 100%;
}

.card {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 50px 30px;
    border-radius: 18px;
    border: 3px solid #334155;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    cursor: pointer;
    min-height: 300px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    color: inherit;
}

.card:hover {
    transform: translateY(-25px) scale(1.08);
    border-color: var(--primary-dark);
    box-shadow: 0 35px 70px rgba(14, 165, 233, 0.5);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.card-icon {
    font-size: 4.5rem;
    animation: fadeIn 0.8s ease-out;
}

.card-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--light);
}

.card:hover .card-title {
    color: var(--dark);
}

.card-desc {
    font-size: 1rem;
    color: var(--gray);
}

.card:hover .card-desc {
    color: var(--dark);
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 80px 15%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light);
    line-height: 1.8;
    margin-bottom: 50px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 100px 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    animation: slideInUp 0.8s ease-out 0.2s both;
}

/* Info Cards */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--darker);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid #334155;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.2);
    background: var(--card-bg);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--light);
    line-height: 1.6;
}

/* Content Cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.content-card {
    background: var(--darker);
    padding: 35px;
    border-radius: 12px;
    border: 2px solid #334155;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 250px;
    justify-content: center;
}

.content-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.2);
    background: var(--card-bg);
}

.content-card h3 {
    color: var(--primary);
    font-size: 1.3rem;
}

.content-card p {
    color: var(--light);
    font-size: 0.95rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline-item {
    background: var(--darker);
    padding: 30px;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    text-align: left;
    animation: slideInUp 0.8s ease-out;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: var(--card-bg);
    transform: translateX(15px);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15);
}

.timeline-item h4 {
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-item .date {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--light);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #334155;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.08) translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.3);
}

/* Skills/Hobbies List */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.item-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 25px;
    border-radius: 12px;
    font-weight: bold;
    color: var(--dark);
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out;
    cursor: pointer;
}

.item-badge:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
}

/* Contact Form */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 40px auto 0;
}

.form input,
.form textarea {
    padding: 15px;
    background: var(--darker);
    border: 2px solid #334155;
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
    background: var(--card-bg);
}

.form button {
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 8px;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 2px solid var(--primary);
    padding: 30px;
    text-align: center;
    color: var(--gray);
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .header h1 {
        font-size: 1.3rem;
    }

    .dashboard-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 50px 10%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 35px 25px;
        min-height: 250px;
    }

    .card-icon {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .info-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        max-width: 280px;
    }

    .hamburger {
        top: 15px;
        left: 15px;
    }

    .hamburger span {
        width: 24px;
        height: 2.5px;
    }

    .header {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
    }

    .header h1 {
        font-size: 1.1rem;
    }

    .lang-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .dashboard-title {
        font-size: 1.8rem;
    }

    .dashboard-subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        gap: 15px;
    }

    .card {
        padding: 25px 15px;
        min-height: 200px;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .section {
        padding: 40px 5%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}