/* ==========================================================
   RESET, VARIABLES & GLOBAL STYLES
========================================================== */

:root{

  /* Colors */
  --bg:#0f172a;
  --bg-secondary:#1e293b;
  --bg-card:rgba(255,255,255,.05);

  --primary:#38bdf8;
  --primary-dark:#0ea5e9;

  --text:#e2e8f0;
  --text-light:#cbd5e1;
  --text-muted:#94a3b8;

  --border:rgba(255,255,255,.08);

  /* Shadows */
  --shadow-sm:0 6px 18px rgba(0,0,0,.18);
  --shadow-md:0 12px 30px rgba(56,189,248,.15);
  --shadow-lg:0 18px 45px rgba(56,189,248,.25);

  /* Radius */
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:18px;

  /* Transition */
  --transition:.35s ease;

  /* Container */
  --container:1200px;

}

/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;

    background:var(--bg);

    color:var(--text);

    line-height:1.7;

    overflow-x:hidden;

    -webkit-font-smoothing:antialiased;

}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

::selection{

    background:var(--primary);

    color:var(--bg);

}

/* ==========================================================
   CUSTOM SCROLLBAR
========================================================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:var(--bg);
}

::-webkit-scrollbar-thumb{

    background:linear-gradient(
        var(--primary),
        var(--primary-dark)
    );

    border-radius:30px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}

/* ==========================================================
   GLOBAL
========================================================== */

.container{

    width:min(100%,var(--container));

    margin:auto;

    padding-inline:24px;

}

section{

    padding:100px 0;

}

section h2{

    position:relative;

    width:fit-content;

    margin:0 auto 45px;

    font-size:2.3rem;

    color:var(--primary);

    font-weight:700;

}

section h2::after{

    content:"";

    position:absolute;

    left:50%;

    transform:translateX(-50%);

    bottom:-10px;

    width:70px;

    height:4px;

    border-radius:20px;

    background:linear-gradient(
        to right,
        var(--primary),
        var(--primary-dark)
    );

}

/* ==========================================================
   LINKS
========================================================== */

.project a:not(.btn){

    color:var(--primary);

    font-weight:600;

    transition:var(--transition);

}

.project a:not(.btn):hover{

    color:white;

}

/* ==========================================================
   NAVBAR
========================================================== */

header{

    position:sticky;

    top:0;

    z-index:1000;

    backdrop-filter:blur(18px);

    background:rgba(15,23,42,.78);

    border-bottom:1px solid rgba(255,255,255,.06);

    transition:var(--transition);

}

.nav-container{

    display:flex;

    align-items:center;

    justify-content:space-between;

    min-height:75px;

}

.logo{

    font-size:1.6rem;

    font-weight:700;

    color:white;

    letter-spacing:.5px;

}

.logo span{

    color:var(--primary);

}

nav ul{

    display:flex;

    align-items:center;

    gap:26px;

}

nav a{

    position:relative;

    color:var(--text-light);

    font-weight:500;

    transition:var(--transition);

}

nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:2px;

    background:var(--primary);

    transition:var(--transition);

}

nav a:hover,

nav a.active{

    color:white;

}

nav a:hover::after,

nav a.active::after{

    width:100%;

}




/* ==========================================================
   HERO SECTION
========================================================== */

#home{

   min-height:calc(100vh - 75px);

padding-top:50px;

    display:flex;

    align-items:center;

    position:relative;

    overflow:visible;

    background:
    radial-gradient(circle at top right,
    rgba(56,189,248,.10),
    transparent 35%),

    radial-gradient(circle at bottom left,
    rgba(14,165,233,.08),
    transparent 30%),

    linear-gradient(
    135deg,
    #1e293b,
    #0f172a
    );

}

/* Decorative Glow */

#home::before{

    content:"";

    position:absolute;

    width:420px;
    height:420px;

    top:-180px;
    right:-120px;

    border-radius:50%;

    background:rgba(56,189,248,.08);

    filter:blur(90px);
... 
}

#home::after{

    content:"";

    position:absolute;

    width:350px;
    height:350px;

    left:-120px;
    bottom:-140px;

    border-radius:50%;

    background:rgba(14,165,233,.08);

    filter:blur(90px);

}

.hero{
    



   gap:90px;
    position:relative;

    z-index:2;

    display:flex;

    align-items:center;

    justify-content:space-between;

    

    flex-wrap:wrap;

}

