/* ==================================================
   KUNAL LOHAR PORTFOLIO
   STYLE.CSS
================================================== */

/* Google Font */

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

/* Reset */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#070B17;
    color:#fff;
    overflow-x:hidden;
    line-height:1.7;
}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

/* Variables */

:root{

    --primary:#4F8CFF;
    --secondary:#7B61FF;

    --text:#ffffff;
    --text-light:#B9C2D8;

    --card:rgba(255,255,255,.05);

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

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

    --radius:24px;

}

/* Container */

.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* Sections */

section{

    padding:120px 0;

}

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title span{

    color:var(--primary);

    font-size:.9rem;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

}

.section-title h2{

    font-size:3rem;

    margin:18px 0;

}

.section-title p{

    color:var(--text-light);

    max-width:700px;

    margin:auto;

}

/* Loader */

#loader{

    position:fixed;

    inset:0;

    background:#070B17;

    display:flex;

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.loader-logo{

    width:90px;

    height:90px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    font-size:30px;

    font-weight:800;

    animation:pulse 1.6s infinite;

}

@keyframes pulse{

0%{transform:scale(1);}
50%{transform:scale(1.08);}
100%{transform:scale(1);}

}

/* Header */

#header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    background:rgba(7,11,23,.70);

    backdrop-filter:blur(18px);

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

}

.navbar{

    height:80px;

    display:flex;

    align-items:center;

    justify-content:space-between;

}

.logo{

    font-size:28px;

    font-weight:800;

}

.logo span:last-child{

    color:var(--primary);

}

.nav-links{

    display:flex;

    gap:38px;

}

.nav-links a{

    transition:.3s;

}

.nav-links a:hover{

    color:var(--primary);

}

.menu-btn{

    display:none;

    background:none;

    border:none;

    color:#fff;

    font-size:28px;

    cursor:pointer;

}
/* ==========================================
   HERO SECTION
========================================== */

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    position:relative;

    overflow:hidden;

    padding-top:80px;

}

.hero::before{

    content:"";

    position:absolute;

    width:700px;

    height:700px;

    right:-180px;

    top:-180px;

    background:radial-gradient(circle,
    rgba(79,140,255,.18),
    transparent 70%);

    filter:blur(70px);

}

.hero::after{

    content:"";

    position:absolute;

    width:500px;

    height:500px;

    left:-150px;

    bottom:-150px;

    background:radial-gradient(circle,
    rgba(123,97,255,.12),
    transparent 70%);

    filter:blur(70px);

}

.hero-container{

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:80px;

    position:relative;

    z-index:2;

}

.hero-tag{

    display:inline-block;

    padding:10px 18px;

    border-radius:999px;

    background:rgba(79,140,255,.10);

    color:#7FB0FF;

    font-size:.9rem;

    margin-bottom:24px;

}

.hero h1{

    font-size:68px;

    line-height:1.1;

    margin-bottom:18px;

    font-weight:800;

}

.hero h1 span{

    background:linear-gradient(
    90deg,
    var(--primary),
    var(--secondary));

    -webkit-background-clip:text;

    -webkit-text-fill-color:transparent;

}

.hero h2{

    font-size:26px;

    color:var(--text-light);

    font-weight:500;

    margin-bottom:24px;

}

.hero p{

    font-size:18px;

    color:var(--text-light);

    max-width:600px;

    margin-bottom:40px;

}
.hero-left{

    max-width:620px;

}

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

.hero-buttons{

    display:flex;

    gap:18px;

}

.btn-primary,

.btn-secondary{

    padding:16px 34px;

    border-radius:999px;

    font-weight:600;

    transition:.35s;

}

.btn-primary{

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    color:#fff;

    box-shadow:0 15px 35px rgba(79,140,255,.30);

}

.btn-primary:hover{

    transform:translateY(-5px);

    box-shadow:0 25px 45px rgba(79,140,255,.45);

}

.btn-secondary{

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

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

}

.btn-secondary:hover{

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

    transform:translateY(-5px);

}

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

.hero-right{

    position:relative;

    display:flex;

    justify-content:center;

    align-items:center;

    min-height:550px;
    display:flex;
    
justify-content:center;

}

.hero-circle{

    width:420px;

    height:420px;

    border-radius:50%;

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    filter:blur(8px);

    animation:float 6s ease-in-out infinite;

}

@keyframes float{

0%{transform:translateY(0);}
50%{transform:translateY(-25px);}
100%{transform:translateY(0);}

}

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

