/*=====================================
    GOOGLE FONT
=====================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*=====================================
    RESET & BASE STYLES
=====================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --dark: #050B18;         /* Main Page Background */
    --dark-light: #0C1427;   /* For nav/hover elements */
    --card: #101A2F;         /* Dark blueish card color */
    --white: #ffffff;
    --gray: #A7B3C6;         /* Secondary text color */
}

body {
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Makes text look sharper */
}

/* Base element resets */
section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;        /* Centers the container */
    padding: 0 20px;       /* Prevents touching screen edges on mobile */
}

img {
    max-width: 100%;
    display: block;
    height: auto;          /* Maintains aspect ratio */
}

a {
    text-decoration: none;
    color: inherit;        /* Prevents weird default blue link colors */
    transition: 0.3s ease; /* Smooth hover states */
}

ul {
    list-style: none;
}

/* Ensure font weight consistency */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--white);
}

p {
    color: var(--gray);
}

/*=====================================
            NAVBAR
=====================================*/

.navbar{

    background:rgba(5,11,24,.9);
    backdrop-filter:blur(12px);

    padding:18px 0;

    transition:.3s;

}

.navbar-brand{

    font-size:30px;
    font-weight:700;
    color:white;

}

.navbar-brand span{

    color:var(--primary);

}

.navbar-brand:hover{

    color:white;

}

.navbar-toggler{

    border:none;

}

.navbar-toggler:focus{

    box-shadow:none;

}

.navbar-toggler i{

    color:white;
    font-size:28px;

}

.nav-link{

    color:#d1d5db;

    margin-left:25px;

    font-weight:500;

    transition:.3s;

}

.nav-link:hover{

    color:var(--primary);

}

.nav-link.active{

    color:var(--primary);

}

/*=====================================
            HERO SECTION
=====================================*/

#home{
    position: relative;
    min-height: 82vh;   /* was 100vh */
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #050B18;
    padding: 80px 0;
}

/* Right Background Photo */

.hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 35%;

    background: url("../images/profile.jpg") no-repeat;
    background-size: cover;
    background-position: center;
    z-index: 1;

    /* THIS FADES BOTH THE LEFT AND THE BOTTOM EDGES */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%), 
                        linear-gradient(to top, transparent 0%, black 20%);
    -webkit-mask-composite: destination-in; /* Merges the two gradients */
    
    mask-image: linear-gradient(to right, transparent 0%, black 25%), 
                linear-gradient(to top, transparent 0%, black 20%);
    mask-composite: intersect; 
}

/* Dark Gradient */

#home::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        90deg,
        rgba(5,11,24,1) 0%,
        rgba(5,11,24,.98) 22%,
        rgba(5,11,24,.90) 38%,
        rgba(5,11,24,.65) 55%,
        rgba(5,11,24,.20) 75%,
        rgba(5,11,24,0) 100%
    );

    z-index:2;

}

/* Blue Glow */

#home::after{

    content:"";

    position:absolute;

    width:700px;
    height:700px;

    right:-180px;
    top:50%;

    transform:translateY(-50%);

    background:radial-gradient(
        circle,
        rgba(37,99,235,.30),
        rgba(37,99,235,.12),
        transparent 70%
    );

    z-index:2;

}

/* Content */

#home .container{

    position:relative;

    z-index:10;

}

/* Welcome */

.welcome{

    color:var(--primary);

    font-size:17px;

    font-weight:600;

    letter-spacing:3px;

    margin-bottom:20px;

    text-transform:uppercase;

}

.welcome::after{

    content:"";

    display:inline-block;

    width:45px;
    height:2px;

    margin-left:15px;
    margin-bottom:5px;

    background:var(--primary);

}

/* Heading */

#home h1{

    font-size:78px;

    font-weight:800;

    line-height:1.05;

    margin-bottom:18px;

}

#home h1 span{

    color:var(--primary);

}

#home h3{

    font-size:48px;

    font-weight:600;

    margin-bottom:25px;

    color:#fff;

}

