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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    color:#ffffff;
    background:#050505;
    overflow-x:hidden;
    line-height:1.6;
}

.global-overlay{
    display:none;
}

.main-content{
    position:relative;
    z-index:1;
}

/* NAVBAR */
.navbar{
    position:sticky;
    top:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 5%;
    backdrop-filter:blur(14px);
    transition:0.35s ease;
}

.navbar.light-navbar{
    background:#ffffff;
    border-bottom:1px solid rgba(0,0,0,0.06);
    box-shadow:0 8px 25px rgba(0,0,0,0.05);
}

.navbar.dark-navbar{
    background:rgba(0,0,0,0.82);
    border-bottom:1px solid rgba(255,255,255,0.08);
    box-shadow:0 12px 30px rgba(0,0,0,0.28);
}

.logo{
    display:flex;
    align-items:center;
}

.logo img{
    width:70px;
    height:70px;
    object-fit:contain;
    transition:0.35s ease;
}

.navbar.light-navbar .logo img{
    filter:invert(1);
}

.navbar.dark-navbar .logo img{
    filter:none;
}

.nav-menu{
    list-style:none;
    display:flex;
    align-items:center;
    gap:35px;
}

.nav-menu li a{
    text-decoration:none;
    font-size:0.95rem;
    font-weight:700;
    text-transform:uppercase;
    position:relative;
    padding-bottom:8px;
    transition:0.3s ease;
}

.navbar.light-navbar .nav-menu li a{
    color:#222222;
}

.navbar.dark-navbar .nav-menu li a{
    color:#ffffff;
}

.nav-menu li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:0;
    height:2px;
    background:#ff2525;
    transition:0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active{
    color:#ff2525 !important;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after{
    width:100%;
}

/* HERO */
.hero-section{
    position:relative;
    overflow:hidden;
    background:#050505;
}

/* INTRO */
.intro-portfolio{
    position:relative;
    max-width:100%;
    min-height:690px;
    margin:0 auto;
    padding:70px 6% 120px;
    display:grid;
    grid-template-columns:1fr 1.25fr 1fr;
    align-items:center;
    gap:35px;
    color:#222222;
    overflow:hidden;
    background:
        radial-gradient(circle at 0% 12%, rgba(255,37,37,0.15), transparent 18%),
        radial-gradient(circle at 98% 28%, rgba(255,37,37,0.13), transparent 16%),
        linear-gradient(180deg,#ffffff 0%,#fbfbfb 65%,#f2f2f2 100%);
}

.intro-portfolio::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;
    width:100%;
    height:190px;
    background:linear-gradient(
        180deg,
        rgba(242,242,242,0) 0%,
        rgba(242,242,242,0.9) 20%,
        rgba(5,5,5,0.45) 62%,
        #050505 100%
    );
    z-index:2;
    pointer-events:none;
}

.intro-left,
.intro-right{
    position:relative;
    right:-60px;
}

.intro-left h2,
.intro-right h2{
    font-size:3.7rem;
    line-height:1.15;
    font-weight:800;
    letter-spacing:-2px;
}

.intro-left h2{
    color:#2b2b2b;
}

.intro-left h2 span{
    color:#ff2525;
}

.intro-right h2{
    color:#ff2525;
    text-shadow:0 12px 25px rgba(255,37,37,0.16);
}

.intro-left p,
.intro-right p{
    margin-top:25px;
    max-width:420px;
    color:#555555;
    font-size:1rem;
    line-height:1.8;
}

.intro-left::after,
.intro-right::after{
    content:"";
    display:block;
    width:62px;
    height:4px;
    margin-top:22px;
    background:#ff2525;
    border-radius:20px;
}

.intro-left::before,
.intro-right::before{
    content:"";
    position:absolute;
    width:110px;
    height:80px;
    left:0;
    bottom:-95px;
    background-image:radial-gradient(rgba(255,37,37,0.22) 3px, transparent 3px);
    background-size:18px 18px;
}

.intro-right{
    justify-self:end;
}

.intro-photo{
    position:relative;
    height:590px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    z-index:4;
}

.intro-photo::before{
    content:"";
    position:absolute;
    width:540px;
    height:540px;
    border:1px solid rgba(255,37,37,0.22);
    border-radius:50%;
    top:15px;
    left:50%;
    transform:translateX(-50%);
    z-index:0;
}

.intro-photo::after{
    content:"";
    position:absolute;
    width:470px;
    height:470px;
    border-radius:50%;
    top:50px;
    left:50%;
    transform:translateX(-50%);
    background:rgba(255,37,37,0.06);
    z-index:0;
}

.intro-photo img{
    position:relative;
    z-index:4;
    height:100%;
    max-width:100%;
    object-fit:contain;
    filter:drop-shadow(0 28px 35px rgba(0,0,0,0.22));
}

