:root {
    --primary: #ffffff;
    --secondary: #212121;
    --accent: #C890A7;
    --neutral: #A35C7A;
    --header-height: 80px;
    --section-padding: clamp(2rem, 5vw, 4rem);
}
/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --secondary: hsla(342, 21%, 50%, 0.884);
    --primary: #000000fa;
    --accent: #ddbac9;
    --neutral: hsla(335, 100%, 88%, 0.267);
  }

  body {
    background: var(--primary);
    color: var(--secondary);
  }

  header {
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #333;
  }

  nav a {
    color: var(--secondary);
  }

  nav a::after {
    background: var(--accent);
  }

  .hero-text h4 {
    color: var(--neutral);
  }

  .hero-image::after {
    border-color: var(--accent);
  }

  .skills li {
    background: var(--neutral);
    color: var(--secondary);
  }

  .skills li:hover::after {
    background: var(--accent);
  }

  .projects li {
    background: #1e1e1e;
    border-color: var(--neutral);
    color: var(--secondary);
  }

  .projects li::after {
    background: var(--accent);
    opacity: 0.1;
  }

  .contact a {
    border-color: var(--neutral);
    color: var(--secondary);
  }

  .contact a:hover {
    background: var(--neutral);
    color: var(--primary);
  }

  footer {
    background: var(--secondary);
    color: var(--primary);
  }

  .footer-socials a {
    color: var(--primary);
  }

  .footer-socials a:hover {
    color: var(--accent);
  }
}
/* Base Styles */
body {
    background: var(--primary);
    color: var(--secondary);
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

header h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin-right: 7rem;
}

nav a {
    color: var(--secondary);
    text-decoration: none;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -4px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hide checkbox input */
#menu-toggle {
    display: none;
}

/* Hamburger Icon */
.menu-icon {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--secondary);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    nav ul {
        position: absolute;
        top: var(--header-height);
        right: 0;
        width: 200px;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px 0 0 10px;
        margin-right: 2rem;
    }

    #menu-toggle:checked + .menu-icon + nav ul {
        transform: translateX(0);
    }
}

/* Sections */
section {
    padding: var(--section-padding);
    padding-top: calc(var(--header-height) + 3rem);
    text-align: center;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero-text h4 {
    color: var(--neutral);
    margin-bottom: 2rem;
}

.hero-text .btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.7em 2em;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(200, 144, 167, 0.08);
    transition: background 0.2s, transform 0.2s;
    margin-top: 1.5rem;
}

.hero-text .btn:hover {
    background: var(--neutral);
    color: #fff;
    transform: translateY(-3px) scale(1.04);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 90px;
    width: 60%;
    height: 80%;
    border-right: 4px solid var(--accent);
    border-bottom: 4px solid var(--accent);
    border-radius: 20px;
    z-index: -1;
}

/* Hover effect for slight lift */
.hero-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Skills Section */
.skills ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    list-style: none;
}

.skills li {
    background: var(--neutral);
    padding: 2rem;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skills li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skills li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: 0;
    transition: left 0.3s ease;
}

.skills li:hover::after {
    left: 0;
}

.skills li span {
    position: relative;
    z-index: 1;
}

/* Projects Section */
.projects ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    list-style: none;
}

.projects li {
    background: var(--primary);
    border: 1px solid var(--neutral);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.projects li::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.1;
    transition: left 0.4s ease;
}

.projects li:hover::after {
    left: 0;
}

.projects li a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    display: block;
}

.projects li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.contact p {
    font-size: 1rem;
    margin: 10px 0;
    color: var(--secondary);
}

.contact a {
    display: inline-block;
    margin: 10px;
    padding: 1rem 2rem;
    border: 2px solid var(--neutral);
    border-radius: 5px;
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.contact a:hover {
    background: var(--neutral);
    color: #fff;
}

/* Footer */
footer {
    padding: 2rem;
    background: var(--secondary);
    color: var(--primary);
    text-align: center;
}

.footer-socials a {
    color: var(--accent);
    margin: 0 1rem;
    font-size: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-socials a:hover {
    opacity: 0.7;
    transform: scale(1.1);
    color: var(--neutral);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-right: 0; /* remove right margin on mobile */
    }
}
