/*==================================================
    OLIVER SAIN PORTFOLIO
    Premium AI Automation Website
    Part 2A - Global Styles
==================================================*/


/*==============================
    GOOGLE VARIABLES
==============================*/

:root{

    --primary:#2563eb;
    --primary-light:#3b82f6;
    --primary-dark:#1d4ed8;

    --navy:#0f172a;
    --dark:#020617;
    --white:#ffffff;

    --gray:#94a3b8;
    --light:#e2e8f0;

    --glass:rgba(255,255,255,.08);
    --glass-border:rgba(255,255,255,.15);

    --shadow:0 20px 60px rgba(0,0,0,.35);

    --radius:22px;

    --transition:.35s ease;

    --max-width:1200px;

}


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

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

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Inter',sans-serif;

    background:var(--dark);

    color:var(--white);

    overflow-x:hidden;

    line-height:1.7;

}


/*==============================
    SCROLLBAR
==============================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#050b18;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
        180deg,
        var(--primary),
        #60a5fa
    );

    border-radius:20px;

}


/*==============================
    LINKS
==============================*/

a{

    text-decoration:none;

    color:inherit;

}


/*==============================
    IMAGES
==============================*/

img{

    width:100%;

    display:block;

}


/*==============================
    LIST
==============================*/

ul{

    list-style:none;

}


/*==============================
    CONTAINER
==============================*/

.container{

    width:min(92%,var(--max-width));

    margin:auto;

}


/*==============================
    SECTION
==============================*/

.section{

    padding:110px 0;

    position:relative;

}


/*==============================
    HEADINGS
==============================*/

h1{

    font-size:4.3rem;

    font-weight:800;

    line-height:1.05;

}

h2{

    font-size:2.8rem;

    margin-bottom:20px;

}

h3{

    font-size:1.35rem;

    margin-bottom:12px;

}

p{

    color:var(--gray);

}


/*==============================
    SECTION TITLE
==============================*/

.section-header{

    max-width:760px;

    margin:auto;

    text-align:center;

    margin-bottom:70px;

}

.section-tag{

    display:inline-block;

    color:#60a5fa;

    font-weight:700;

    letter-spacing:2px;

    font-size:.9rem;

    margin-bottom:18px;

}


/*==============================
    BUTTONS
==============================*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    padding:15px 32px;

    border-radius:999px;

    font-weight:600;

    transition:var(--transition);

}

.primary{

    background:linear-gradient(
        135deg,
        var(--primary),
        #60a5fa
    );

    color:white;

    box-shadow:
    0 10px 40px rgba(37,99,235,.35);

}

.primary:hover{

    transform:translateY(-5px);

}

.secondary{

    border:1px solid rgba(255,255,255,.15);

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(20px);

}

.secondary:hover{

    background:rgba(255,255,255,.12);

}


/*==============================
    GLASS EFFECT
==============================*/

.glass{

    background:var(--glass);

    border:1px solid var(--glass-border);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    border-radius:var(--radius);

    box-shadow:var(--shadow);

}


/*==============================
    PROGRESS BAR
==============================*/

#progress-bar{

    position:fixed;

    top:0;

    left:0;

    width:0;

    height:4px;

    background:linear-gradient(
        90deg,
        #60a5fa,
        #2563eb
    );

    z-index:99999;

}


/*==============================
    FLOATING BLOBS
==============================*/

.blob{

    position:fixed;

    border-radius:50%;

    filter:blur(90px);

    opacity:.35;

    z-index:-2;

    animation:floatBlob 16s infinite alternate;

}

.blob1{

    width:320px;

    height:320px;

    background:#2563eb;

    top:-80px;

    left:-100px;

}

.blob2{

    width:300px;

    height:300px;

    background:#3b82f6;

    bottom:0;

    right:-120px;

}

.blob3{

    width:250px;

    height:250px;

    background:#1e40af;

    left:40%;

    top:35%;

}


/*==============================
    GRID BACKGROUND
==============================*/

