/* CSS Reset */
#progress-bar{
    position: fixed;
    top: 0;
    left: 0;
    width: 20%;
    height: 4px;
    background: linear-gradient(90deg,#00e5ff,#3b82f6,#8b5cf6);
    box-shadow: 0 0 18px rgba(59,130,246,.9);
    z-index: 9999999;
    pointer-events: none;
    transition: width .05s linear;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}

:root {
  --bg: #0f172a;
  --card: #1e293b;
  --primary: #3b82f6;
  --secondary: #64748b;
  --text: #fff;
  --muted: #cbd5e1;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  position: relative;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 6%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo span {
  color: #3b82f6;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

button#theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  transition: color 0.3s;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}
.btn.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: var(--primary);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 4rem;
  min-height: 80vh;
  padding: 0px 8% 6rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.hero-content h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.hero-content p {
  color: var(--muted);
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
  min-height:450px;
}
.hero-image img {
  display:block;
  width:min(400px,90%);
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:50%;
  border:5px solid rgba(59,130,246,.45);
  box-shadow:0 0 35px rgba(59,130,246,.45),0 0 80px rgba(139,92,246,.25);
}
.hero-image::before{
  content:"";
  position:absolute;
  inset:50% auto auto 50%;
  width:460px;
  height:460px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(99,102,241,.22),transparent 70%);
  filter:blur(18px);
  z-index:-1;
}

section {
  padding: 6rem 8%;
}

body.light-theme {
  --bg: #f8fafc;
  --card: #fff;
  --primary: #2563eb;
  --secondary: #64748b;
  --text: #18181b;
  --muted: #475569;
  background: var(--bg);
  color: var(--text);
}

/* About Section */

.about{
    padding:100px 8%;
}

.about-container{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:60px;
    align-items:center;
}

.section-tag{
    color:var(--primary);
    font-weight:600;
    display:inline-block;
    margin-bottom:15px;
}

.about h2{
    font-size:3rem;
    margin-bottom:20px;
}

.about p{
    color:var(--muted);
    line-height:1.9;
    margin-bottom:20px;
}

.about-buttons{
    display:flex;
    gap:20px;
    margin-top:30px;
}

.about-right{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

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

.about-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(59,130,246,.25);
}

.about-card h3{
    font-size:2rem;
    margin-bottom:12px;
}

.about-card h4{
    margin-bottom:10px;
}

.about-card p{
    margin:0;
    color:var(--muted);
}

@media(max-width:900px){

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

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

.about h2{
    font-size:2.4rem;
}

}

@media(max-width:600px){

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

.about-buttons{
    flex-direction:column;
}

}

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

.skills {
    padding: 10px 8%;
}

.skills-header{
    width: 100%;
    margin: 0 0 60px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.skills-header h2{
    text-align: left;
    font-size:3rem;
}

.skills-header p{
    text-align: left;
    max-width: 700px;
}

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

.skill-card {
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 30px;
    transition: .35s;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(59,130,246,.25);
}

.skill-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
    transition: .3s;
}

.skill-card li:last-child {
    border-bottom: none;
}

.skill-card li:hover {
    color: var(--primary);
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .skills-header h2 {
        font-size: 2.3rem;
    }

    .skills {
        padding: 80px 6%;
    }
}

/* =========================
   PROJECTS
========================= */

.projects-grid{
    width:100%;
    margin:60px 0 0;
    max-width:none;
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:35px;
    padding:0;
    align-items:stretch;
}

.project-card{
    background:rgba(30,41,59,.9);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    overflow:hidden;

    display:flex;
    flex-direction:column;

    transition:.35s ease;
    width:100%;
    min-height:580px;

    backdrop-filter:blur(12px);
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.35);
}

.project-image{
    height:240px;
    overflow:hidden;
    background:#141a24;
}

.project-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:.5s;
}

.project-card:hover img{
    transform:scale(1.06);
}

.project-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.project-number{
    font-size:28px;
    font-weight:700;
    color:#4da3ff;
    margin-bottom:10px;
}

.project-content h3{
    font-size:28px;
    margin-bottom:15px;
}

.project-description{
    color:#d6d6d6;
    line-height:1.8;
    font-size:17px;
    margin-bottom:20px;
    flex:1;
}

.project-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:22px;
}

.project-tags span{
    padding:8px 16px;
    border-radius:30px;
    background:#293448;
    color:#66b3ff;
    font-size:14px;
    font-weight:600;
}

.project-links{
    display:flex;
    gap:15px;
}

@media (max-width:1100px){

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

}

@media (max-width:768px){

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

    .project-card{
        min-height:auto;
    }

}

.project-links .btn{
    flex:1;
    text-align:center;
}

.footer{
    background:#0f172a;
    border-top:1px solid rgba(255,255,255,.08);
    margin-top:120px;
    padding:60px 8% 25px;
}

.footer-container{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:40px;
}

.footer-brand h2{
    font-size:2rem;
    margin-bottom:10px;
}

.footer-brand span{
    color:#3b82f6;
}

.footer-brand p{
    color:#94a3b8;
    max-width:320px;
    line-height:1.7;
}