.photo-art{
    position:absolute;
    z-index:1;
    width:390px;
    height:390px;
    left:50%;
    bottom:105px;
    transform:translateX(-50%) rotate(-6deg);
    background:linear-gradient(135deg,#ff2525,#ff5555);
    border-radius:36% 42% 35% 45%;
    opacity:0.95;
    box-shadow:0 25px 60px rgba(255,37,37,0.25);
}

.photo-art::before{
    content:"";
    position:absolute;
    inset:35px;
    background-image:radial-gradient(rgba(255,255,255,0.35) 2px, transparent 2px);
    background-size:18px 18px;
    opacity:0.55;
}

/* ABOUT */
.container-hero{
    position:relative;
    z-index:4;
    max-width:100%;
    margin:-30px auto 0;
    padding:120px 6% 110px;
    display:grid;
    grid-template-columns:1.55fr 0.85fr;
    gap:60px;
    align-items:center;
    background:
        radial-gradient(circle at 82% 42%, rgba(255,59,59,0.10), transparent 25%),
        linear-gradient(180deg,#050505 0%,#080808 45%,#050505 100%);
}

.container-hero::before{
    content:"";
    position:absolute;
    top:-95px;
    left:0;
    width:100%;
    height:120px;
    background:linear-gradient(
        180deg,
        rgba(242,242,242,0) 0%,
        rgba(5,5,5,0.65) 55%,
        #050505 100%
    );
    pointer-events:none;
}

.hero-text{
    position:relative;
    z-index:2;
    max-width:980px;
}

.hero-text h1{
    font-size:3rem;
    line-height:1.15;
    font-weight:800;
    margin-bottom:18px;
    letter-spacing:-1px;
}

.hero-text h1 span{
    color:#ff3b3b;
}

.subtitle{
    color:#ff3b3b;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:4px;
    margin-bottom:35px;
    font-size:0.95rem;
}

.about-card{
    background:rgba(255,255,255,0.06);
    padding:40px;
    border-radius:25px;
    border:1px solid rgba(255,255,255,0.12);
    margin-bottom:35px;
    box-shadow:0 20px 45px rgba(0,0,0,0.35);
    backdrop-filter:blur(12px);
}

.about-card p{
    font-size:1rem;
    color:#eeeeee;
    margin-bottom:18px;
    text-align:justify;
}

.btn-cv{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:15px 30px;
    background:linear-gradient(135deg,#ff3b3b,#b80000);
    color:#ffffff;
    text-decoration:none;
    border-radius:16px;
    font-weight:700;
    font-size:0.95rem;
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 10px 25px rgba(255,59,59,0.25);
    position:relative;
    overflow:hidden;
    transition:0.35s ease;
}

.btn-cv i{
    font-size:0.95rem;
}

.btn-cv::after{
    content:"\f061";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    font-size:0.9rem;
    transition:0.35s ease;
}

.btn-cv::before{
    content:"";
    position:absolute;
    top:0;
    left:-120%;
    width:100%;
    height:100%;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,0.25),transparent);
    transition:0.6s ease;
}

.btn-cv:hover{
    transform:translateY(-4px);
    background:linear-gradient(135deg,#ff4d4d,#ff0000);
    box-shadow:0 14px 30px rgba(255,59,59,0.4);
}

.btn-cv:hover::before{
    left:120%;
}

.btn-cv:hover::after{
    transform:translateX(6px);
}

.hero-image{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    align-items:center;
}

.img-container img{
    width:100%;
    max-width:390px;
    border-radius:30px;
    border:4px solid #ff3b3b;
    box-shadow:
        0 0 25px rgba(255,59,59,0.4),
        0 15px 45px rgba(255,59,59,0.2);
    transition:0.4s ease;
}

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

/* SECTIONS */
.section-skills,
.section-cert,
.section-contact{
    background:#050505;
}

.section-skills{
    padding:100px 0;
}

.section-cert{
    padding:80px 5% 150px 5%;
}

.section-contact{
    padding:100px 0;
}

.container-wide{
    max-width:1300px;
    margin:0 auto;
    padding:0 20px;
}

.section-title{
    font-size:2.2rem;
    font-weight:800;
    text-align:center;
    margin-bottom:50px;
    color:#ffffff;
}

.skills-panel,
.contact-panel{
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.1);
    border-radius:25px;
    box-shadow:0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter:blur(10px);
}

.skills-panel{
    padding:45px;
}

.skills-group{
    margin-bottom:45px;
}

.skills-group:last-child{
    margin-bottom:0;
}

.skills-group h3{
    text-align:center;
    color:#ff3b3b;
    font-size:1.4rem;
    font-weight:700;
    margin-bottom:35px;
}

.skills-divider{
    width:100%;
    height:1px;
    background:rgba(255,255,255,0.08);
    margin:10px 0 45px 0;
}

.skills-wrapper{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
}

.skill-box{
    width:115px;
    height:115px;
    background:rgba(255,255,255,0.05);
    border-radius:20px;
    border:1px solid rgba(255,255,255,0.1);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    transition:0.4s ease;
}

.skill-box:hover{
    transform:translateY(-10px);
    border-color:#ff3b3b;
    background:rgba(255,59,59,0.1);
    box-shadow:0 10px 20px rgba(255,59,59,0.1);
}

.skill-box i{
    font-size:2.4rem;
    color:#ff3b3b;
}

.skill-box span{
    font-size:0.78rem;
    font-weight:600;
    text-align:center;
    padding:0 5px;
}

/* CERTIFICATE */
.cert-gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:30px;
    max-width:1200px;
    margin:0 auto;
}