/* Description */

.hero-text{

    max-width:560px;

    font-size:20px;

    line-height:1.9;

    color:var(--gray);

    margin-bottom:35px;

}

/* Buttons */

.hero-buttons{

    display:flex;

    align-items:center;

    gap:18px;

}

.hero-buttons .btn{

    padding:15px 36px;

    border-radius:14px;

    font-weight:600;

    transition:.35s;

}

.btn-primary{

    background:var(--primary);

    border:none;

}

.btn-primary:hover{

    background:var(--primary-light);

    transform:translateY(-3px);

}

.btn-outline-light{

    border:1px solid rgba(255,255,255,.18);

}

.btn-outline-light:hover{

    background:#fff;

    color:#000;

}

/* Old Image (Not Used) */

.hero-image{

    display:none;

}

/*=====================================
            SKILLS
=====================================*/

.section-title{

    margin-bottom:70px;

}

.section-title h2{

    font-size:42px;

    font-weight:700;

}

.section-title p{

    color:var(--gray);

}

.skill-card{

    background:var(--card);

    padding:40px 25px;

    border-radius:20px;

    text-align:center;

    transition:.4s;

    height:100%;

}

.skill-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(37,99,235,.25);

}

.skill-card i{

    font-size:55px;

    color:var(--primary);

    margin-bottom:25px;

}

.skill-card h4{

    margin-bottom:15px;

}

.skill-card p{

    color:var(--gray);

    line-height:1.8;

}

/*=====================================
            ABOUT
=====================================*/

#about img{

    border-radius:25px;

}

#about h2{

    font-size:45px;

    margin-bottom:25px;

}

#about p{

    color:var(--gray);

    line-height:2;

}

#about h3{

    color:var(--primary);

    font-size:40px;

    margin-bottom:5px;

}

/*=====================================
            PROJECTS
=====================================*/

.project-card{

    background:var(--card);

    border-radius:20px;

    overflow:hidden;

    transition:.4s;

    height:100%;

}

.project-card:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 45px rgba(37,99,235,.25);

}

.project-card img{

    width:100%;

    height:240px;

    object-fit:cover;

}

.project-card h4{

    margin-bottom:15px;

}

.project-card p{

    color:var(--gray);

    margin-bottom:25px;

    line-height:1.8;

}

.project-card .btn{

    border-radius:10px;

    padding:10px 25px;

}

html{

    scroll-behavior:smooth;

}

body{

    overflow-x:hidden;

}

.navbar{

    transition:.4s;

}

.navbar.scrolled{

    background:rgba(5,11,24,.75);

    backdrop-filter:blur(16px);

    box-shadow:0 10px 30px rgba(0,0,0,.35);

}

.hero-title{

    overflow:hidden;

}

.hero-title .word{

    display:inline-block;

}

.hero-title .blue{

    color:#2563eb;

}

/*=====================================
            SKILLS BAR
=====================================*/

#skills{

    margin-top:-60px;

    position:relative;

    z-index:20;

}

.skills-wrapper{

    background:#101827;

    border:1px solid rgba(255,255,255,.06);

    border-radius:18px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.35);

}

.skill-box{

    display:flex;

    align-items:center;

    gap:20px;

    padding:30px;

    transition:.35s;

    border-right:1px solid rgba(255,255,255,.05);

}

.skill-box:last-child{

    border-right:none;

}

.skill-box:hover{

    background:#16213a;

}

.skill-icon{

    width:60px;

    height:60px;

    border-radius:14px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(37,99,235,.15);

    color:#2563eb;

    font-size:28px;

    flex-shrink:0;

}

.skill-box h4{

    font-size:18px;

    margin-bottom:8px;

}

.skill-box p{

    font-size:15px;

    color:#94a3b8;

    margin:0;

    line-height:1.7;

}

/*=====================================
        ABOUT - READ MORE
=====================================*/

.about-content{

    position:relative;

}

.about-short{

    font-size:17px;

    line-height:1.9;

    color:var(--gray);

    margin-bottom:25px;

}