.grid-bg{

    position:absolute;

    inset:0;

    background-image:

    linear-gradient(
    rgba(255,255,255,.05) 1px,
    transparent 1px),

    linear-gradient(
    90deg,
    rgba(255,255,255,.05) 1px,
    transparent 1px);

    background-size:55px 55px;

    mask-image:radial-gradient(circle,white 35%,transparent 90%);

    z-index:-3;

}


/*==============================
    ANIMATIONS
==============================*/

@keyframes floatBlob{

    from{

        transform:
        translateY(0)
        translateX(0);

    }

    to{

        transform:
        translateY(-60px)
        translateX(40px);

    }

}
/*==================================================
    PART 2B
    HEADER + HERO
==================================================*/


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

#header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:999;

    padding:18px 0;

    transition:.35s ease;

}

#header.scrolled{

    background:rgba(2,6,23,.75);

    backdrop-filter:blur(18px);

    border-bottom:1px solid rgba(255,255,255,.08);

}


/*==============================
    NAVBAR
==============================*/

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-size:1.7rem;

    font-weight:800;

    color:white;

}

.logo span{

    color:var(--primary-light);

}

.nav-links{

    display:flex;

    gap:38px;

}

.nav-links a{

    color:#cbd5e1;

    font-weight:500;

    transition:.3s;

    position:relative;

}

.nav-links a:hover{

    color:white;

}

.nav-links a.active{

    color:white;

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-8px;

    width:0;

    height:2px;

    background:var(--primary-light);

    transition:.3s;

}

.nav-links a:hover::after,
.nav-links a.active::after{

    width:100%;

}


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

.menu-btn{

    display:none;

    width:50px;
    height:50px;

    border:none;

    border-radius:14px;

    cursor:pointer;

    color:white;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

}


/*==============================
    HERO
==============================*/

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    position:relative;

    overflow:hidden;

    padding-top:120px;

}


/*==============================
    HERO GRID
==============================*/

.hero-grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:70px;

    align-items:center;

}


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

.hero-content{

    padding:45px;

}

.hero-tag{

    display:inline-flex;

    gap:8px;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(37,99,235,.12);

    color:#60a5fa;

    margin-bottom:30px;

    font-weight:600;

    font-size:.85rem;

    letter-spacing:1px;

}

.hero h1{

    margin-bottom:18px;

}

.hero h1 span{

    color:var(--primary-light);

}

.typing-text{

    color:#cbd5e1;

    font-size:1.5rem;

    min-height:45px;

    margin-bottom:25px;

}

.hero-description{

    max-width:620px;

    font-size:1.08rem;

    margin-bottom:35px;

}


/*==============================
    HERO BUTTONS
==============================*/

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    margin-bottom:45px;

}


/*==============================
    HERO STATS
==============================*/

.hero-stats{

    display:flex;

    gap:35px;

    flex-wrap:wrap;

}

.stat{

    text-align:center;

}

.stat h3{

    font-size:2rem;

    color:white;

}

.stat span{

    color:var(--gray);

}


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

.hero-image{

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

}

.image-wrapper{

    width:430px;

    height:530px;

    padding:18px;

    border-radius:35px;

    position:relative;

    overflow:hidden;

}

.image-wrapper::before{

    content:"";

    position:absolute;

    inset:-3px;

    background:

    linear-gradient(

        135deg,

        transparent,

        rgba(96,165,250,.7),

        transparent

    );

    animation:rotateBorder 8s linear infinite;

}

.image-wrapper img{

    position:relative;

    z-index:2;

    width:100%;

    height:100%;

    object-fit:cover;

    border-radius:28px;

}


/*==============================
    FLOATING CARDS
==============================*/

.floating-card{

    position:absolute;

    padding:16px 22px;

    display:flex;

    align-items:center;

    gap:12px;

    animation:floatCard 5s ease-in-out infinite;

}

.floating-card i{

    font-size:1.3rem;

    color:#60a5fa;

}

.card1{

    top:40px;

    left:-30px;

}

.card2{

    bottom:80px;

    right:-20px;

    animation-delay:1.5s;

}

