/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
  overflow-x: hidden;
}

.hero,
.hero-container {
  overflow-x: hidden;
}

body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
    background: #020617;
    color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* NAVBAR */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8%;
    z-index: 1000;
    height: 80px;
}


.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 110px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
    filter: drop-shadow(0 0 10px rgba(56,189,248,0.6));
}

.logo img:hover {
    transform: scale(1.08);
}

header h1 {
    font-size: 22px;
}

@media (max-width: 768px) {

  nav {
    display: flex;
    flex-wrap: wrap; /* allow wrapping */
    justify-content: center;
    gap: 8px;
  }

  nav button {
    font-size: 12px;
    margin: 4px;
  }

}

nav button {
    background: none;
    border: none;
    color: white;
    margin: 0 10px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

nav button:hover {
    color: #38bdf8;
}

.nav-btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: white;

    background: linear-gradient(90deg, #6366f1, #38bdf8);

    transition: 0.3s;
}

.nav-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(56,189,248,0.6);
}

/* HERO */
/* HERO BASE */
/* HERO BACKGROUND */
/* BASE PREMIUM BUTTON */
.premium-btn {
    position: relative;
    padding: 14px 30px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    color: white;
    overflow: hidden;

    background: linear-gradient(90deg, #6366f1, #38bdf8);
    box-shadow: 0 10px 30px rgba(56,189,248,0.3);

    transition: all 0.3s ease;
}

/* HOVER SCALE */
.premium-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ✨ SHINE EFFECT */
.premium-btn::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(25deg);
    transition: 0.5s;
}

.premium-btn:hover::before {
    top: 100%;
    left: 100%;
}

/* 🌊 RIPPLE EFFECT */
.premium-btn span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(255,255,255,0.5);
}



@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.premium-outline {
    position: relative;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    color: white;

    border: 1px solid #38bdf8;
    overflow: hidden;

    transition: 0.3s;
}

/* glow on hover */
.premium-outline:hover {
    background: rgba(56,189,248,0.1);
    box-shadow: 0 0 20px rgba(56,189,248,0.6);
    transform: scale(1.05);
}


.hero {
    min-height: auto;              /* remove 100vh problem */
    padding: 120px 20px 60px;     /* top = navbar space */
    display: flex;
    flex-direction: column;
    
    overflow: hidden;
    align-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 20% 40%, rgba(59,130,246,0.3), transparent),
        radial-gradient(circle at 80% 10%, rgba(236,72,153,0.2), transparent),
        #020617;
    
}

.hero::before,
.hero::after {
    pointer-events: none;
    z-index: 0;
}


.hero::before {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.25), transparent);
    filter: blur(120px);
    top: -100px;
    left: -100px;
}

/* CONTAINER */
.hero-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8%;
    width: 100%;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left,
.hero-right {
    flex: 1;
    min-width: 0;
}

/* LEFT SIDE */
.hero-left {
    position: relative;

    z-index: 5;
}

.hero-buttons {
    position: relative;
    z-index: 6;
}


@media (max-width: 768px) {

  .hero {
    padding: 100px 15px 40px; /* reduce bottom space */
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    width: 100%;
  }

  .hero-left h1 {
    font-size: 26px;
  }

  .hero-left p {
    font-size: 14px;
  }

}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-left p {
    margin: 15px 0;
    color: #94a3b8;
}

/* BUTTONS */
.hero-buttons button {
    padding: 12px 25px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(90deg, #6366f1, #3b82f6);
    color: white;
    margin-right: 10px;
    cursor: pointer;
}

.btn-outline {
    padding: 12px 25px;
    border: 1px solid #3b82f6;
    border-radius: 25px;
    text-decoration: none;
    color: white;
}

/* RIGHT SIDE */
.hero-right {
    pointer-events: none;
}

/* RIGHT CONTAINER */
.hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 20px;

}

/* MAIN SCREEN */
/* MAIN SCREEN */
.main-screen {
    position: relative;
    z-index: 2;
}

.main-screen img {
    width: 100%;
    max-width: 100%; /* keeps desktop intact */
    border-radius: 15px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transition: 0.4s;
    cursor: pointer;
}

/* MOBILE SCREEN (overlay for desktop) */
.mobile-screen {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translateX(10%);
    z-index: 3;
}

.mobile-screen img {
    width: 170px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: 0.4s;
    cursor: pointer;
}

/* HOVER EFFECT (BOTH) */
.main-screen img:hover,
.mobile-screen img:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 40px 100px rgba(56,189,248,0.3);
}

/* CLICK FEEDBACK */
.main-screen img:active,
.mobile-screen img:active {
    transform: scale(0.96);
}

/* MAKE IMAGE CLICKABLE */
.mobile-screen img {
    width: 170px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    cursor: pointer;   /* shows clickable */
    pointer-events: auto; /* IMPORTANT */
    transition: 0.4s;
}