.floating-card{

    position:absolute;

    width:180px;

    padding:18px;

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

    backdrop-filter:blur(18px);

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

    border-radius:20px;

    box-shadow:var(--shadow);

}

.floating-card h3{

    margin-bottom:8px;

    font-size:18px;

}

.floating-card p{

    color:var(--text-light);

    font-size:14px;

}

.card-1{

    top:40px;

    left:40px;
}

.card-2{

    top:180px;

    right:30px;

}

.card-3{

    bottom:40px;

    left:80px;
}
/* ==========================================
   PROJECTS SECTION
========================================== */

.projects{

    position:relative;

}

.projects-grid{

    display:grid;

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

    gap:30px;

}

.project-card{

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

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

    border-radius:24px;

    overflow:hidden;

    transition:.35s;

    backdrop-filter:blur(18px);

    box-shadow:0 15px 40px rgba(0,0,0,.20);

}

.project-card:hover{

    transform:translateY(-10px);

    border-color:rgba(79,140,255,.35);

    box-shadow:0 25px 60px rgba(79,140,255,.18);

}

.project-image{
    width:100%;
    height:220px;
    background:#11182D;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    padding:15px;
}

.project-image img{
    width:auto;
    height:auto;
    max-width:100%;
    max-height:190px;
    object-fit:contain;
    transition:.4s;
}

.project-card:hover .project-image img{

    transform:scale(1.08);

}

.project-content{

    padding:24px;

}

.project-badge{

    display:inline-block;

    padding:7px 14px;

    border-radius:999px;

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

    color:var(--primary);

    font-size:12px;

    font-weight:700;

    letter-spacing:.5px;

    margin-bottom:18px;

}

.project-content h3{

    font-size:24px;

    margin-bottom:14px;

}

.project-content p{

    color:var(--text-light);

    margin-bottom:22px;

    line-height:1.7;

}

.project-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:12px 24px;

    border-radius:999px;

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary));

    font-weight:600;

    transition:.3s;

}

.project-btn:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 30px rgba(79,140,255,.25);

}

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

.about{

    position:relative;

}

.about-container{

    display:grid;

    grid-template-columns:420px 1fr;

    gap:70px;

    align-items:center;

}

.about-image{

    width:100%;

}

.about-image img{

    width:100%;

    border-radius:28px;

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

    box-shadow:var(--shadow);

}

.about-content span{

    color:var(--primary);

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;

}

.about-content h2{

    font-size:48px;

    margin:20px 0;

    line-height:1.2;

}

.about-content p{

    color:var(--text-light);

    margin-bottom:18px;

    line-height:1.9;

}
/* ==========================================
   SKILLS
========================================== */

.skills-grid{

    display:grid;

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

    gap:20px;

}

.skill-card{

    padding:28px 20px;

    text-align:center;

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

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

    border-radius:20px;

    backdrop-filter:blur(18px);

    font-weight:600;

    transition:.3s;

}

.skill-card:hover{

    transform:translateY(-8px);

    border-color:rgba(79,140,255,.35);

    box-shadow:0 15px 40px rgba(79,140,255,.18);

}

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

.contact-grid{

    display:grid;

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

    gap:25px;

}

.contact-card{

    padding:30px;

    border-radius:24px;

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

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

    backdrop-filter:blur(18px);

    transition:.3s;

}

.contact-card:hover{

    transform:translateY(-8px);

    border-color:rgba(79,140,255,.35);

}

.contact-card h3{

    margin-bottom:12px;

    color:var(--primary);

}

.contact-card p{

    color:var(--text-light);

    word-break:break-word;

}

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

footer{

    margin-top:120px;

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

    padding:40px 0;

}

.footer-container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

}

.footer-container h3{

    font-size:24px;

}

.footer-container p{

    color:var(--text-light);

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#070B17;

}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
    var(--primary),
    var(--secondary));

    border-radius:999px;

}

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

::selection{

    background:var(--primary);

    color:#fff;

}
/* ==========================================
   PREMIUM V2 PATCH
========================================== */