/* Hidden Content */

.about-extra{

    max-height:0;

    overflow:hidden;

    opacity:0;

    transform:translateY(-20px);

    transition:
        max-height .8s ease,
        opacity .6s ease,
        transform .6s ease,
        margin-top .6s ease;

}

.about-extra.show{

    max-height:1200px;

    opacity:1;

    transform:translateY(0);

    margin-top:25px;

}

.about-extra p{

    color:var(--gray);

    line-height:2;

    margin-bottom:18px;

}

/* Fade Effect */

.about-content::before{

    content:"";

    position:absolute;

    left:0;

    right:0;

    bottom:85px;

    height:100px;

    background:linear-gradient(

        rgba(5,11,24,0),

        rgba(5,11,24,.9),

        #050B18

    );

    transition:.4s;

    pointer-events:none;

}

.about-content.expanded::before{

    opacity:0;

}

/* Read More Button */

.read-more-btn{

    margin-top:30px;

    padding:15px 34px;

    background:#2563eb;

    color:#fff;

    border:none;

    border-radius:50px;

    display:inline-flex;

    align-items:center;

    gap:12px;

    cursor:pointer;

    font-weight:600;

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.read-more-btn::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.25),

        transparent

    );

    transform:translateX(-120%);

    transition:.6s;

}

.read-more-btn:hover::before{

    transform:translateX(120%);

}

.read-more-btn:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 35px rgba(37,99,235,.35);

    background:#3b82f6;

}

.read-more-btn i{

    transition:.4s;

}

.read-more-btn.active i{

    transform:rotate(180deg);

}

/* About Highlights */

.about-highlights{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

    margin-top:30px;

    margin-bottom:20px;

}

.highlight{

    display:flex;

    align-items:center;

    gap:12px;

    color:#fff;

    transition:.35s;

}

.highlight i{

    color:#2563eb;

    font-size:18px;

}

.highlight:hover{

    transform:translateX(8px);

}

/* About Image */

.about-image{

    border-radius:25px;

    transition:.5s;

}

.about-image:hover{

    transform:scale(1.03);

    box-shadow:0 25px 50px rgba(37,99,235,.25);

}
/*=====================================
            CONTACT
=====================================*/

#contact{
    position:relative;
    padding:100px 0;
    background:#050B18;
    overflow:hidden;
}

#contact::before{
    content:"";
    position:absolute;
    width:650px;
    height:650px;
    right:-220px;
    top:-220px;
    background:radial-gradient(circle,
        rgba(37,99,235,.20),
        transparent 70%);
    pointer-events:none;
}

#contact::after{
    content:"";
    position:absolute;
    width:500px;
    height:500px;
    left:-180px;
    bottom:-180px;
    background:radial-gradient(circle,
        rgba(37,99,235,.10),
        transparent 70%);
    pointer-events:none;
}

/*=====================================
        CONTACT CARDS
=====================================*/

.contact-card{
    position:relative;
    background:#101827;
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:26px;
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:22px;
    transition:.35s;
    overflow:hidden;
}

.contact-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.03),
        transparent);
    transform:translateX(-100%);
    transition:.7s;
}

.contact-card:hover::before{
    transform:translateX(100%);
}

.contact-card:hover{
    transform:translateY(-8px);
    border-color:#2563EB;
    box-shadow:0 18px 40px rgba(37,99,235,.25);
}

/*=====================================
            ICONS
=====================================*/

.contact-icon{
    width:72px;
    height:72px;
    min-width:72px;
    border-radius:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.35s;
}

.contact-icon i{
    font-size:30px;
    color:#fff;
}

/* Green Phone */

/* Phone */
.phone-icon{
    background:#2563EB;
}

.phone-icon i{
    color:#25D366;
}

.whatsapp-icon{
    background:#2563EB;
}

.whatsapp-icon i{
    color:#25D366;
}

.email-icon{
    background:#2563EB;
}

