* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #34d399;
    --light-green: #6ee7b7;
    --dark-green: #10b981;
    --bg-light: #f0fdf4;
    --bg-white: #ffffff;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --shadow-sm: 0 2px 8px rgba(16, 185, 129, 0.08);
    --shadow-md: 0 4px 16px rgba(16, 185, 129, 0.12);
    --shadow-lg: 0 8px 32px rgba(16, 185, 129, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #d1fae5 100%);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

#shapes-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 32px;
}

/* Left (logo) */
.nav-left {
  flex: 1;
}

.nav-logo {
  height: 38px;
}

/* Logo */
.nav-logo img {
  height: 50px;
  margin-left: 10px;
}

/* ================= NAV ICON BAR ================= */
.nav-icons {
  position: absolute;              /* 🔥 KEY */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 22px;
}

/* ================= NAV ITEM ================= */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;

  width: 44px;
  height: 44px;

  padding-right: 12px;

  border-radius: 50%;
  background: #bff1db;
  color: #0f9d68;

  overflow: hidden;
  cursor: pointer;
}

/* ================= ICON ================= */

.nav-item svg {
  width: 20px;
  height: 20px;

  margin-left: 12px;

  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  flex-shrink: 0;
}

/* ================= TEXT ================= */

.nav-item span {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;

  opacity: 0;
  transform: translateX(-10px);

  transition: 
    opacity 0.25s ease,
    transform 0.25s ease;
}

/* ================= HOVER (POPUP ONLY) ================= */

.nav-item:hover {
  width: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f9d68, #7ee3b3);
  color: #ffffff;
}

.nav-item:hover span {
  opacity: 1;
  transform: translateX(0);
}

/* ================= ACTIVE (CURRENT SECTION) ================= */

.nav-item.active {
  width: 120px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f9d68, #7ee3b3);
  color: #ffffff;
}

.nav-item.active span {
  opacity: 1;
  transform: translateX(0);
}

/* ================= ACCESSIBILITY ================= */

.nav-item:focus-visible {
  outline: 2px solid #0f9d68;
  outline-offset: 4px;
}

/* ================= MOBILE SAFETY ================= */

@media (max-width: 768px) {
  .nav-item:hover {
    width: 44px;
    border-radius: 50%;
  }

  .nav-item:hover span {
    opacity: 0;
  }
}

/* Right (theme switch) */
.nav-right {
  margin-left: auto;
}


section {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.profile-image {
    width: 520px;
    height: 520px;
    margin-left: -200px;
    margin-top: -200px;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}
/* Prevent image selection & dragging */
.protected-img {
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
}


.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.753);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.floating-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-green);
}
.icon-1 {
    top: -120px;
    right: 20px;
    animation-delay: 0s;
}

.icon-2 {
    top: 60px;
    right: 5px;
    animation-delay: 0.5s;
}

.icon-3 {
    bottom: 5px;
    right: 60px;
    animation-delay: 1s;
}

.icon-4 {
    bottom: 60px;
    left: -80px;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}
/* ================= ROCKER SWITCH ================= */

.rocker-switch {
  position: absolute;
  right: 40px;
}

/* hide checkbox */
.rocker-switch input {
  display: none;
}

.rocker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 140px;
  height: 52px;
  background: #e5e7eb;
  border-radius: 14px;
  border: 3px solid #111;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Labels */
.rocker span {
  display: grid;
  place-items: center;
  font-weight: 600;
  z-index: 2;
  color: #111;
}

/* Handle */
.rocker::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  background: #cbd5e1;
  border-radius: 12px;
  left: 0;
  top: 0;
  transition: transform 0.35s ease;
  z-index: 1;
}

/* DARK MODE (switch left) */
#themeRocker:checked + .rocker::before {
  transform: translateX(100%);
}

/* Active label coloring */
#themeRocker:checked + .rocker .rocker-left {
  color: #fff;
}

#themeRocker:not(:checked) + .rocker .rocker-right {
  color: #fff;
}

/* DARK THEME COLORS */
body.dark .rocker {
  background: #0f172a;
  border-color: #e5e7eb;
}

body.dark .rocker::before {
  background: #1e293b;
}

body.dark .rocker span {
  color: #94a3b8;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-top: -180px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(52, 211, 153, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
}

.stats-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 4rem;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.highlight-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.avatar-illustration {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    animation: float 4s ease-in-out infinite;
}

.avatar-illustration svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(16, 185, 129, 0.2));
}

.skills-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.skill-pill {
    padding: 0.875rem 1.75rem;
    background: var(--bg-white);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-pill:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    color: white;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.project-reverse {
    direction: rtl;
}

.project-reverse > * {
    direction: ltr;
}

.project-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.project-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-description {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.5rem 1.25rem;
    background: rgba(110, 231, 183, 0.2);
    color: var(--dark-green);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.project-link:hover {
    transform: translateX(8px);
}

.testimonials-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-card.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-icon {
    font-size: 4rem;
    color: var(--light-green);
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-green);
    width: 36px;
    border-radius: 6px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-description {
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--primary-green);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.social-link:hover svg {
    color: white;
}

.contact-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(110, 231, 183, 0.3);
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(110, 231, 183, 0.2);
}

.footer p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .hero-container,
    .about-container,
    .project-item,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-reverse {
        direction: ltr;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .profile-wrapper {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.95rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-section {
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-role {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skills-grid {
        gap: 0.75rem;
    }

    .skill-pill {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .project-item {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.875rem;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-wrapper {
        width: 200px;
        height: 200px;
    }

    .floating-icon {
        width: 50px;
        height: 50px;
    }

    .floating-icon svg {
        width: 24px;
        height: 24px;
    }
}