.card3{

    top:48%;

    right:-70px;

    animation-delay:3s;

}


/*==============================
    HERO GLOW
==============================*/

.hero::before{

    content:"";

    position:absolute;

    width:700px;

    height:700px;

    background:

    radial-gradient(

        rgba(37,99,235,.25),

        transparent 70%

    );

    right:-250px;

    top:-180px;

    filter:blur(40px);

    z-index:-1;

}


/*==============================
    HERO HOVER
==============================*/

.image-wrapper{

    transition:.5s;

}

.image-wrapper:hover{

    transform:

        perspective(1000px)

        rotateY(-6deg)

        translateY(-10px);

}


/*==============================
    KEYFRAMES
==============================*/

@keyframes floatCard{

    0%{

        transform:translateY(0px);

    }

    50%{

        transform:translateY(-15px);

    }

    100%{

        transform:translateY(0);

    }

}


@keyframes rotateBorder{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}
/*==================================================
    PART 2C
    ABOUT + SERVICES
==================================================*/

/*==============================
    ABOUT
==============================*/

.about-grid{

    display:grid;

    grid-template-columns:.9fr 1.1fr;

    gap:70px;

    align-items:center;

}

.about-image{

    display:flex;

    justify-content:center;

}

.about-image-wrapper{

    width:100%;
    max-width:420px;

    padding:15px;

    border-radius:30px;

    overflow:hidden;

    transition:var(--transition);

}

.about-image-wrapper:hover{

    transform:translateY(-12px);

    box-shadow:0 30px 80px rgba(37,99,235,.30);

}

.about-image-wrapper img{

    border-radius:22px;

    object-fit:cover;

}

.about-content{

    padding:45px;

}

.about-content h3{

    font-size:2rem;

    margin-bottom:20px;

    color:var(--white);

}

.about-content p{

    margin-bottom:18px;

    color:var(--gray);

}

/*==============================
    SKILLS GRID
==============================*/

.skills-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

    margin-top:40px;

}

.skill{

    display:flex;

    align-items:center;

    gap:18px;

    padding:22px;

    transition:var(--transition);

    position:relative;

    overflow:hidden;

}

.skill::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        135deg,
        rgba(37,99,235,.18),
        transparent
    );

    opacity:0;

    transition:.35s;

}

.skill:hover::before{

    opacity:1;

}

.skill:hover{

    transform:translateY(-8px);

}

.skill i{

    width:58px;

    height:58px;

    border-radius:16px;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:1.4rem;

    color:#60a5fa;

    background:rgba(37,99,235,.12);

}

.skill h4{

    margin-bottom:4px;

    color:white;

}

.skill span{

    color:var(--gray);

    font-size:.9rem;

}

/*==============================
    SERVICES
==============================*/

.services-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

.service-card{

    position:relative;

    overflow:hidden;

    padding:40px 30px;

    transition:all .35s ease;

    cursor:pointer;

}

.service-card::before{

    content:"";

    position:absolute;

    inset:0;

    padding:1px;

    border-radius:inherit;

    background:linear-gradient(
        135deg,
        rgba(96,165,250,.8),
        transparent,
        rgba(37,99,235,.8)
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite:xor;

            mask-composite:exclude;

}

.service-card:hover{

    transform:translateY(-12px);

    box-shadow:0 25px 70px rgba(37,99,235,.25);

}

/*==============================
    SERVICE ICON
==============================*/

.service-icon{

    width:74px;

    height:74px;

    border-radius:20px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:25px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );

    color:white;

    font-size:1.8rem;

    transition:.35s;

}

.service-card:hover .service-icon{

    transform:rotate(10deg) scale(1.1);

}

.service-card h3{

    color:white;

    margin-bottom:18px;

}

.service-card p{

    color:var(--gray);

    margin-bottom:20px;

}

/*==============================
    SERVICE HOVER LINE
==============================*/