.email-icon i{
    color:#fff;

}
.contact-card:hover .contact-icon{
    transform:scale(1.08) rotate(-4deg);
}
/*==============================
            ICONS
===============================*/

.contact-icon{
    width:72px;
    height:72px;
    border-radius:18px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-shrink:0;
    transition:.35s ease;
}

.contact-icon i{
    font-size:30px;
    color:#449c0a;
}

/* Individual Colors */

.phone-icon{
    background:#25D366;
}

.whatsapp-icon{
    background:#25D366;
}

.email-icon{
    background:#2563EB;
}

.contact-card:hover .contact-icon{
    transform:scale(1.08) rotate(-5deg);
}

/*==============================
        CONTACT TEXT
===============================*/

.contact-card h5{
    color:#3B82F6;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.8px;
    margin-bottom:8px;
}

.contact-card a{
    display:block;
    color:#fff;
    font-size:20px;
    font-weight:600;
    text-decoration:none;
    line-height:1.45;

    overflow-wrap:anywhere;
    word-break:break-word;

    transition:.3s;
}

.contact-card a:hover{
    color:#60A5FA;
}

.contact-card small{
    display:block;
    color:#94A3B8;
    margin-top:8px;
    font-size:14px;
}

/*==============================
        CONTACT FORM
===============================*/

.contact-form{

    background:#101827;

    border:1px solid rgba(37,99,235,.35);

    border-radius:22px;

    padding:45px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.35);

}

.form-group{
    margin-bottom:24px;
}

.form-label{

    display:block;

    color:#fff;

    font-size:14px;

    font-weight:600;

    margin-bottom:10px;

    text-transform:uppercase;

    letter-spacing:.5px;

}

.form-label i{

    color:#2563EB;

    margin-right:8px;

}

.contact-form .form-control{

    width:100%;

    background:#0C1427;

    color:#fff;

    border:1px solid rgba(255,255,255,.08);

    border-radius:14px;

    padding:17px 20px;

    font-size:16px;

    transition:.35s;

}

.contact-form .form-control::placeholder{

    color:#94A3B8;

}

.contact-form .form-control:focus{

    outline:none;

    border-color:#2563EB;

    background:#0C1427;

    color:#fff;

    box-shadow:
        0 0 0 4px rgba(37,99,235,.12);

}

.contact-form textarea{

    resize:none;

    min-height:170px;

}

.contact-form .btn{

    padding:16px 35px;

    border:none;

    border-radius:14px;

    background:#2563EB;

    color:#fff;

    font-size:17px;

    font-weight:600;

    transition:.35s;

}

.contact-form .btn:hover{

    background:#3B82F6;

    transform:translateY(-4px);

    box-shadow:
        0 18px 35px rgba(37,99,235,.35);

}

/*==============================
        SOCIAL LINKS
===============================*/

.social-links{

    margin-top:40px;

}

.social-links h4{

    color:#fff;

    margin-bottom:22px;

}

.social-links a{

    width:58px;

    height:58px;

    display:inline-flex;

    justify-content:center;

    align-items:center;

    margin-right:12px;

    border-radius:14px;

    background:#101827;

    border:1px solid rgba(255,255,255,.08);

    color:#fff;

    font-size:24px;

    transition:.35s;

}

.social-links a:hover{

    background:#2563EB;

    color:#fff;

    transform:translateY(-6px);

    box-shadow:
        0 16px 35px rgba(37,99,235,.30);

}

/*=====================================
            RESPONSIVE
=====================================*/

/* ===========================
        TABLETS
=========================== */

@media (max-width:992px){

    #home{
        min-height:90vh;
        padding:110px 0 70px;
    }

    .hero-photo{
        left:48%;
        background-position:65% center;
        opacity:.95;
    }

    #home h1{
        font-size:58px;
        line-height:1;
    }

    #home h3{
        font-size:34px;
    }

    .hero-text{
        max-width:420px;
        font-size:17px;
        line-height:1.8;
    }

    .hero-buttons{
        gap:15px;
    }

    .skills-wrapper{
        grid-template-columns:repeat(2,1fr);
    }

    .contact-form{
        margin-top:35px;
        padding:30px;
    }

    .contact-card{
        min-height:auto;
    }

}


