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

body{
    font-family:'Inter',sans-serif;
    background:
    radial-gradient(circle at top left,#1e3a8a 0%,transparent 35%),
    radial-gradient(circle at bottom right,#0ea5e9 0%,transparent 25%),
    #020617;

    color:white;
    overflow-x:hidden;
}

.navbar{

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

    padding:20px 8%;

    position:sticky;
    top:0;

    backdrop-filter:blur(6px);

    background:rgba(255,255,255,0.03);

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

    z-index:999;
}

.logo{
    font-size:1.4rem;
    font-weight:700;
}

.nav-links{
    display:flex;
    gap:30px;
    list-style:none;
}

.nav-links a{

    text-decoration:none;
    color:white;

    transition:0.3s;
}

.nav-links a:hover{

    color:#38bdf8;

    transform:translateY(-2px);
}

.hero{
    position:relative;
   min-height:100vh;

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

    padding:80px 8%;
}

.hero-glow{

    position:absolute;

    width:300px;
    height:300px;

    background:#38bdf8;

    filter:blur(150px);

    opacity:0.15;

    right:10%;
    top:20%;

    z-index:-1;
}

.hero-left{
    flex:1;
}

.hero-left img{
    animation: floatImage 5s ease-in-out infinite;

    object-fit:cover;

    width:400px;
    height:500px;

    border-radius:30px;

    border:1px solid rgba(255,255,255,0.1);

    box-shadow:
    0 0 40px rgba(56,189,248,0.2);

    transition:0.5s;
}

@keyframes floatImage{

    0%{
        transform:translateY(0);
    }

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

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

.hero-left img:hover{

    transform:
    translateY(-10px)
    scale(1.02);

    box-shadow:
    0 0 60px rgba(56,189,248,0.5);
}

.hero-right{
    flex:1;
    max-width:650px;
}

.tag{
    color:#38bdf8;
    margin-bottom:10px;
}

.hero-right h1{

     font-size:5.5rem;

    font-weight:700;

    letter-spacing:-3px;

    line-height:1.1;

    margin-bottom:10px;
}

.hero-right h2{
    font-size:2rem;
    line-height:1.4;
    margin-bottom:20px;
}

.hero-desc{
    color:#cbd5e1;
    margin-bottom:25px;
}

.hero-buttons{
    display:flex;
    gap:15px;
    margin-bottom:25px;
}

.btn-primary{
    background:#38bdf8;
    color:black;
    padding:12px 22px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
}

.btn-secondary{
    border:1px solid #38bdf8;
    color:white;
    padding:12px 22px;
    border-radius:10px;
    text-decoration:none;
}

.btn-primary,
.btn-secondary{

    transition:0.35s;
}

.btn-primary:hover{

    transform:
    translateY(-4px);

    box-shadow:
    0 0 30px rgba(56,189,248,0.6);
}

.btn-secondary:hover{

    background:#38bdf8;

    color:black;

    transform:
    translateY(-4px);
}

.social-links{
    display:flex;
    gap:20px;
}

.social-links a{

    color:white;

    font-size:1.5rem;

    transition:0.3s;
}

.social-links a:hover{

    color:#38bdf8;

    transform:
    scale(1.2)
    rotate(8deg);
}

.scroll-indicator{

    position:absolute;

    bottom:30px;

    left:50%;

    transform:translateX(-50%);

    color:#94a3b8;

    animation:bounce 2s infinite;
}

@keyframes bounce{

    0%,100%{
        transform:
        translateX(-50%)
        translateY(0);
    }

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

.overview{
    padding:80px 8% 120px;

    display:grid;

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

    gap:25px;
}

.overview-card{

    background:rgba(255,255,255,0.05);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,0.08);

    border-radius:20px;

    padding:30px;

    transition:0.4s;

     min-height:180px;
}

.overview-card:hover{

    transform:
    translateY(-12px)
    scale(1.02);

    border-color:#38bdf8;

    box-shadow:
    0 0 40px rgba(56,189,248,0.35);
}

.overview-card h3{

    margin-bottom:15px;

    color:#38bdf8;
}

/* ABOUT SECTION */

.about-section{

    padding:120px 8%;

    display:grid;

    grid-template-columns:
    1.2fr 1fr;

    gap:80px;

    align-items:center;
}

.section-tag{

    color:#38bdf8;

    font-size:14px;

    letter-spacing:3px;

    font-weight:600;
}

.about-left h2{

    max-width:900px;

    margin:0 auto 30px;

    line-height:1.15;

    text-align:center;

    font-size:clamp(3rem,5vw,5rem);
}

.about-left p{

    color:#cbd5e1;

    margin-bottom:20px;

    line-height:1.8;

    font-size:1.05rem;
}

.about-right{

    display:grid;

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

    gap:20px;
}

.stat-card{

    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,255,255,0.08);

    border-radius:20px;

    padding:35px;

    text-align:center;

    transition:0.4s;
}

.stat-card:hover{

    transform:
    translateY(-10px);

    border-color:#38bdf8;

    box-shadow:
    0 0 25px rgba(56,189,248,0.3);
}

.stat-card h3{

    font-size:2rem;

    color:#38bdf8;

    margin-bottom:10px;
}

.stat-card p{

    color:#cbd5e1;
}

@media(max-width:900px){

    .about-section{

        grid-template-columns:1fr;

        gap:40px;
    }

    .about-left h2{

        font-size:2.2rem;
    }
}

h1,h2,h3,h4,h5,h6,
.logo{

    font-family:
    'Space Grotesk',
    sans-serif;
}

.skills-section{

    padding:120px 8%;
    padding-top: 120px;
    padding-bottom: 120px;
}

.section-header{

    text-align:center;

    margin-bottom:70px;
}

.section-header h2{

    font-size:3rem;

    margin:20px 0;
}

.section-header p{

    color:#cbd5e1;

    max-width:800px;
    margin:0 auto;
    line-height:1.8;
}

.skills-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
}

.skill-category{

    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,255,255,0.08);

    border-radius:24px;

    padding:30px;

    transition:0.4s;
}