/* Animated Background */
body{
    background:
        radial-gradient(circle at top right,#1b2b68 0%,transparent 30%),
        radial-gradient(circle at bottom left,#40166d 0%,transparent 30%),
        #050816;
}

/* Better Header */
#header{
    background:rgba(5,8,22,.78);
    backdrop-filter:blur(22px);
    border-bottom:1px solid rgba(255,255,255,.08);
}

/* Logo */
.logo{
    font-size:30px;
    letter-spacing:.5px;
}

/* Nav Hover */
.nav-links a{
    position:relative;
    font-weight:500;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:#4F8CFF;
    transition:.35s;
}

.nav-links a:hover::after{
    width:100%;
}

/* Hero */
.hero{
    padding-top:130px;
}

.hero h1{
    font-size:82px;
}

.hero h2{
    font-size:30px;
}

.hero p{

    max-width:620px;

    font-size:19px;

    color:var(--text-light);

    line-height:1.9;

    margin-top:24px;

    margin-bottom:42px;

}

/* Bigger Glow */

.hero-circle{

    width:320px;
    height:320px;
    opacity:.75;
    filter:blur(90px);

}

/* Floating Cards */

.floating-card{

    position:absolute;

    width:180px;

    padding:20px;

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

    backdrop-filter:blur(20px);

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

    border-radius:20px;

    transition:all .35s ease;

    box-shadow:0 15px 35px rgba(0,0,0,.25);

}

.floating-card:hover{

    transform:translateY(-10px);

    border-color:rgba(255,255,255,.20);

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

}

/* Buttons */

.btn-primary{

    box-shadow:0 20px 45px rgba(79,140,255,.45);

}

.btn-primary:hover{

    transform:translateY(-6px) scale(1.03);

}

.btn-secondary{

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

}

/* Glass */

.project-card,
.skill-card,
.contact-card{

    backdrop-filter:blur(24px);

}
/* ===============================
   PREMIUM BACKGROUND V3
================================*/

.hero{

    overflow:hidden;

    position:relative;

}

.hero::before{

    content:"";

    position:absolute;

    width:700px;

    height:700px;

    right:-220px;

    top:-150px;

    border-radius:50%;

    background:
    radial-gradient(circle,
    rgba(82,122,255,.28),
    rgba(82,122,255,.10),
    transparent 70%);

    filter:blur(90px);

    animation:blob1 12s ease-in-out infinite;

}

.hero::after{

    content:"";

    position:absolute;

    width:500px;

    height:500px;

    left:-180px;

    bottom:-180px;

    border-radius:50%;

    background:
    radial-gradient(circle,
    rgba(140,90,255,.18),
    transparent 70%);

    filter:blur(90px);

}

.hero-circle{
    position:absolute;
    right:60px;
    top:50%;
    transform:translateY(-50%);
    width:420px;
    height:420px;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(92,120,255,.75),
        rgba(120,90,255,.25),
        transparent 75%);
    filter:blur(70px);
    z-index:0;
}

@keyframes blob1{

0%{

transform:translate(0,0);

}

50%{

transform:translate(-35px,25px);

}

100%{

transform:translate(0,0);

}

}
/* ============================
   PREMIUM SECTION BACKGROUND
============================ */

.projects{
    position:relative;
    overflow:hidden;
}

.projects::before{
    content:"";
    position:absolute;
    width:650px;
    height:650px;
    top:-220px;
    right:-180px;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(91,114,255,.16),
        transparent 72%);
    filter:blur(90px);
    pointer-events:none;
}

.projects::after{
    content:"";
    position:absolute;
    width:520px;
    height:520px;
    left:-180px;
    bottom:-220px;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(139,92,246,.12),
        transparent 72%);
    filter:blur(90px);
    pointer-events:none;
}
/* ==========================================
   PREMIUM PROJECTS V2
========================================== */

.projects{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.projects::before{
    content:"";
    position:absolute;
    top:-250px;
    right:-180px;
    width:700px;
    height:700px;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(79,140,255,.18) 0%,
        transparent 70%);
    filter:blur(100px);
    z-index:-2;
    animation:floatGlow1 10s ease-in-out infinite;
}

.projects::after{
    content:"";
    position:absolute;
    bottom:-250px;
    left:-180px;
    width:600px;
    height:600px;
    border-radius:50%;
    background:radial-gradient(circle,
        rgba(168,85,247,.14) 0%,
        transparent 70%);
    filter:blur(100px);
    z-index:-2;
    animation:floatGlow2 12s ease-in-out infinite;
}

.project-card{

    transition:
        transform .45s ease,
        box-shadow .45s ease,
        border-color .45s ease;

}

.project-card:hover{

    transform:translateY(-14px);

    border-color:rgba(79,140,255,.35);

    box-shadow:
        0 25px 60px rgba(0,0,0,.35),
        0 0 30px rgba(79,140,255,.18);

}

.project-image{

    overflow:hidden;

}

.project-image img{

    transition:transform .6s ease;

}

.project-card:hover .project-image img{

    transform:scale(1.08);

}