.service-card::after{

    content:"";

    position:absolute;

    bottom:0;
    left:0;

    width:0;

    height:4px;

    background:linear-gradient(
        90deg,
        #60a5fa,
        #2563eb
    );

    transition:.4s;

}

.service-card:hover::after{

    width:100%;

}

/*==============================
    SECTION ANIMATION PREP
==============================*/

.about,
.services{

    position:relative;

    overflow:hidden;

}

.about::before,
.services::before{

    content:"";

    position:absolute;

    width:500px;

    height:500px;

    border-radius:50%;

    background:radial-gradient(
        rgba(37,99,235,.12),
        transparent 70%
    );

    filter:blur(40px);

    z-index:-1;

}

.about::before{

    left:-180px;

    top:80px;

}

.services::before{

    right:-200px;

    bottom:-100px;

}
/*==================================================
    PART 2D
    PORTFOLIO + PROCESS + CALENDAR + CONTACT + FOOTER
==================================================*/

/*==============================
    PORTFOLIO
==============================*/

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.project-card{
    overflow:hidden;
    transition:.4s;
    position:relative;
}

.project-card:hover{
    transform:translateY(-12px);
    box-shadow:0 30px 80px rgba(37,99,235,.25);
}

.project-image{
    height:220px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#0f172a,#1e293b);
    position:relative;
}

.mockup{
    width:130px;
    height:130px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    color:#fff;
    font-size:3rem;
    box-shadow:0 20px 50px rgba(37,99,235,.4);
}

.project-content{
    padding:30px;
}

.project-category{
    display:inline-block;
    color:#60a5fa;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:1px;
    margin-bottom:15px;
}

.project-content h3{
    margin-bottom:15px;
    color:#fff;
}

/*==============================
    PROCESS
==============================*/

.timeline{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    flex-wrap:wrap;
    margin-top:60px;
}

.timeline-item{
    flex:1;
    min-width:170px;
    padding:30px 20px;
    text-align:center;
    transition:.35s;
}

.timeline-item:hover{
    transform:translateY(-10px);
}

.timeline-number{
    width:65px;
    height:65px;
    margin:0 auto 20px;
    border-radius:50%;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-weight:700;
    font-size:1.2rem;
}

.timeline-line{
    width:40px;
    height:3px;
    margin-top:60px;
    background:linear-gradient(90deg,#2563eb,#60a5fa);
    border-radius:50px;
}

/*==============================
    CALENDAR
==============================*/

.calendar-card{
    padding:60px;
    text-align:center;
}

.calendar-card p{
    max-width:700px;
    margin:20px auto 35px;
}

.calendar-placeholder{
    margin-top:45px;
    padding:60px;
}

.calendar-placeholder i{
    font-size:4rem;
    color:#60a5fa;
    margin-bottom:20px;
}

.calendar-placeholder h3{
    margin-bottom:15px;
}

/*==============================
    CONTACT
==============================*/

.contact-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.contact-card{
    padding:35px;
    text-align:center;
    transition:.35s;
}

.contact-card:hover{
    transform:translateY(-10px);
}

.contact-card i{
    width:75px;
    height:75px;
    margin:auto;
    margin-bottom:25px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.8rem;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    color:#fff;
}

.contact-card p{
    margin:15px 0 25px;
    word-break:break-word;
}

.contact-btn{
    display:inline-block;
    padding:12px 28px;
    border-radius:999px;
    background:#2563eb;
    color:#fff;
    transition:.3s;
}

.contact-btn:hover{
    background:#1d4ed8;
}

/*==============================
    FOOTER
==============================*/

footer{
    margin-top:120px;
    padding:70px 0 25px;
    border-top:1px solid rgba(255,255,255,.08);
}

.footer-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    flex-wrap:wrap;
}

.footer-content h2{
    font-size:2rem;
}

.footer-content span{
    color:#60a5fa;
}

.footer-links{
    display:flex;
    gap:25px;
    flex-wrap:wrap;
}

.footer-links a{
    color:#94a3b8;
    transition:.3s;
}

.footer-links a:hover{
    color:#fff;
}