.skill-category:hover{

    transform:
    translateY(-10px);

    border-color:#38bdf8;

    box-shadow:
    0 0 30px rgba(56,189,248,0.25);
}

.skill-category h3{

    margin-bottom:25px;

    color:#38bdf8;
}

.skill-tags{

    display:flex;

    flex-wrap:wrap;

    gap:12px;
}

.skill-tags span{

    background:
    rgba(56,189,248,0.1);

    border:
    1px solid rgba(56,189,248,0.2);

    padding:10px 15px;

    border-radius:50px;

    transition:0.3s;

    cursor:pointer;
}

.skill-tags span:hover{

    background:#38bdf8;

    color:#020617;

    transform:scale(1.05);
}

/* EXPERIENCE SECTION */

.experience-section{
    padding:180px 8% 120px;
}
.timeline{

    position:relative;

    max-width:1000px;

    margin:80px auto 0;
}

.timeline::before{

    content:"";

    position:absolute;

    left:120px;

    top:0;

    width:2px;

    height:100%;

    background:
    rgba(56,189,248,0.4);
}

.timeline-item{

    display:flex;

    gap:50px;

    margin-bottom:60px;

    position:relative;
}

.timeline-year{

    min-width:100px;

    color:#38bdf8;

    font-size:1.3rem;

    font-weight:700;
}

.timeline-content{

    background:
    rgba(255,255,255,0.04);

    border:
    1px solid rgba(255,255,255,0.08);

    padding:30px;

    border-radius:24px;

    flex:1;

    transition:0.4s;
}

.timeline-content:hover{

    transform:
    translateY(-8px);

    border-color:#38bdf8;

    box-shadow:
    0 0 30px rgba(56,189,248,0.25);
}

