@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100;200;300;400;500;600;700;800&display=swap');

/* =========================================================
   VARIABLES GLOBALES - SYDRAONE
========================================================= */

:root {
    --primary-white: #ffffff;
    --primary-light: #3b82f6;
    --accent: #22d3ee;
    --accent-light: #67e8f9;

    --dark-bg: #20376b;
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.05);

    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.12);

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --shadow-card: 0 25px 60px rgba(0,0,0,0.35);
    --shadow-img: 0 20px 40px rgba(0,0,0,0.45);

    --radius-xl: 35px;
    --radius-lg: 25px;
    --radius-pill: 999px;

    --transition: 0.35s ease;

    --font-family: 'Sora', sans-serif;
}

/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow-x: hidden;
}

.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0F2957 50%, var(--primary-light) 100%);
    color: white;
    padding: 7rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* =========================================================
   LAYOUT
========================================================= */

.portfolio-page {
    width: 100%;
}

.portfolio-section {
    padding: 60px 0;
}

/* =========================================================
   HEADER
========================================================= */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(
        135deg,
        var(--primary-white),
        var(--accent-light)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    max-width: 850px;
    margin: auto;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.8;
}

/* =========================================================
   TABS
========================================================= */

.project-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 70px;
}

.tab-btn {
    padding: 18px 35px;
    border-radius: 60px;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(15px);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(34,211,238,0.4);
    background: rgba(0,255,255,0.05);
    color: var(--accent-light);
    box-shadow:
        0 0 20px rgba(34,211,238,0.2),
        0 0 45px rgba(34,211,238,0.12);
}

.tab-btn.active {
    background: linear-gradient(
        135deg,
        rgba(6,182,212,0.95),
        rgba(59,130,246,0.95)
    );
    border-color: rgba(103,232,249,0.45);
    color: var(--primary-white);
    box-shadow:
        0 0 30px rgba(34,211,238,0.4),
        0 0 60px rgba(34,211,238,0.2);
}

.tab-btn.active:hover {
    transform: translateY(-4px);
}

/* =========================================================
   PROJECT CARD
========================================================= */

.project-content {
    display: none;
    align-items: center;
    gap: 60px;
    padding: 60px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-card);
    margin-bottom: 5px;
}

.project-content.active {
    display: flex;
    animation: fadeIn .4s ease;
}

/* =========================================================
   IMAGE
========================================================= */

.project-image {
    flex: 1;
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-img);
}

.project-image img:hover {
    transform: scale(1.02);
}

/* =========================================================
   CONTENT
========================================================= */

.project-info {
    flex: 1;
}

.project-info h2 {
    font-size: 48px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 35px;
}

/* =========================================================
   TECH STACK
========================================================= */

.project-stack,
.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.project-stack {
    margin-bottom: 40px;
}

.stack {
    justify-content: center;
    margin-top: 30px;
}

.project-stack span,
.stack-item {
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: #e2e8f0;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.project-stack span:hover,
.stack-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 15px rgba(34,211,238,0.25);
}

/* =========================================================
   BUTTON
========================================================= */

.project-btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-white);
    font-weight: 600;
    transition: var(--transition);
    background: linear-gradient(
        135deg,
        var(--accent),
        var(--primary-light)
    );
    box-shadow: 0 0 25px rgba(34,211,238,0.3);
}

.project-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(34,211,238,0.45);
}


/* =========================================================
   LIGHTBOX IMAGE
========================================================= */

.zoomable{
    cursor:pointer;
    transition:0.3s ease;
}

.zoomable:hover{
    transform:scale(1.03);
}

.zoomable:hover{
    box-shadow:
    0 0 25px rgba(34,211,238,0.35);
}

.lightbox{
    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.9);

    display:none;
    justify-content:center;
    align-items:center;

    z-index:9999;

    padding:40px;
}

.lightbox.active{
    display:flex;
}

.lightbox img{
    max-width:95%;
    max-height:95vh;

    border-radius:20px;

    box-shadow:
    0 0 50px rgba(34,211,238,0.25);

    animation:zoomIn 0.25s ease;
}

@keyframes zoomIn{
    from{
        transform:scale(0.9);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
    .project-content.active {
        flex-direction: column;
    }

    .project-info h2 {
        font-size: 38px;
    }

    .section-header h1 {
        font-size: 52px;
    }
}

@media (max-width: 700px) {
    .section-header h1 {
        font-size: 42px;
    }

    .section-header p {
        font-size: 16px;
    }

    .project-content {
        padding: 35px;
    }

    .project-info h2 {
        font-size: 30px;
    }

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