/* HOVER EFFECT */
.mobile-screen img:hover {
    transform: translateY(-10px) scale(1.08);
}

/* OPTIONAL CLICK FEEDBACK */
.mobile-screen img:active {
    transform: scale(0.95);
}

/* allow clicks */
.hero-right {
    pointer-events: auto;
}

/* ensure images are clickable */
.main-screen a,
.mobile-screen a {
    display: inline-block;
    pointer-events: auto;
}


/* SECTION */
.section {
  padding: 40px 15px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

/* ABOUT */
#about {
    text-align: center;
}

#about {
    position: relative;
    padding: 100px 10%;
    color: white;
    overflow: hidden;
}

/* Background Image + Gradient */
#about::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at 20% 30%, rgba(56,189,248,0.15), transparent),
        radial-gradient(circle at 80% 70%, rgba(99,102,241,0.15), transparent),
        linear-gradient(
            rgba(2,6,23,0.9),
            rgba(2,6,23,0.95)
        ),
        url("about-bg.jpeg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    z-index: 0;
}

#about::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;

    background: radial-gradient(circle, rgba(56,189,248,0.2), transparent);
    filter: blur(100px);

    top: -100px;
    left: -100px;

    z-index: 0;
}

#about p {
    max-width: 1000px;
    margin: 20px auto;

    padding: 25px;
    border-radius: 20px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.1);

    box-shadow: 0 20px 40px rgba(0,0,0,0.3);

    line-height: 1.6;
}

#about p:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(56,189,248,0.2);
    transition: 0.3s;
}

/* Content stays above */
#about * {
    position: relative;
    z-index: 1;
}

/* CERTIFICATIONS SECTION */
/* SECTION */
#certifications {
    padding: 120px 10%;
    background:
        linear-gradient(180deg, rgba(99,102,241,0.05), #020617 80%),
        radial-gradient(circle at 10% 50%, rgba(56,189,248,0.12), transparent);
    position: relative;
}

/* TITLE */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 70px;

    background: linear-gradient(90deg, #ffffff, #38bdf8);
    -webkit-background-clip: text;
    color: transparent;
}

/* TIMELINE LINE */
.cert-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 30px;
}

/* vertical glowing line */
.cert-list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(#6366f1, #38bdf8);
    box-shadow: 0 0 20px rgba(56,189,248,0.6);
}

/* CARD */
.cert-item {
    position: relative;
    padding: 25px 25px 25px 30px;
    border-radius: 18px;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.4s;
}

/* DOT */
.cert-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
}

/* HOVER */
.cert-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(56,189,248,0.2);
}

/* TEXT */
.cert-left h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.cert-left p {
    color: #94a3b8;
    font-size: 14px;
}

/* YEAR BADGE */
.cert-year {
    position: absolute;
    top: 20px;
    right: 20px;

    padding: 6px 14px;
    border-radius: 20px;

    background: rgba(56,189,248,0.15);
    border: 1px solid rgba(56,189,248,0.4);

    color: #38bdf8;
    font-size: 13px;
}

/* PROJECT PREMIUM */
/* GRID */
#projects {
    text-align: center;
    padding: 100px 10%;
    padding-bottom: 20px;
    background:
        linear-gradient(180deg, rgba(56,189,248,0.05), #020617 70%),
        radial-gradient(circle at 80% 30%, rgba(99,102,241,0.18), transparent);
}

#projects h2 {
    font-size: 2.3rem;
    margin-bottom: 50px;
}


.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* CARD */
.project-card {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    overflow: hidden;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.08);

    transition: all 0.4s ease;
}

/* GLOW BORDER */
.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;

    background: linear-gradient(120deg, #6366f1, #38bdf8, transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    opacity: 0;
    transition: 0.4s;
}

/* LIGHT SWEEP */
.project-card::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(25deg);
    transition: 0.6s;
}

/* HOVER EFFECT */
.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 60px rgba(56,189,248,0.25);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover::after {
    top: 100%;
    left: 100%;
}

/* CONTENT */
.project-content h3 {
    margin-bottom: 30px;
    font-size: 18px;
}

.project-content p {
    color: #94a3b8;
    font-size: 14px;
}

/* LINK */
.project-content a {
    display: inline-block;
    margin-top: 15px;
    color: #38bdf8;
    text-decoration: none;
    position: relative;
}

/* LINK HOVER */
.project-content a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: 0.3s;
}

.project-content a:hover::after {
    width: 100%;
}

/* DASHBOARD */
@media (max-width: 768px) {

  /* Stack layout */
  .hero-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* MAIN SCREEN */
  .main-screen img {
    width: 100%;
    max-width: 320px;
  }

  /* MOBILE SCREEN BELOW MAIN IMAGE */
  .mobile-screen {
    position: relative;   /*remove absolute*/
    right: 0;
    bottom: 0;
    margin-top: 10px;
  }

  .mobile-screen img {
    width: 110px;
  }

}

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    margin-top: 30px;
  }