.timeline-content h3{

    color:#38bdf8;

    margin-bottom:10px;
}

.timeline-content h4{

    margin-bottom:15px;

    color:#ffffff;
}

.timeline-content p{

    color:#cbd5e1;

    line-height:1.8;
}

@media(max-width:768px){

    .timeline::before{

        display:none;
    }

    .timeline-item{

        flex-direction:column;
    }

    .timeline-year{

        margin-bottom:10px;
    }
}

.certifications-grid{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:60px;
}

.cert-card{
    width:350px;
    padding:35px;
    border-radius:20px;

    background:rgba(255,255,255,0.03);

    border:1px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(12px);

    transition:.4s ease;
}

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

    box-shadow:
    0 0 30px rgba(41,182,246,.25);
}

.cert-provider{
    color:#29b6f6;

    font-size:14px;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:15px;
}

.cert-card h3{
    margin-bottom:15px;

    font-size:24px;
}

.cert-card p{
    color:#b9c4d0;

    margin-bottom:25px;
}

.cert-card a{
    color:#29b6f6;

    text-decoration:none;

    font-weight:600;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    margin-top:60px;
}

.contact-card{
    padding:25px;
    border-radius:18px;

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

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

    margin-bottom:20px;
}

.contact-form input,
.contact-form textarea{

    width:100%;

    padding:18px;

    border:none;

    outline:none;

    border-radius:15px;

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

    color:white;

    margin-bottom:20px;
}

.contact-form textarea{
    height:160px;
    resize:none;
}

.contact-form button{

    width:100%;

    padding:18px;

    border:none;

    border-radius:15px;

    background:#29b6f6;

    color:white;

    font-weight:600;

    cursor:pointer;
}

.contact-section{
    padding:120px 10%;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    margin-top:60px;
}