/* ===========================
        MOBILE
=========================== */

@media (max-width:768px){

    html,
    body{
        overflow-x:hidden;
    }

    .container{
        padding:0 22px;
    }

    /* Navbar */

    .navbar{
        padding:15px 0;
    }

    .navbar-brand{
        font-size:24px;
    }

    .navbar-collapse{
        margin-top:18px;
        background:#101827;
        padding:18px;
        border-radius:18px;
    }

    .nav-link{
        margin:0 0 12px;
        text-align:center;
    }

    .nav-cv-btn{
        width:100%;
        margin-top:12px;
    }

    /* Hero */

    #home{
        min-height:100vh;
        padding:90px 0 45px;
        display:flex;
        align-items:center;
    }

    .hero-photo{

        position:absolute;

        top:0;
        right:0;
        bottom:0;

        left:42%;

        width:auto;
        height:auto;

        background-size:cover;
        background-position:78% center;

        opacity:.35;

        border-radius:0;

        -webkit-mask-image:linear-gradient(
            to right,
            transparent 0%,
            black 35%
        );

        mask-image:linear-gradient(
            to right,
            transparent 0%,
            black 35%
        );

    }

    #home::before{

        background:linear-gradient(
            90deg,
            rgba(5,11,24,.98) 0%,
            rgba(5,11,24,.92) 45%,
            rgba(5,11,24,.55) 75%,
            rgba(5,11,24,0) 100%
        );

    }

    #home::after{
        display:none;
    }

    #home .container{
        position:relative;
        z-index:5;
    }

    .welcome{
        font-size:11px;
        letter-spacing:2px;
        margin-bottom:12px;
    }

    .welcome::after{
        display:none;
    }

    #home h1{
        font-size:48px;
        line-height:.95;
        margin-bottom:12px;
    }

    .hero-title .word{
        display:block;
    }

    #home h3{
        font-size:26px;
        margin-bottom:16px;
    }

    .hero-text{
        width:58%;
        max-width:58%;
        font-size:15px;
        line-height:1.8;
        margin-bottom:28px;
    }

    .hero-buttons{
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .hero-buttons .btn{
        width:180px;
        padding:14px;
        font-size:15px;
        border-radius:12px;
    }

    /* Skills */

    #skills{
        margin-top:-10px;
    }

    .skills-wrapper{
        grid-template-columns:1fr;
    }

    .skill-box{
        padding:24px;
        border-right:none;
        border-bottom:1px solid rgba(255,255,255,.06);
    }

    .skill-box:last-child{
        border-bottom:none;
    }

    /* General */

    section{
        padding:70px 0;
    }

    .section-title{
        margin-bottom:45px;
    }

    .section-title h2{
        font-size:34px;
    }

    /* About */

    #about img{
        margin-bottom:30px;
    }

    #about h2{
        font-size:34px;
    }

    .about-highlights{
        grid-template-columns:1fr;
    }

    /* Projects */

    .project-card{
        margin-bottom:25px;
    }

    /* Contact */

    .contact-card{
        flex-direction:column;
        text-align:center;
        gap:18px;
    }

    .contact-card a{
        font-size:18px;
    }

    .contact-form{
        padding:24px;
    }

    .social-links{
        text-align:center;
    }

}


/* ===========================
        SMALL PHONES
=========================== */

@media (max-width:480px){

    #home{
        padding-top:85px;
    }

    .hero-photo{
        left:48%;
        background-position:82% center;
        opacity:.28;
    }

    #home h1{
        font-size:40px;
    }

    #home h3{
        font-size:22px;
    }

    .hero-text{
        width:62%;
        max-width:62%;
        font-size:14px;
        line-height:1.8;
    }

    .hero-buttons .btn{
        width:165px;
        font-size:14px;
        padding:12px;
    }

    .section-title h2{
        font-size:30px;
    }

}