.cert-card{
    position:relative;
    overflow:hidden;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.1);
    background:#000;
    transition:0.3s ease;
}

.cert-img-box{
    position:relative;
    width:100%;
    aspect-ratio:16/11;
}

.cert-img-box img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.cert-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.6);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    transition:0.3s ease;
}

.cert-card:hover .cert-overlay{
    opacity:1;
}

.cert-card:hover{
    transform:translateY(-5px);
    border-color:#ff3b3b;
}

.zoom-icon{
    color:#ffffff;
    font-size:1.8rem;
}

/* CONTACT */
.contact-panel{
    max-width:1000px;
    margin:0 auto;
    padding:50px;
    text-align:center;
}

.contact-panel h3{
    font-size:2rem;
    color:#ff3b3b;
    margin-bottom:15px;
}

.contact-panel p{
    max-width:700px;
    margin:0 auto 40px auto;
    color:#d8d8d8;
    line-height:1.8;
}

.social-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
}

.social-links a{
    width:150px;
    height:140px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:15px;
    text-decoration:none;
    color:#ffffff;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:20px;
    transition:0.35s ease;
}

.social-links a i{
    font-size:2.7rem;
    color:#ff3b3b;
}

.social-links a span{
    font-size:0.9rem;
    font-weight:600;
}

.social-links a:hover{
    transform:translateY(-10px);
    border-color:#ff3b3b;
    background:rgba(255,59,59,0.1);
    box-shadow:0 10px 20px rgba(255,59,59,0.15);
}

footer{
    padding:60px;
    text-align:center;
    color:#666666;
    font-size:0.9rem;
    background:#050505;
}

.fade-in{
    animation:fadeInUp 1.2s ease-out forwards;
}

@keyframes fadeInUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* RESPONSIVE */
@media(max-width:1100px){

    .intro-portfolio{
        grid-template-columns:1fr;
        text-align:center;
        gap:20px;
        padding-top:50px;
    }

    .intro-left p,
    .intro-right p{
        margin-left:auto;
        margin-right:auto;
    }

    .intro-left::after,
    .intro-right::after{
        margin-left:auto;
        margin-right:auto;
    }

    .intro-left::before,
    .intro-right::before{
        display:none;
    }

    .intro-right{
        justify-self:center;
    }

    .intro-photo{
        height:480px;
        order:2;
    }

    .intro-left{
        order:1;
    }

    .intro-right{
        order:3;
    }

    .container-hero{
        grid-template-columns:1fr;
        text-align:center;
    }

    .about-card p{
        text-align:justify;
    }

    .skills-wrapper{
        flex-wrap:wrap;
    }
}

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        gap:18px;
        padding:16px 20px;
    }

    .nav-menu{
        gap:18px;
        flex-wrap:wrap;
        justify-content:center;
    }

    .nav-menu li a{
        font-size:0.8rem;
    }

    .intro-portfolio{
        padding:45px 20px 80px;
        min-height:auto;
    }

    .intro-left h2,
    .intro-right h2{
        font-size:2.5rem;
    }

    .intro-photo{
        height:390px;
    }

    .intro-photo::before{
        width:350px;
        height:350px;
    }

    .intro-photo::after{
        width:300px;
        height:300px;
    }

    .photo-art{
        width:250px;
        height:250px;
        bottom:80px;
    }

    .container-hero{
        padding:90px 20px 70px;
        margin-top:-40px;
    }

    .hero-text h1{
        font-size:2.1rem;
    }

    .subtitle{
        font-size:0.8rem;
        letter-spacing:2px;
    }

    .about-card{
        padding:25px;
    }

    .skills-panel{
        padding:25px;
    }

    .skill-box{
        width:110px;
        height:110px;
    }

    .skill-box i{
        font-size:2.1rem;
    }

    .skill-box span{
        font-size:0.72rem;
    }

    .cert-gallery-grid{
        grid-template-columns:1fr;
    }

    .contact-panel{
        padding:30px 20px;
    }

    .contact-panel h3{
        font-size:1.6rem;
    }

    .social-links{
        gap:18px;
    }

    .social-links a{
        width:130px;
        height:120px;
    }

    .social-links a i{
        font-size:2.2rem;
    }
}