.contact-info{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.info-card{
    display:flex;
    align-items:center;
    gap:20px;

    padding:28px;

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

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

    border-radius:20px;

    transition:.4s;
    

    position:relative;
    overflow:hidden;

}

.info-card:hover{
    transform:translateY(-8px);

    border-color:#29b6f6;

    box-shadow:
    0 0 35px rgba(41,182,246,.25);
}

.info-card i{
    font-size:24px;
    color:#29b6f6;
}

.info-card h4{
    margin-bottom:5px;

}

.info-card a{
    color:#cfd8dc;
    text-decoration:none;
    
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-form input,
.contact-form textarea{

    padding:18px;

    border-radius:18px;

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

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

    color:white;

    outline:none;
}

.contact-form textarea{
    height:180px;
    resize:none;
}

.contact-form button{

    padding:18px;

    border:none;

    border-radius:18px;

    background:#29b6f6;

    color:white;

    font-weight:600;

    cursor:pointer;

    transition:.4s;
}

.contact-form button:hover{

    transform:translateY(-3px);

    box-shadow:
    0 0 25px rgba(41,182,246,.35);
}

.footer{

    margin-top:80px;

    padding:60px 10%;

    text-align:center;

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

.footer h3{

    font-size:32px;

    margin-bottom:15px;
}

.footer p{

    color:#cfd8dc;
}

.footer-socials{

    display:flex;

    justify-content:center;

    gap:25px;

    margin:30px 0;
}

.footer-socials a{

    width:55px;

    height:55px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    text-decoration:none;

    color:white;

    font-size:22px;

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

    transition:.4s;
}

.footer-socials a:hover{

    transform:translateY(-6px);

    background:#29b6f6;

    box-shadow:0 0 25px rgba(41,182,246,.45);
}

.footer-line{

    width:180px;

    height:1px;

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

    margin:25px auto;
}

.copyright{

    font-size:14px;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:100px;
}

.cert-card{

    transition:all .4s ease;
}

.cert-card:hover{

    transform:
    translateY(-12px)
    scale(1.02);

    border-color:#38bdf8;

    box-shadow:
    0 0 40px rgba(56,189,248,.35);
}

.featured-badge{

    display:inline-block;

    padding:6px 14px;

    border-radius:20px;

    background:
    rgba(56,189,248,.15);

    color:#38bdf8;

    font-size:.8rem;

    margin-bottom:15px;
}

.cert-btn{

    display:inline-block;

    margin-top:20px;

    padding:12px 24px;

    border-radius:30px;

    text-decoration:none;

    color:#29b6f6;

    border:1px solid #29b6f6;

    transition:.3s;
}

.cert-btn:hover{

    background:#29b6f6;

    color:white;

    box-shadow:
    0 0 20px rgba(41,182,246,.4);
}

.typing-text{

    font-size:2.8rem;
    font-weight:700;
    line-height:1.3;
}

.typing-text span{

    color:#29b6f6;
    border-right:3px solid #29b6f6;
    padding-right:5px;

    animation:cursor .8s infinite;
}

@keyframes cursor{

    50%{
        border-color:transparent;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px); /* Slightly reduced to minimize spacing distortion during scroll */
    transition: all 0.8s ease;
}

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

.about-section,
.skills-section,
.experience-section,
.contact-section,
#certifications {
    padding: 120px 8%;
    margin: 60px auto; /* Generates breathing room above and below each section */
    max-width: 1400px;
    box-sizing: border-box;
}

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

/* Fixes the 4th item centering logic inside the 3-column layout */
.skills-grid .skill-category:nth-child(4) {
    grid-column: 2 / 3;
}


.about-section {
    display: flex;
    flex-direction: column; /* Changed to flex-column to easily center the content */
    align-items: center;    /* Centers items horizontally */
    text-align: center;     /* Centers text content internally */
    gap: 40px;
}


.about-left {
    text-align: center;     /* Explicitly center the text elements */
    max-width: 800px;       /* Keeps lines of text readable */
    margin: 0 auto;
}

.about-left h2 {
    font-size: 4rem;
    line-height: 1.15;
    margin: 20px 0 30px;
}

.about-left p {
    color:#cbd5e1;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    max-width:850px;

    margin:0 auto 25px;

    text-align:center;
}

.about-right {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Spreads stats evenly across 4 columns */
    gap: 25px;
    width: 100%;
    margin-top: 20px;
}

@media(max-width: 900px){
    .about-section {
        padding: 80px 8%;
    }

    .about-left h2 {
        font-size: 2.5rem;
    }

    .about-right {
        grid-template-columns: repeat(2, 1fr); /* Drops to 2x2 grid on smaller tablets */
    }
}

@media(max-width: 600px){
    .about-right {
        grid-template-columns: 1fr; /* Drops to single column on mobile screens */
    }
}

.footer{

    padding:100px 8% 60px;

    text-align:center;

    position:relative;
}

.footer-content{

    max-width:900px;

    margin:auto;
}

.footer h2{

    font-size:2.5rem;

    margin-bottom:15px;

    color:white;
}

.footer p{

    color:#94a3b8;

    margin-bottom:30px;
}

.footer-socials{

    display:flex;

    justify-content:center;

    gap:25px;

    margin-bottom:40px;
}

.footer-socials a{

    width:60px;
    height:60px;

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

    border-radius:50%;

    background:rgba(255,255,255,0.04);

    border:1px solid rgba(255,255,255,0.08);

    color:white;

    font-size:1.4rem;

    transition:.4s;
}

.footer-socials a:hover{

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

    background:#38bdf8;

    color:#020617;

    box-shadow:
    0 0 25px rgba(56,189,248,.45);
}

.footer-line{

    width:180px;

    height:1px;

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

    margin:0 auto 25px;
}

.copyright{

    font-size:.9rem;

    color:#64748b;
}

.menu-toggle{

    display:none;

    font-size:1.5rem;

    cursor:pointer;

    color:white;
}

@media(max-width:900px){

    .menu-toggle{

        display:block;
    }

    .nav-links{

        position:absolute;

        top:100%;

        right:0;

        width:100%;

        flex-direction:column;

        align-items:center;

        gap:25px;

        padding:30px 0;

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

        backdrop-filter:blur(20px);

        display:none;
    }

    .nav-links.active{

        display:flex;
    }
}

.nav-links a.active{

    color:#38bdf8;

    position:relative;
}

.nav-links a.active::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:100%;
    height:2px;

    background:#38bdf8;

    border-radius:10px;
}

#backToTop{

    position:fixed;

    right:25px;
    bottom:25px;

    width:55px;
    height:55px;

    border:none;

    border-radius:50%;

    background:#38bdf8;

    color:#020617;

    font-size:1.2rem;

    cursor:pointer;

    z-index:999;

    opacity:0;

    visibility:hidden;

    transition:.4s;

    box-shadow:
    0 0 25px rgba(56,189,248,.35);
}