.hero-text{

    flex:1;

    min-width:320px;

}
.name{
    white-space:nowrap;
}
.hero-text h1{

    font-size:2.5rem;

   line-height:0.40;

    font-weight:500;

    color:white;

    margin-bottom:10px;

}

.hero-text span{

    background:linear-gradient(
    135deg,
    #38bdf8,
    #0ea5e9
    );

    -webkit-background-clip:text;
    background-clip:text;

    color:transparent;

}

.hero-text h2{

    margin:18px 0;

    font-size:1.55rem;

    font-weight:500;

    color:var(--text-muted);

}

.hero-text p{


max-width:580px;

font-size:18px;

line-height:1.9;


    color:var(--text-light);

    margin-bottom:30px;

}

.hero-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:18px;

    margin-bottom:35px;

}

.hero-stats{

    display:flex;

    gap:40px;

    flex-wrap:wrap;

    margin-top:20px;

}

.hero-stats div{

    text-align:center;

}

.hero-stats h3{

    color:var(--primary);

    font-size:2rem;

    font-weight:700;

    margin-bottom:6px;

}

.hero-stats p{

    color:var(--text-muted);

    margin:0;

    font-size:.95rem;

}

/* ==========================================================
   HERO IMAGE
========================================================== */
.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

      min-height:calc(100vh - 75px);

}

.hero-image img{

    width:360px;
    height:360px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid var(--primary);

    cursor:pointer;

    box-shadow:
0 0 0 8px rgba(56,189,248,.15),
0 15px 45px rgba(56,189,248,.25),
0 0 80px rgba(56,189,248,.18);

    transition:
        transform .4s ease,
        box-shadow .4s ease;

}

.hero-image img:hover{

    transform:translateY(-10px) scale(1.05);

    box-shadow:
        0 0 0 12px rgba(56,189,248,.12),
        0 35px 80px rgba(56,189,248,.45);

}


/* ==========================================================
   BUTTONS
========================================================== */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    padding:14px 30px;

    border:none;

    border-radius:12px;

    background:linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    );

    color:#08111f;

    font-weight:700;

    letter-spacing:.3px;

    cursor:pointer;

   transition:
    transform .3s ease,
    box-shadow .3s ease;
   

    box-shadow:
    0 10px 25px rgba(56,189,248,.25);

}

.btn:hover{

    transform:
    translateY(-4px);

    box-shadow:
    0 18px 35px rgba(56,189,248,.35);

}

.btn:active{

    transform:translateY(-1px);

}

.secondary{

    background:transparent;

    color:var(--primary);

    border:2px solid var(--primary);

    box-shadow:none;

}

.secondary:hover{

    background:rgba(56,189,248,.08);

    color:white;

    border-color:#7dd3fc;

}

/* ==========================================================
   ABOUT
========================================================== */

#about{

    background:var(--bg-secondary);

}

#about .container{

    max-width:900px;

}

#about p{

    text-align:center;

    font-size:1.05rem;

    color:var(--text-light);

    line-height:1.9;

}

/* Optional About Card */

#about .container{

    background:rgba(255,255,255,.03);

    border:1px solid rgba(255,255,255,.06);

    border-radius:20px;

    padding:45px;

    backdrop-filter:blur(14px);

    transition:var(--transition);

}

#about .container:hover{

    transform:translateY(-5px);

    box-shadow:var(--shadow-md);

}

/* ==========================================================
   HERO BUTTON CONTAINER
========================================================== */

.hero-buttons{

    display:flex;

    gap:18px;

    flex-wrap:wrap;

    align-items:center;

}

/* ==========================================================
   SMALL IMPROVEMENTS
========================================================== */

.hero-text p{

    font-size:1.08rem;

}

.hero-stats div{

    transition:var(--transition);

}

.hero-stats div:hover{

    transform:translateY(-6px);

}

.hero-stats h3{

    transition:var(--transition);

}

.hero-stats div:hover h3{

    color:white;

}


/* ==========================================================
   EDUCATION
========================================================== */

#education{
    background:var(--bg);
}

/* ==========================================================
   PROJECTS & CERTIFICATIONS
========================================================== */

#projects,
#certifications{
    background:var(--bg);
}

.projects-container{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:28px;

    align-items:stretch;

}
@media(max-width:900px){

.projects-container{

grid-template-columns:1fr;

}

}
/* ==========================================================
   CARD
========================================================== */