@keyframes floatGlow1{

0%,100%{

transform:translate(0,0);

}

50%{

transform:translate(-40px,35px);

}

}

@keyframes floatGlow2{

0%,100%{

transform:translate(0,0);

}

50%{

transform:translate(35px,-30px);

}

}
/* ==========================================
   PROJECT CARD V2
========================================== */

.project-card{

    position:relative;

}

.project-card::before{

    content:"";

    position:absolute;

    inset:0;

    padding:1px;

    border-radius:24px;

    background:linear-gradient(
        135deg,
        rgba(79,140,255,.45),
        rgba(168,85,247,.25),
        transparent
    );

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

    -webkit-mask-composite:xor;

    mask-composite:exclude;

    opacity:0;

    transition:.4s;

    pointer-events:none;

}

.project-card:hover::before{

    opacity:1;

}

.project-badge{

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

    border:1px solid rgba(79,140,255,.25);

    backdrop-filter:blur(12px);

}

.project-btn{

    transition:
        transform .35s ease,
        box-shadow .35s ease;

}

.project-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(79,140,255,.35);

}
/* ==========================================
   MOUSE GLOW EFFECT
========================================== */

body::before{

    content:"";

    position:fixed;

    width:500px;

    height:500px;

    left:var(--mouse-x,50%);

    top:var(--mouse-y,50%);

    transform:translate(-50%,-50%);

    border-radius:50%;

    background:radial-gradient(
        circle,
        rgba(79,140,255,.08),
        transparent 70%
    );

    pointer-events:none;

    z-index:-1;

    transition:
        left .08s linear,
        top .08s linear;

}
/* ==========================================
   PREMIUM GRID BACKGROUND
========================================== */

body::after{

    content:"";

    position:fixed;

    inset:0;

    background-image:

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

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

    background-size:40px 40px;

    mask-image:radial-gradient(circle at center,
        rgba(0,0,0,.85),
        transparent 95%);

    -webkit-mask-image:radial-gradient(circle at center,
        rgba(0,0,0,.85),
        transparent 95%);

    pointer-events:none;

    z-index:-2;

    opacity:.55;

}
/* ===== Smooth Card Hover ===== */

.project-card{
    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.project-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 50px rgba(0,0,0,.35);
}
/* ==========================================
   PREMIUM BUTTONS V2
========================================== */

.btn,
.btn-primary,
.btn-secondary{

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        border-color .25s ease;

}

.btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:
        0 12px 35px rgba(79,140,255,.35);

}

.btn-secondary:hover{

    transform:translateY(-4px);

    border-color:rgba(79,140,255,.45);

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

}

.project-card:hover .btn-primary{

    transform:translateY(-2px);

}
/* ==========================================
   PREMIUM SECTION TITLES
========================================== */

.section-heading{
    margin-bottom:80px;
    text-align:center;
}

.section-heading span{
    display:inline-block;
    padding:8px 18px;
    border-radius:999px;
    background:rgba(79,140,255,.10);
    border:1px solid rgba(79,140,255,.20);
    color:#78A8FF;
    font-size:.85rem;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:18px;
}

.section-heading h2{
    font-size:clamp(2rem,4vw,3.4rem);
    font-weight:800;
    line-height:1.1;
    margin-bottom:18px;
}

.section-heading p{
    max-width:700px;
    margin:auto;
    color:#9ca3af;
    line-height:1.8;
}
/* ==========================================
   PREMIUM SPACING SYSTEM
========================================== */

section{
    position:relative;
    padding:120px 0;
}

.container{
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.project-grid,
.skills-grid,
.contact-wrapper{

    gap:32px;

}

.project-card,
.skill-card,
.contact-card{

    border-radius:24px;

    padding:30px;

}
/* ==========================================
   PREMIUM GLASS EFFECT V3
========================================== */

.project-card,
.skill-card,
.contact-card{

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

    backdrop-filter:blur(22px);

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

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

    box-shadow:
        0 15px 40px rgba(0,0,0,.25);

}

.project-card:hover,
.skill-card:hover,
.contact-card:hover{

    border-color:rgba(79,140,255,.28);

    box-shadow:
        0 20px 60px rgba(0,0,0,.35),
        0 0 25px rgba(79,140,255,.12);

}

/* Glass Reflection */

.project-card::after,
.skill-card::after,
.contact-card::after{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:60%;

    height:100%;

    background:linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.08),

        transparent

    );

    transform:skewX(-25deg);

    transition:1s;

}

.project-card:hover::after,
.skill-card:hover::after,
.contact-card:hover::after{

    left:160%;

}