#backToTop.show{

    opacity:1;

    visibility:visible;
}

#backToTop:hover{

    transform:
    translateY(-5px)
    scale(1.05);

    box-shadow:
    0 0 35px rgba(56,189,248,.55);
}

.cursor-glow{

    position:fixed;

    width:250px;
    height:250px;

    border-radius:50%;

    background:
    radial-gradient(
    circle,
    rgba(56,189,248,.15),
    transparent 70%);

    pointer-events:none;

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

    z-index:0;

    transition:
    transform .08s linear;
}
#particles{

    position:fixed;

    inset:0;

    pointer-events:none;

    z-index:-1;
}

.particle{

    position:absolute;

    width:4px;
    height:4px;

    border-radius:50%;

    background:#38bdf8;

    opacity:.3;

    animation:
    floatParticle linear infinite;
}

@keyframes floatParticle{

    from{
        transform:
        translateY(100vh);
    }

    to{
        transform:
        translateY(-100px);
    }
}

.section-tag{

    display:block;

    margin-bottom:20px;
}

/* =========================
   MOBILE RESPONSIVE FIX
========================= */

@media screen and (max-width:768px){

.navbar{
padding:18px 20px;
}

.hero{
flex-direction:column;
text-align:center;
padding:120px 20px 60px;
gap:40px;
}

.hero-left{
width:100%;
display:flex;
justify-content:center;
}

.hero-left img{
width:280px;
height:auto;
max-width:100%;
}

.hero-right{
max-width:100%;
}

.hero-right h1{
font-size:3rem;
line-height:1.1;
word-break:break-word;
}

.hero-right h2{
font-size:1.5rem;
}

.typing-text{
font-size:1.8rem;
}

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

.hero-buttons a{
width:220px;
text-align:center;
}

.social-links{
justify-content:center;
}

.overview{
grid-template-columns:1fr 1fr;
gap:15px;
padding:60px 20px;
}

.overview-card{
padding:20px;
min-height:auto;
}

.about-section{
padding:80px 20px;
}

.about-left h2{
font-size:2.5rem;
}

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

.skills-section{
padding:80px 20px;
}

.section-header h2{
font-size:2.3rem;
}

.skills-grid{
grid-template-columns:1fr;
gap:20px;
}

.skills-grid .skill-category:nth-child(4){
grid-column:auto;
}

.experience-section{
padding:80px 20px;
}

.timeline-item{
flex-direction:column;
gap:15px;
}

.timeline-year{
margin-bottom:0;
}

.timeline::before{
display:none;
}

.contact-section{
padding:80px 20px;
}

.contact-container{
grid-template-columns:1fr;
gap:30px;
}

.certifications-grid{
gap:20px;
}

.cert-card{
width:100%;
}

.footer{
padding:60px 20px;
}

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

.scroll-indicator{
display:none;
}

}