.footer-links,
.footer-social{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.footer-links a,
.footer-social a{
    color:#e2e8f0;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover,
.footer-social a:hover{
    color:#3b82f6;
}

.footer-bottom{
    margin-top:50px;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,.08);
    text-align:center;
    color:#94a3b8;
}

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

.contact{
    padding:120px 8%;
    position:relative;
}

.contact-header{
    max-width:700px;
    margin:0 0 70px;
    text-align:left;
}

.contact-header h2{
    font-size:3rem;
    margin:15px 0;
}

.contact-header p{
    color:var(--muted);
    line-height:1.8;
    max-width:600px;
    margin:0;
}

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

.contact-card{
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    padding:40px 30px;
    text-align:center;
    transition:.4s ease;
    position:relative;
    overflow:hidden;
}

.contact-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,#3b82f6,#8b5cf6);
    transform:scaleX(0);
    transform-origin:left;
    transition:.4s;
}

.contact-card:hover::before{
    transform:scaleX(1);
}

.contact-card:hover{
    transform:translateY(-10px);
    border-color:rgba(59,130,246,.4);
    box-shadow:0 20px 40px rgba(59,130,246,.18);
}

.contact-icon{
    width:80px;
    height:80px;
    margin:auto;
    margin-bottom:20px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    background:rgba(59,130,246,.12);
    color:#3b82f6;
    border:1px solid rgba(59,130,246,.3);
}

.contact-card h3{
    margin-bottom:12px;
    font-size:1.4rem;
}

.contact-card p,
.contact-card a{
    color:var(--muted);
    text-decoration:none;
    word-break:break-word;
    transition:.3s;
}

.contact-card a:hover{
    color:var(--primary);
}

@media(max-width:768px){

.contact{
    padding:90px 6%;
}

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

.contact-grid{
    gap:20px;
}

.contact-card{
    padding:30px 20px;
}

.contact-icon{
    width:70px;
    height:70px;
    font-size:1.7rem;
}

}


/* ==========================
   BLOG & VIDEOS PAGES
========================== */

.nav-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:45px;
}

.nav-links a{
    color:#fff;
    font-size:18px;
    font-weight:500;
}

.nav-links a:hover{
    color:#4da3ff;
}

.hero{
    padding-top:140px;
    min-height:70vh;
}

.hero-content{
    max-width:700px;
}

.hero-content p:first-child{
    font-size:20px;
    margin-bottom:20px;
}

.hero-description{
    max-width:600px;
}

#blogs,
#videos{
    padding-top:60px;
}

iframe{
    border:none;
    border-radius:16px;
    overflow:hidden;
    width:100%;
    aspect-ratio:16/9;
}

.skill-card{
    overflow:hidden;
}

footer{
    margin-top:80px;
}

/* ==========================================
   RESPONSIVE PREMIUM MOBILE NAVBAR
========================================== */

/* Desktop */
.menu-toggle{
    display:none;
    width:48px;
    height:48px;
    justify-content:center;
    align-items:center;
    font-size:32px;
    cursor:pointer;
    color:#fff;
    border-radius:50%;
    user-select:none;
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        background .35s,
        color .35s,
        box-shadow .35s,
        opacity .25s;
}

.menu-toggle:hover{
    background:rgba(59,130,246,.15);
    box-shadow:0 0 20px rgba(59,130,246,.25);
}

.menu-toggle.animating{
    transform:rotate(180deg) scale(.65);
    opacity:0;
}

.menu-toggle.active{
    transform:rotate(180deg);
    background:rgba(59,130,246,.15);
}

/* Desktop Navigation */
.nav-links{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:45px;
    list-style:none;
    transition:.4s ease;
}

/* ===========================
   Mobile View
=========================== */

@media (max-width:768px){

    .navbar{
        position:relative;
        padding:18px 6%;
    }

    .menu-toggle{
        display:flex;
        margin-left:auto;
        z-index:1002;
    }

    .nav-links{
        position:absolute;
        top:100%;
        left:0;
        width:100%;

        background:rgba(15,23,42,.98);
        backdrop-filter:blur(18px);

        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:25px;

        padding:30px 0;

        opacity:0;
        visibility:hidden;
        pointer-events:none;

        transform:translateY(-25px);

        transition:
            opacity .35s,
            transform .45s cubic-bezier(.22,1,.36,1),
            visibility .35s;
    }

    .nav-links.active{
        opacity:1;
        visibility:visible;
        pointer-events:auto;
        transform:translateY(0);
        animation:menuDrop .45s cubic-bezier(.22,1,.36,1);
    }

    .nav-links li{
        width:100%;
        text-align:center;
    }

    .nav-links a{
        display:block;
        width:100%;
        padding:12px;
        color:#fff;
        font-size:18px;
        transition:.3s;
    }

    .nav-links a:hover{
        color:#4da3ff;
        transform:translateX(6px);
    }
}

/* ===========================
   Animation
=========================== */

@keyframes menuDrop{

    0%{
        opacity:0;
        transform:translateY(-30px) scale(.97);
    }

    60%{
        opacity:1;
        transform:translateY(8px) scale(1.02);
    }

    100%{
        opacity:1;
        transform:translateY(0) scale(1);
    }

}