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

/* =========================
   Reset
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
    font-family:'Poppins',sans-serif;
}

:root{

    --primary:#00d9ff;
    --secondary:#7b2ff7;

    --bg:#07111f;
    --bg2:#0f172a;

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

    --text:#ffffff;
    --light:#cbd5e1;

    --shadow:0 10px 30px rgba(0,0,0,.35);

}

body{

    background:linear-gradient(135deg,#050816,#0f172a,#1e293b);
    color:var(--text);
    overflow-x:hidden;

}

/* =========================
Scrollbar
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#08101d;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--primary),var(--secondary));
    border-radius:20px;
}

/* =========================
Header
========================= */

header{

position:fixed;

top:0;
left:0;

width:100%;

display:flex;
justify-content:space-between;
align-items:center;

padding:20px 10%;

background:rgba(0,0,0,.25);

backdrop-filter:blur(18px);

z-index:1000;

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

}

.logo{

font-size:30px;
font-weight:800;

}

.logo span{

color:var(--primary);

}

nav{

display:flex;
gap:35px;

}

nav a{

text-decoration:none;

color:white;

font-weight:500;

transition:.3s;

}

nav a:hover{

color:var(--primary);

}

.theme-toggle{

width:45px;
height:45px;

border-radius:50%;

display:flex;
justify-content:center;
align-items:center;

cursor:pointer;

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

transition:.4s;

}

.theme-toggle:hover{

transform:rotate(180deg);

background:var(--primary);

}

/* =========================
Hero
========================= */

.hero{

min-height:100vh;

display:flex;

justify-content:space-between;
align-items:center;

padding:120px 10%;

gap:60px;

}

.hero-text{

flex:1;

}

.hero h4{

font-size:22px;
font-weight:500;

color:var(--primary);

margin-bottom:15px;

}

.hero h1{

font-size:65px;

font-weight:800;

line-height:1.1;

margin-bottom:20px;

}

.hero h2{

font-size:32px;

color:var(--light);

margin-bottom:25px;

}

.hero p{

line-height:1.9;

color:#b7c2d3;

margin-bottom:40px;

max-width:600px;

}

/* =========================
Buttons
========================= */

.hero-btn{

display:flex;

gap:20px;

}

.btn{

padding:15px 35px;

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

border-radius:50px;

text-decoration:none;

color:white;

font-weight:600;

transition:.4s;

box-shadow:0 10px 25px rgba(0,217,255,.35);

}

.btn:hover{

transform:translateY(-6px);

}

.btn-outline{

padding:15px 35px;

border:2px solid var(--primary);

border-radius:50px;

text-decoration:none;

color:white;

transition:.4s;

}

.btn-outline:hover{

background:var(--primary);

}

/* =========================
Social Icons
========================= */

.social{

display:flex;

gap:20px;

margin-top:40px;

}

.social a{

width:55px;
height:55px;

border-radius:50%;

display:flex;
justify-content:center;
align-items:center;

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

text-decoration:none;

font-size:22px;

color:white;

transition:.4s;

}

.social a:hover{

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

transform:translateY(-8px);

}

/* =========================
Hero Image
========================= */

.hero-image{

flex:1;

display:flex;
justify-content:center;

}

.hero-image img{

width:400px;
height:400px;

object-fit:cover;

border-radius:50%;

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

box-shadow:

0 0 40px rgba(0,217,255,.35),

0 0 80px rgba(123,47,247,.25);

transition:.5s;

}

.hero-image img:hover{

transform:scale(1.04);

}

/* =========================
Sections
========================= */

section{

padding:100px 10%;

}

section h2{

font-size:42px;

margin-bottom:50px;

text-align:center;

position:relative;

}

section h2::after{

content:"";

width:80px;
height:4px;

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

position:absolute;

left:50%;

bottom:-12px;

transform:translateX(-50%);

border-radius:10px;

}

/* =========================
Cards
========================= */

.card{

background:var(--card);

padding:30px;

border-radius:20px;

backdrop-filter:blur(20px);

box-shadow:var(--shadow);

transition:.4s;

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

}

.card:hover{

transform:translateY(-10px);

border-color:var(--primary);

}

/* =========================
About Grid
========================= */

.about-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:25px;

margin-top:50px;

}

/* =========================
Floating Background Glow
========================= */