.project{

    position:relative;

    display:flex;

    flex-direction:column;

    height:100%;

    padding:30px;

    border-radius:20px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(14px);

    overflow:hidden;

    transition:all .35s ease;

}

/* Top Accent */

.project::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:4px;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--primary-dark)
    );

}

/* Glow */

.project::after{

    content:"";

    position:absolute;

    inset:0;

    opacity:0;

    transition:.35s;

    background:
    radial-gradient(
        circle at top right,
        rgba(56,189,248,.12),
        transparent 45%
    );

}

.project:hover{

    transform:
    translateY(-10px);

    border-color:
    rgba(56,189,248,.25);

    box-shadow:
    var(--shadow-lg);

}

.project:hover::after{

    opacity:1;

}

/* ==========================================================
   PROJECT CONTENT
========================================================== */

.project h3{

    color:white;

    font-size:1.45rem;

    margin-bottom:16px;

}

.project p{

    color:var(--text-light);

    margin-bottom:14px;

    line-height:1.75;

}

.project strong{

    color:var(--primary);

}

/* ==========================================================
   BUTTON AREA
========================================================== */

.project-buttons{

    margin-top:auto;

    padding-top:18px;

}

.project .btn{

    width:fit-content;

}

/* ==========================================================
   LINK (NON BUTTON)
========================================================== */

.project a:not(.btn){

    color:var(--primary);

    font-weight:600;

}

.project a:not(.btn):hover{

    color:white;

}

/* ==========================================================
   NICE HOVER EFFECT
========================================================== */

.project:hover h3{

    color:var(--primary);

}

.project:hover strong{

    color:white;

}


/* ==========================================================
   SKILLS
========================================================== */

#skills{
    background:var(--bg-secondary);
}

.skills-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(240px,1fr));

    gap:28px;

}

.skills-grid div{

    position:relative;

    overflow:hidden;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(14px);

    padding:28px;

    border-radius:20px;

    transition:all .35s ease;

}

/* Top Border */

.skills-grid div::before{

    content:"";

    position:absolute;

    left:0;
    top:0;

    width:100%;
    height:4px;

    background:linear-gradient(
        90deg,
        var(--primary),
        var(--primary-dark)
    );

}

/* Glow */

.skills-grid div::after{

    content:"";

    position:absolute;

    inset:0;

    opacity:0;

    transition:.35s;

    background:
    radial-gradient(
        circle at top right,
        rgba(56,189,248,.12),
        transparent 45%
    );

}

.skills-grid div:hover{

    transform:
    translateY(-8px);

    border-color:
    rgba(56,189,248,.25);

    box-shadow:
    var(--shadow-lg);

}

.skills-grid div:hover::after{

    opacity:1;

}

.skills-grid h3{

    color:var(--primary);

    margin-bottom:15px;

    font-size:1.3rem;

}

.skills-grid p{

    color:var(--text-light);

    line-height:1.8;

}

/* ==========================================================
   CERTIFICATIONS
========================================================== */

#certifications{

    background:var(--bg);

}

#certifications .project{

    min-height:220px;

    justify-content:center;

    text-align:center;

}

#certifications .project h3{

    color:white;

    margin-bottom:15px;

}

#certifications .project p{

    color:var(--text-muted);

    margin-bottom:10px;

}

#certifications .project:hover h3{

    color:var(--primary);

}

/* ==========================================================
   SHARED CARD EFFECTS
========================================================== */

.skills-grid div:hover h3,
#certifications .project:hover h3{

    transition:.3s;

}

.skills-grid div:hover p,
#certifications .project:hover p{

    color:var(--text);

}

/* ==========================================================
   CONTACT
========================================================== */

#contact{
    background:var(--bg);
}

.contact-container{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
    align-items:flex-start;
}

.contact-info,
.contact-form{
    flex:1;
    min-width:320px;
}

.contact-info p{
    color:var(--text-light);
    margin-bottom:18px;
}

.social-links{
    display:flex;
    gap:18px;
    margin-top:25px;
    flex-wrap:wrap;
}

.social-links a{
    color:var(--primary);
    font-weight:600;
    transition:var(--transition);
}

.social-links a:hover{
    color:#fff;
    transform:translateY(-2px);
}

.contact-form{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    backdrop-filter:blur(14px);
    padding:30px;
    transition:var(--transition);
}

