/* ===== VARIABLES ===== */
:root {
    /* Colors */
    --primary-color: #ff009d;
    --secondary-color: #f9004d;
    --dark-color: #1e2125;
    --text-color: #3c3e41;
    --light-color: #ecf0f3;
    --card-color: #eff2f5;
    --white-color: #ffffff;
  
    /* Shadows */
    --shadow-soft: 5px 5px 15px #d1d9e6, -5px -5px 15px #ffffff;
    --shadow-inset: inset 2px 2px 2px 0px rgba(255, 255, 255, 0.5), 7px 7px 20px 0px rgba(0, 0, 0, 0.1), 4px 4px 5px 0px
      rgba(0, 0, 0, 0.1);
  
    /* Gradients */
    --gradient-white: linear-gradient(145deg, #e2e8ec, #ffffff);
  
    /* Typography */
    --h1-size: clamp(3rem, 5vw, 4.5rem);
    --h2-size: clamp(2.5rem, 4vw, 4rem);
    --h3-size: clamp(1.8rem, 3vw, 2.5rem);
    --h4-size: clamp(1.6rem, 2.5vw, 2.2rem);
    --body-size: clamp(1.4rem, 1.8vw, 1.6rem);
    --small-size: clamp(1.2rem, 1.5vw, 1.4rem);
  
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
  
    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
  
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-round: 50%;
  }
  
  /* ===== RESET & BASE STYLES ===== */
  *,
  *::before,
  *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
  }
  
  body {
    font-family: "Montserrat", sans-serif;
    font-size: var(--body-size);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
  }
  
  h1 {
    font-size: var(--h1-size);
  }
  
  h2 {
    font-size: var(--h2-size);
  }
  
  h3 {
    font-size: var(--h3-size);
  }
  
  h4 {
    font-size: var(--h4-size);
  }
  
  p {
    margin-bottom: var(--spacing-md);
  }
  
  a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  ul {
    list-style: none;
  }
  
  button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
  }
  
  .container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
  }
  
  .section-padding {
    padding: var(--spacing-xl) 0;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
  }
  
  .section-title p {
    color: var(--primary-color);
    font-size: var(--small-size);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
  }
  
  .section-title h2 {
    font-weight: 700;
  }
  
  .text-center {
    text-align: center;
  }
  
  .flex {
    display: flex;
    align-items: center;
  }
  
  .flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .flex-column {
    display: flex;
    flex-direction: column;
  }
  
  .grid {
    display: grid;
  }
  
  .divider {
    width: 90%;
    height: 1px;
    background-color: rgba(160, 157, 157, 0.5);
    margin: 0 auto;
  }
  
  /* ===== ANIMATIONS ===== */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  .animate {
    animation-duration: 1s;
    animation-fill-mode: both;
  }
  
  .fade-in {
    animation-name: fadeIn;
  }
  
  .fade-in-up {
    animation-name: fadeInUp;
  }
  
  .fade-in-down {
    animation-name: fadeInDown;
  }
  
  .fade-in-left {
    animation-name: fadeInLeft;
  }
  
  .fade-in-right {
    animation-name: fadeInRight;
  }
  
  .delay-1 {
    animation-delay: 0.2s;
  }
  
  .delay-2 {
    animation-delay: 0.4s;
  }
  
  .delay-3 {
    animation-delay: 0.6s;
  }
  
  .delay-4 {
    animation-delay: 0.8s;
  }
  
  /* ===== HEADER & NAVIGATION ===== */
  .header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--light-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-fast);
  }
  
  .header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-con {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
  }
  
  .main-logo {
    width: 200px;
    transition: all var(--transition-fast);
  }
  
  .navbar {
    transition: all var(--transition-medium);
  }
  
  .navbar-list {
    display: flex;
    align-items: center;
    gap: 3rem;
  }
  
  .navbar-link {
    font-size: var(--small-size);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark-color);
    position: relative;
    padding: 0.5rem 0;
  }
  
  .navbar-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
  }
  
  .navbar-link:hover,
  .navbar-link:active {
    color: var(--primary-color);
  }
  
  .navbar-link:hover::after,
  .navbar-link:active::after {
    width: 100%;
  }
  
  .custom-btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-inset);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .btn-primary {
    background: var(--gradient-white);
    color: var(--dark-color);
  }
  
  .btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: all var(--transition-fast);
    z-index: -1;
  }
  
  .btn-primary:hover {
    color: var(--white-color);
  }
  
  .btn-primary:hover::after {
    left: 0;
    width: 100%;
  }
  
  .btn-primary:active {
    transform: translateY(2px);
  }
  
  .mob-nav-btn {
    display: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
  }
  
  .mob-nav-icon {
    width: 3rem;
    height: 3rem;
    color: var(--dark-color);
    transition: transform var(--transition-fast);
  }
  
  .mob-nav-icon[name="close-outline"] {
    display: none;
    color: var(--primary-color);
  }
  
  /* ===== HERO SECTION ===== */
  .hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 5rem 0;
  }
  
  .hero-content {
    flex: 1;
    max-width: 600px;
  }
  
  .hero-subtitle {
    font-size: var(--small-size);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
  }
  
  .hero-title {
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-title span {
    color: var(--primary-color);
  }
  
  .hero-typed {
    font-size: var(--h4-size);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    min-height: 4rem;
  }
  
  .hero-description {
    margin-bottom: var(--spacing-lg);
  }
  
  .skills-section {
    margin-top: var(--spacing-lg);
  }
  
  .skills-title {
    font-size: var(--small-size);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
  }
  
  .skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }
  
  .skill-icon {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-md);
    background: var(--gradient-white);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
  }
  
  .skill-icon:hover {
    transform: translateY(-5px);
  }
  
  .skill-icon img {
    width: 3rem;
    height: 3rem;
    transition: transform var(--transition-fast);
  }
  
  .skill-icon:hover img {
    transform: scale(1.1);
  }
  
  .hero-image {
    flex: 1;
    max-width: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--gradient-white);
    padding: 2rem;
  }
  
  /* ===== FEATURES SECTION ===== */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: var(--spacing-lg);
  }
  
  .feature-card {
    background: var(--gradient-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .feature-card:hover {
    transform: translateY(-10px);
  }
  
  .feature-icon {
    width: 6rem;
    height: 6rem;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
  }
  
  .feature-icon img {
    width: 3rem;
    height: 3rem;
  }
  
  .feature-title {
    font-size: var(--h4-size);
    margin-bottom: var(--spacing-md);
  }
  
  .feature-description {
    color: var(--text-color);
    font-size: var(--small-size);
    line-height: 1.6;
  }
  
  .feature-card.frontend {
    border-bottom: 4px solid rgb(156, 219, 211);
  }
  
  .feature-card.backend {
    border-bottom: 4px solid rgb(166, 217, 254);
  }
  
  .feature-card.performance {
    border-bottom: 4px solid rgb(253, 200, 164);
  }
  
  .feature-icon.frontend {
    background-color: rgb(156, 219, 211);
  }
  
  .feature-icon.backend {
    background-color: rgb(166, 217, 254);
  }
  
  .feature-icon.performance {
    background-color: rgb(253, 200, 164);
  }
  
  /* ===== PROJECTS SECTION ===== */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: var(--spacing-lg);
  }
  
  .project-card {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-medium);
  }
  
  .project-card:hover {
    transform: translateY(-10px);
  }
  
  .project-image {
    height: 200px;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.05);
  }
  
  .project-content {
    padding: 2rem;
  }
  
  .project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
  }
  
  .project-category {
    font-size: var(--small-size);
    font-weight: 600;
    color: var(--text-color);
  }
  
  .project-likes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--small-size);
  }
  
  .project-title {
    font-size: var(--body-size);
    font-weight: 600;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-fast);
  }
  
  .project-card:hover .project-title {
    color: var(--primary-color);
  }
  
  .arrow-icon {
    font-size: 2.5rem;
    transition: transform var(--transition-fast);
  }
  
  .project-card:hover .arrow-icon {
    transform: translateX(5px);
    color: var(--primary-color);
  }
  
  .macbook-showcase {
    margin-top: var(--spacing-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }
  
  /* ===== CONTACT SECTION ===== */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }
  
  .contact-info {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
  }
  
  .contact-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
  }
  
  .contact-image img {
    transition: transform var(--transition-medium);
  }
  
  .contact-image:hover img {
    transform: scale(1.05);
  }
  
  .contact-title {
    font-size: var(--h3-size);
    margin-top: var(--spacing-md);
  }
  
  .contact-subtitle {
    font-size: var(--body-size);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
  }
  
  .contact-text {
    margin-bottom: var(--spacing-md);
  }
  
  .contact-detail {
    margin-bottom: var(--spacing-sm);
  }
  
  .contact-social {
    margin-top: var(--spacing-lg);
  }
  
  .contact-form {
    background-color: var(--white-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: var(--spacing-md);
  }
  
  .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .form-label {
    display: block;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
  }
  
  .form-control {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--body-size);
    transition: all var(--transition-fast);
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 157, 0.1);
  }
  
  textarea.form-control {
    resize: vertical;
    min-height: 150px;
  }
  
  .submit-btn {
    background: var(--gradient-white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: var(--body-size);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-soft);
    display: inline-block;
    cursor: pointer;
  }
  
  .submit-btn:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--white-color);
  }
  
  /* ===== FOOTER ===== */
  .footer {
    background-color: var(--light-color);
    background-image: url(./image/Computer-footer-1.svg);
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
    padding: var(--spacing-xl) 0;
    text-align: center;
  }
  
  .footer-logo {
    width: 180px;
    margin: 0 auto var(--spacing-lg);
  }
  
  .footer-text {
    font-size: var(--small-size);
    color: var(--text-color);
  }
  
  /* ===== RESPONSIVE STYLES ===== */
  @media (max-width: 1200px) {
    .hero-section {
      padding: 3rem 0;
    }
  }
  
  @media (max-width: 992px) {
    .contact-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-info {
      max-width: 600px;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 768px) {
    .navbar {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background-color: var(--light-color);
      display: flex;
      justify-content: center;
      align-items: center;
      transition: all var(--transition-medium);
      z-index: 1000;
    }
  
    .navbar-list {
      flex-direction: column;
      gap: 3rem;
    }
  
    .navbar-link {
      font-size: 2rem;
    }
  
    .mob-nav-btn {
      display: block;
      position: relative;
      z-index: 1002;
    }
  
    .active .navbar {
      right: 0;
    }
  
    .active .mob-nav-icon[name="menu-outline"] {
      display: none;
    }
  
    .active .mob-nav-icon[name="close-outline"] {
      display: block;
    }
  
    .hero-section {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-content {
      max-width: 100%;
    }
  
    .skills-grid {
      justify-content: center;
    }
  
    .hero-image {
      max-width: 300px;
      margin: 0 auto;
    }
  
    .form-row {
      grid-template-columns: 1fr;
      gap: 0;
    }
  }
  
  @media (max-width: 576px) {
    html {
      font-size: 55%;
    }
  
    .container {
      width: 95%;
    }
  
    .navbar-con {
      padding: 1.5rem 0;
    }
  
    .main-logo {
      width: 150px;
    }
  
    .hero-image {
      max-width: 250px;
    }
  
    .features-grid,
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    .contact-form,
    .contact-info {
      padding: 2rem;
    }
  }
  
  /* Ensure navbar is visible on desktop regardless of previous state */
  @media (min-width: 769px) {
    .navbar {
      position: static;
      width: auto;
      height: auto;
      background-color: transparent;
      display: flex;
      right: 0;
      transform: none;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
  
    .navbar-list {
      flex-direction: row;
    }
  
    .navbar-link {
      font-size: var(--small-size);
    }
  
    .active .navbar {
      transform: none;
    }
  }
  
  /* ===== UTILITY CLASSES ===== */
  .no-scroll {
    overflow: hidden;
  }
  
  .reveal {
    position: relative;
    opacity: 0;
    transition: all 1s ease;
  }
  
  .reveal.active {
    opacity: 1;
  }
  
  .reveal-left {
    transform: translateX(-50px);
  }
  
  .reveal-right {
    transform: translateX(50px);
  }
  
  .reveal-left.active,
  .reveal-right.active {
    transform: translateX(0);
  }
  
  .reveal-up {
    transform: translateY(50px);
  }
  
  .reveal-up.active {
    transform: translateY(0);
  }
  