#dashboard {
    padding: 120px 10%;
    text-align: center;
}

#dashboard h2 {
    font-size: 2.0rem;
    margin-bottom: 50px;
}

/* GRID */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* CARD */
.dash-card {
    padding: 25px;
    border-radius: 20px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);

    border: 1px solid rgba(255,255,255,0.08);

    transition: 0.3s;
}

.dash-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(56,189,248,0.2);
}

/* COUNT */
.count {
    font-size: 2rem;
    color: #38bdf8;
}

/* SKILL BARS */
.skills-bars {
    margin-top: 50px;
}

.bar {
    margin-bottom: 20px;
    text-align: left;
}

.progress {
    height: 8px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #38bdf8);
}


/* EXPERIENCE SECTION */
#experience {
    padding: 100px 10%;
    background:
        linear-gradient(180deg, #020617 0%, rgba(56,189,248,0.06) 100%),
        radial-gradient(circle at 70% 60%, rgba(99,102,241,0.15), transparent);
    text-align: center;
}

#experience h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #1e293b;
    transform: translateX(-50%);
}

/* ITEM */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 30px;
}

/* Left side */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Right side */
.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* DOT */
.timeline-dot {
    position: absolute;
    top: 20px;
    right: -8px;
    width: 15px;
    height: 15px;
    background: #38bdf8;
    border-radius: 50%;
}

/* Right side dot fix */
.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

/* CONTENT */
.timeline-content {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(56,189,248,0.2);
}

.company {
    color: #38bdf8;
    font-weight: 500;
}

.duration {
    font-size: 13px;
    color: #94a3b8;
    margin: 5px 0;
}

.desc {
    font-size: 14px;
    color: #cbd5f5;
}

/* SKILLS PREMIUM */
#skills {
    text-align: center;
    padding: 100px 10%;
    background:
        linear-gradient(180deg, #020617 0%, rgba(99,102,241,0.08) 100%),
        radial-gradient(circle at 50% 80%, rgba(56,189,248,0.15), transparent);
}

#skills h2 {
    font-size: 1.8rem;
    margin-bottom: 50px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    padding: 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.1);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(56,189,248,0.3);
}

.skill-card h3 {
    margin-bottom: 15px;
}

.tags span {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(56,189,248,0.2);
    font-size: 13px;
}

/* CONTACT PREMIUM */
#contact {
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 12%;
    padding-right: 12%;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(56,189,248,0.08), #020617),
        radial-gradient(circle at 50% 20%, rgba(99,102,241,0.2), transparent);
}

#contact h2 {
    font-size: 1.9rem;
    margin-bottom: 120px;
}

#contact .container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.contact-wrapper {
    margin-top: 40px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

/* LEFT SIDE */
.contact-info {
    flex: 1;
    text-align: left;
}

.info-box {
    display: flex;
    align-items: center;
    margin: 15px 0;
    gap: 10px;
}

.socials a {
    margin-right: 10px;
    font-size: 20px;
    transition: 0.3s;
}

.socials a:hover {
    transform: scale(1.2);
}

/* RIGHT SIDE FORM */
.contact-form-box {
    flex: 1;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
}

.contact-form-box input,
.contact-form-box textarea {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #1e293b;
    color: white;
}

.socials i {
    font-size: 22px;
    margin-right: 12px;
    color: #94a3b8;
    transition: 0.3s;
}

.socials i {
    font-size: 22px;
    margin-right: 12px;
    color: #94a3b8;
    transition: 0.3s;
}

/* LinkedIn */
.socials a:hover .fa-linkedin {
    color: #0A66C2;
}

/* GitHub */
.socials a:hover .fa-github {
    color: #ffffff;
}

.socials a:hover i {
    transform: scale(1.2);
}
.contact-form-box button {
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    cursor: pointer;
    transition: 0.3s;
}

.contact-form-box button:hover {
    transform: scale(1.05);
}

/* RESUME BOX */
.resume-box {
    margin-top: 25px;
}

/* BUTTON */
.resume-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: 500;

    background: linear-gradient(90deg, #6366f1, #38bdf8);
    box-shadow: 0 0 20px rgba(56,189,248,0.4);

    transition: all 0.3s ease;
}

/* HOVER EFFECT */
.resume-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 30px rgba(56,189,248,0.7);
}

/* SUCCESS MESSAGE */
#success-msg {
    margin-top: 10px;
    color: #22c55e;
    font-size: 14px;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #020617;
}

@media (max-width: 768px) {

  h1 {
    font-size: 28px;
    line-height: 1.3;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 14px;
  }

  .hero {
    padding: 60px 15px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

}