.contact-form:hover{
    box-shadow:var(--shadow-md);
}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:15px 18px;

    margin-bottom:18px;

    border-radius:12px;

    border:1px solid rgba(255,255,255,.08);

    background:#162033;

    color:var(--text);

    font-size:1rem;

    transition:var(--transition);

}

.contact-form textarea{
    min-height:170px;
    resize:vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
    color:var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(56,189,248,.15);

}

/* ==========================================================
   FOOTER
========================================================== */

footer{

    padding:28px 20px;

    text-align:center;

    background:#020617;

    border-top:1px solid rgba(255,255,255,.08);

}

footer p{

    color:var(--text-muted);

    font-size:.95rem;

}

/* ==========================================================
   REVEAL ANIMATION
========================================================== */

.reveal{

    opacity:0;

    transform:translateY(45px);

    transition:
    opacity .8s ease,
    transform .8s ease;

}

.reveal.active{

    opacity:1;

    transform:translateY(0);

}

/* ==========================================================
   HOVER ENHANCEMENTS
========================================================== */

.project,
.skills-grid div,
.contact-form,
.btn,
.hero-image img{
 animation:float 5s ease-in-out infinite;
    will-change:transform;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width:992px){

    .hero{
        gap:50px;
    }

    .hero-text h1{
        font-size:3rem;
    }

    .hero-image img{
        width:290px;
    }

}

@media (max-width:768px){

    section{
        padding:80px 0;
    }

    .nav-container{
        flex-direction:column;
        padding:18px 0;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:16px;
        margin-top:15px;
    }

    .hero{

        flex-direction:column-reverse;

        text-align:center;

    }

    .hero-text h1{
        font-size:2.5rem;
    }

    .hero-text h2{
        text-align:center;
    }

    .hero-text p{
        margin-inline:auto;
    }

    .hero-buttons,
    .hero-stats{
        justify-content:center;
    }

    .hero-image img{
        width:240px;
    }

    .contact-container{
        flex-direction:column;
    }

}

@media (max-width:480px){

    .container{
        padding-inline:18px;
    }

    section h2{
        font-size:2rem;
    }

    .hero-text h1{
        font-size:2.1rem;
    }

    .btn{
        width:100%;
    }

    .projects-container,
    .skills-grid{
        grid-template-columns:1fr;
    }

}

nav a.active{
    color:#38bdf8;
}

nav a.active::after{
    width:100%;
}
#typing::after{

    content:" ";
display:inline;
    margin-left:3px;

    color:#38bdf8;

    animation:blink .8s infinite;

}

@keyframes blink{


    50%{
        transform:translateY(-10px);
    }
   

}

@keyframes float{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(-10px);

}

}
/* Toast */

.toast{

position:fixed;

top:25px;

right:25px;

padding:15px 24px;

border-radius:10px;

color:white;

font-weight:600;

z-index:99999;

opacity:0;

transform:translateY(-20px);

transition:.3s;

}

.toast.show{

opacity:1;

transform:translateY(0);

}

.toast.success{

background:#16a34a;

}

.toast.error{

background:#dc2626;

}

/* ==============================
   Back To Top Button
============================== */

#backToTop{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    font-size:22px;

    color:#08111f;

    background:linear-gradient(
        135deg,
        #38bdf8,
        #0ea5e9
    );

    box-shadow:0 10px 25px rgba(56,189,248,.35);

    opacity:0;

    visibility:hidden;

    transform:translateY(20px);

    transition:all .35s ease;

    z-index:999;

}

#backToTop.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

#backToTop:hover{

    transform:translateY(-5px);

}



/* ==========================================
EXPERIENCE
========================================== */

#experience{
    background:var(--bg-secondary);
}

.project h4{
    color:var(--primary);
    margin:8px 0 12px;
    font-size:1rem;
    font-weight:600;
}

.project ul{
    margin-top:15px;
    padding-left:20px;
}

.project ul li{
    color:var(--text-light);
    margin-bottom:10px;
    line-height:1.7;
}

/* ==========================================
   EXPERIENCE GRID
========================================== */

.experience-grid{

    display:grid;

    grid-template-columns:repeat(2, minmax(0,1fr));

    gap:30px;

    align-items:stretch;

}

@media(max-width:900px){

    .experience-grid{

        grid-template-columns:1fr;

    }

}