body::before{

content:"";

position:fixed;

width:350px;
height:350px;

background:#00d9ff;

filter:blur(180px);

top:-100px;
left:-100px;

opacity:.20;

z-index:-1;

}

body::after{

content:"";

position:fixed;

width:350px;
height:350px;

background:#7b2ff7;

filter:blur(180px);

bottom:-100px;
right:-100px;

opacity:.18;

z-index:-1;


/* =========================
   Skills Section
========================= */

.skills-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    margin-top:50px;
}

.skill-card{
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:20px;
    padding:35px;
    text-align:center;
    transition:.4s;
    cursor:pointer;
}

.skill-card:hover{
    transform:translateY(-12px);
    border-color:var(--primary);
    box-shadow:0 15px 35px rgba(0,217,255,.25);
}

.skill-card i{
    font-size:55px;
    margin-bottom:20px;
    color:var(--primary);
}

.skill-card h3{
    font-size:22px;
}

/* =========================
Experience Timeline
========================= */

.timeline{
    max-width:900px;
    margin:auto;
    position:relative;
}

.timeline::before{
    content:"";
    position:absolute;
    left:50%;
    width:4px;
    height:100%;
    background:linear-gradient(var(--primary),var(--secondary));
    transform:translateX(-50%);
}

.timeline-box{
    width:45%;
    background:rgba(255,255,255,.06);
    padding:25px;
    border-radius:20px;
    margin-bottom:40px;
    box-shadow:var(--shadow);
    border:1px solid rgba(255,255,255,.08);
}

.timeline-box:nth-child(odd){
    margin-right:auto;
}

.timeline-box:nth-child(even){
    margin-left:auto;
}

.timeline-box h3{
    color:var(--primary);
    margin-bottom:10px;
}

.timeline-box span{
    color:#9ca3af;
    font-size:14px;
}

/* =========================
Projects
========================= */

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.project-card{
    background:rgba(255,255,255,.06);
    padding:30px;
    border-radius:20px;
    transition:.4s;
    border:1px solid rgba(255,255,255,.08);
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 40px rgba(0,217,255,.2);
    border-color:var(--primary);
}

.project-card h3{
    color:var(--primary);
    margin-bottom:15px;
}

.project-card p{
    color:#cbd5e1;
    line-height:1.8;
    margin-bottom:25px;
}

.project-card a{
    text-decoration:none;
    color:white;
    padding:12px 24px;
    border-radius:30px;
    background:linear-gradient(45deg,var(--primary),var(--secondary));
}

/* =========================
Contact
========================= */

form{
    max-width:700px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

input,
textarea{

    width:100%;
    padding:18px;
    border:none;
    outline:none;
    border-radius:15px;
    background:rgba(255,255,255,.08);
    color:white;
    font-size:16px;

}

textarea{
    min-height:180px;
    resize:none;
}

button{

    border:none;
    cursor:pointer;
    padding:18px;
    font-size:17px;
    font-weight:600;
    border-radius:50px;
    color:white;
    background:linear-gradient(45deg,var(--primary),var(--secondary));
    transition:.4s;

}

button:hover{
    transform:translateY(-5px);
}

/* =========================
Footer
========================= */

footer{

    padding:40px 10%;
    text-align:center;
    background:#050816;
    border-top:1px solid rgba(255,255,255,.08);

}

footer h3{
    color:var(--primary);
    margin-bottom:15px;
}

footer p{
    color:#cbd5e1;
    line-height:1.8;
}

/* =========================
Animations
========================= */

@keyframes float{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-15px);
}

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

}

.hero-image img{
    animation:float 5s ease-in-out infinite;
}

.skill-card,
.project-card,
.card{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{

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

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

}

/* =========================
Responsive
========================= */

@media(max-width:992px){

.hero{
    flex-direction:column-reverse;
    text-align:center;
}

.hero-text p{
    margin:auto;
}

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

.social{
    justify-content:center;
}

.hero-image img{
    width:300px;
    height:300px;
}

.timeline::before{
    left:20px;
}

.timeline-box{
    width:100%;
    margin-left:40px !important;
}

}

@media(max-width:768px){

header{
    padding:20px;
}

nav{
    display:none;
}

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

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

.hero-image img{
    width:250px;
    height:250px;
}

section{
    padding:80px 25px;
}

section h2{
    font-size:32px;
}

.skills-grid,
.project-grid{
    grid-template-columns:1fr;
}

.about-grid{
    grid-template-columns:1fr;
}

}