.footer-bottom{
    margin-top:40px;
    padding-top:30px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.08);
}

/*==============================
    BACK TO TOP
==============================*/

#backToTop{
    position:fixed;
    right:30px;
    bottom:30px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    color:#fff;
    background:linear-gradient(135deg,#2563eb,#60a5fa);
    box-shadow:0 20px 40px rgba(37,99,235,.4);
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:999;
}

#backToTop.show{
    opacity:1;
    visibility:visible;
}

#backToTop:hover{
    transform:translateY(-6px);
}
/*==================================================
    PART 2E
    RESPONSIVE + ANIMATIONS + FINAL POLISH
==================================================*/

/*==============================
    SCROLL REVEAL
==============================*/

.reveal{
    opacity:0;
    transform:translateY(60px);
    transition:all .8s ease;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/*==============================
    HOVER EFFECTS
==============================*/

.project-card,
.service-card,
.skill,
.contact-card,
.timeline-item,
.about-image-wrapper,
.image-wrapper,
.floating-card,
.btn{
    transition:all .35s ease;
}

.project-card:hover,
.service-card:hover,
.skill:hover,
.contact-card:hover{
    transform:translateY(-10px);
}

/*==============================
    SELECTION COLOR
==============================*/

::selection{
    background:#2563eb;
    color:#fff;
}

/*==============================
    FOCUS ACCESSIBILITY
==============================*/

a:focus,
button:focus{
    outline:2px solid #60a5fa;
    outline-offset:4px;
}

/*==============================
    TABLET
==============================*/

@media(max-width:992px){

    h1{
        font-size:3.2rem;
    }

    h2{
        font-size:2.3rem;
    }

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

    .hero-content{
        order:2;
    }

    .hero-image{
        order:1;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-stats{
        justify-content:center;
    }

    .services-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .portfolio-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .contact-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .timeline{
        flex-direction:column;
        align-items:center;
    }

    .timeline-line{
        width:3px;
        height:45px;
        margin:10px 0;
    }

}

/*==============================
    MOBILE
==============================*/

@media(max-width:768px){

    .section{
        padding:80px 0;
    }

    h1{
        font-size:2.5rem;
    }

    h2{
        font-size:2rem;
    }

    .menu-btn{
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .nav-links{

        position:fixed;

        top:85px;
        right:-100%;

        width:280px;

        background:rgba(2,6,23,.96);

        backdrop-filter:blur(20px);

        flex-direction:column;

        padding:35px;

        gap:25px;

        border-radius:20px;

        transition:.4s;

        box-shadow:0 25px 60px rgba(0,0,0,.45);

    }

    .nav-links.show{

        right:20px;

    }

    .hero-content{

        padding:35px 25px;

    }

    .image-wrapper{

        width:320px;

        height:420px;

    }

    .floating-card{

        display:none;

    }

    .services-grid,
    .portfolio-grid,
    .skills-grid,
    .contact-grid{

        grid-template-columns:1fr;

    }

    .calendar-card{

        padding:35px 25px;

    }

    .calendar-placeholder{

        padding:35px 20px;

    }

    .footer-content{

        flex-direction:column;

        text-align:center;

    }

    .footer-links{

        justify-content:center;

    }

}

/*==============================
    SMALL MOBILE
==============================*/

@media(max-width:480px){

    .container{

        width:94%;

    }

    h1{

        font-size:2rem;

    }

    h2{

        font-size:1.8rem;

    }

    .hero-tag{

        font-size:.75rem;

    }

    .btn{

        width:100%;

    }

    .hero-buttons{

        flex-direction:column;

    }

    .image-wrapper{

        width:100%;

        height:auto;

    }

    .hero-stats{

        gap:20px;

    }

    .stat{

        flex:1;

    }

    #backToTop{

        right:15px;
        bottom:15px;

        width:48px;
        height:48px;

    }

}

/*==============================
    REDUCE MOTION
==============================*/

@media (prefers-reduced-motion: reduce){

    *,
    *::before,
    *::after{

        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;

    }

}
