/* ================= GLOBAL STYLES ================= */
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #1b1a17; /* warm charcoal */
    color: #e6e2d3;      /* sandstone off-white */
    overflow-x: hidden;
    line-height: 1.6;
}

section {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: "Poppins", sans-serif;
    margin: 0 0 20px 0;
}

/* Earth-tone palette */
:root {
    --accent: #d4a373;       /* clay / warm tan */
    --accent-soft: #b7c4a0;  /* olive / sage green */
    --bg-card: #242320;      /* dark warm taupe */
    --bg-soft: #1f1e1b;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(27, 26, 23, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.navbar .logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.navbar .logo span {
    color: var(--accent-soft);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #e6e2d3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e6e2d3;
    background: none;
    border: none;
}

/* ================= HERO SECTION ================= */

#hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
    min-height: 40vh;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-content h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    min-width: 150px; /* Ensure minimum width */
    text-align: center;
}

/* solid accent button */
.neon {
    background: var(--accent);
    color: #1b1a17;
}

.neon:hover {
    opacity: 0.9;
}

/* outline button */
.outline {
    border: 2px solid var(--accent-soft);
    color: var(--accent-soft);
}

.outline:hover {
    background: var(--accent-soft);
    color: #1b1a17;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(212, 163, 115, 0.25));
}

/* ================= RESPONSIVE FOR HERO ================= */
@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Increased gap for better spacing */
    }
    .hero-buttons .btn {
        width: 100%; /* Full width on mobile for better touch */
        max-width: 250px; /* Prevent too wide */
        padding: 12px 20px; /* Slightly larger padding */
    }
    .hero-image img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content h2 {
        font-size: 0.9rem;
    }
    .tagline {
        font-size: 0.8rem;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        padding: 10px 15px;
        font-size: 0.9rem; /* Smaller font if needed */
    }
    .hero-image img {
        max-width: 200px;
    }
}


/* ================= ABOUT ================= */
#about {
    background-color: #1b1b1b;
    color: #e6e2d3;
    text-align: center;
    padding: 60px 5%;
}

.about-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    border: 3px solid var(--accent);
    box-shadow: 0 6px 15px rgba(212, 163, 115, 0.3);
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.about-skills h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.about-skills ul {
    list-style: none;
    padding: 0;
}

.about-skills ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 18px;
}

.about-skills ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.btn-download {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: var(--accent);
    color: #1b1a17;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-download:hover {
    background-color: var(--accent-soft);
}

/* ================= PROJECTS ================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(212, 163, 115, 0.1);
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.project-card p {
    margin-bottom: 10px;
}

.project-card .tools {
    font-size: 0.9rem;
    color: var(--accent-soft);
    margin-bottom: 15px;
}

.project-btn {
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 500;
}

.project-btn:hover {
    color: var(--accent);
}

/* ================= SKILLS ================= */
#skills {
  padding: 80px 5%;
  background: linear-gradient(135deg, #1b1a17 0%, #242320 100%);
  color: #e6e2d3;
  text-align: center;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--accent);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 10px auto;
  border-radius: 2px;
}

.skills-wheel {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 35, 32, 0.5) 50%, transparent 50%);
  box-shadow: 0 0 50px rgba(212, 163, 115, 0.2);
}

.skill-item {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  padding: 5px;
  top: 50%;
  left: 50%;
  transform-origin: 50% 50%;
}

/* Proper circular positioning starting from top */
.skill-item:nth-child(1) {
  transform: translate(-50%, -50%) rotate(-90deg) translate(150px) rotate(90deg);
}
.skill-item:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg) translate(150px) rotate(45deg);
}
.skill-item:nth-child(3) {
  transform: translate(-50%, -50%) rotate(0deg) translate(150px) rotate(0deg);
}
.skill-item:nth-child(4) {
  transform: translate(-50%, -50%) rotate(45deg) translate(150px) rotate(-45deg);
}
.skill-item:nth-child(5) {
  transform: translate(-50%, -50%) rotate(90deg) translate(150px) rotate(-90deg);
}
.skill-item:nth-child(6) {
  transform: translate(-50%, -50%) rotate(135deg) translate(150px) rotate(-135deg);
}
.skill-item:nth-child(7) {
  transform: translate(-50%, -50%) rotate(180deg) translate(150px) rotate(-180deg);
}
.skill-item:nth-child(8) {
  transform: translate(-50%, -50%) rotate(225deg) translate(150px) rotate(-225deg);
}

/* Fixed hover to pop out in the correct direction with scale */
.skill-item:nth-child(1):hover {
  transform: translate(-50%, -50%) rotate(-90deg) translate(160px) rotate(90deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}
.skill-item:nth-child(2):hover {
  transform: translate(-50%, -50%) rotate(-45deg) translate(160px) rotate(45deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}
.skill-item:nth-child(3):hover {
  transform: translate(-50%, -50%) rotate(0deg) translate(160px) rotate(0deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}
.skill-item:nth-child(4):hover {
  transform: translate(-50%, -50%) rotate(45deg) translate(160px) rotate(-45deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}
.skill-item:nth-child(5):hover {
  transform: translate(-50%, -50%) rotate(90deg) translate(160px) rotate(-90deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}
.skill-item:nth-child(6):hover {
  transform: translate(-50%, -50%) rotate(135deg) translate(160px) rotate(-135deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}
.skill-item:nth-child(7):hover {
  transform: translate(-50%, -50%) rotate(180deg) translate(160px) rotate(-180deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}
.skill-item:nth-child(8):hover {
  transform: translate(-50%, -50%) rotate(225deg) translate(160px) rotate(-225deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(212, 163, 115, 0.4);
}

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: var(--accent-soft);
}

.skill-item h3 {
  font-size: 0.8rem;
  margin: 0 0 5px 0;
  color: var(--accent);
}

.skill-level {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item:hover .skill-level {
  opacity: 1;
}

/* Central hub */
.skills-wheel::before {
  content: 'Skills';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 600;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-wheel {
    width: 300px;
    height: 300px;
  }
  .skill-item {
    width: 60px;
    height: 60px;
  }
  .skill-item:nth-child(1) { transform: translate(-50%, -50%) rotate(-90deg) translate(120px) rotate(90deg); }
  .skill-item:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg) translate(120px) rotate(45deg); }
  .skill-item:nth-child(3) { transform: translate(-50%, -50%) rotate(0deg) translate(120px) rotate(0deg); }
  .skill-item:nth-child(4) { transform: translate(-50%, -50%) rotate(45deg) translate(120px) rotate(-45deg); }
  .skill-item:nth-child(5) { transform: translate(-50%, -50%) rotate(90deg) translate(120px) rotate(-90deg); }
  .skill-item:nth-child(6) { transform: translate(-50%, -50%) rotate(135deg) translate(120px) rotate(-135deg); }
  .skill-item:nth-child(7) { transform: translate(-50%, -50%) rotate(180deg) translate(120px) rotate(-180deg); }
  .skill-item:nth-child(8) { transform: translate(-50%, -50%) rotate(225deg) translate(120px) rotate(-225deg); }
  .skill-item:nth-child(1):hover { transform: translate(-50%, -50%) rotate(-90deg) translate(130px) rotate(90deg) scale(1.1); }
  .skill-item:nth-child(2):hover { transform: translate(-50%, -50%) rotate(-45deg) translate(130px) rotate(45deg) scale(1.1); }
  .skill-item:nth-child(3):hover { transform: translate(-50%, -50%) rotate(0deg) translate(130px) rotate(0deg) scale(1.1); }
  .skill-item:nth-child(4):hover { transform: translate(-50%, -50%) rotate(45deg) translate(130px) rotate(-45deg) scale(1.1); }
  .skill-item:nth-child(5):hover { transform: translate(-50%, -50%) rotate(90deg) translate(130px) rotate(-90deg) scale(1.1); }
  .skill-item:nth-child(6):hover { transform: translate(-50%, -50%) rotate(135deg) translate(130px) rotate(-135deg) scale(1.1); }
  .skill-item:nth-child(7):hover { transform: translate(-50%, -50%) rotate(180deg) translate(130px) rotate(-180deg) scale(1.1); }
  .skill-item:nth-child(8):hover { transform: translate(-50%, -50%) rotate(225deg) translate(130px) rotate(-225deg) scale(1.1); }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .skills-wheel {
    width: 250px;
    height: 250px;
  }
  .skill-item {
    width: 50px;
    height: 50px;
  }
  .skill-item:nth-child(1) { transform: translate(-50%, -50%) rotate(-90deg) translate(100px) rotate(90deg); }
  .skill-item:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg) translate(100px) rotate(45deg); }
  .skill-item:nth-child(3) { transform: translate(-50%, -50%) rotate(0deg) translate(100px) rotate(0deg); }
  .skill-item:nth-child(4) { transform: translate(-50%, -50%) rotate(45deg) translate(100px) rotate(-45deg); }
  .skill-item:nth-child(5) { transform: translate(-50%, -50%) rotate(90deg) translate(100px) rotate(-90deg); }
  .skill-item:nth-child(6) { transform: translate(-50%, -50%) rotate(135deg) translate(100px) rotate(-135deg); }
  .skill-item:nth-child(7) { transform: translate(-50%, -50%) rotate(180deg) translate(100px) rotate(-180deg); }
  .skill-item:nth-child(8) { transform: translate(-50%, -50%) rotate(225deg) translate(100px) rotate(-225deg); }
  .skill-item:nth-child(1):hover { transform: translate(-50%, -50%) rotate(-90deg) translate(110px) rotate(90deg) scale(1.1); }
  .skill-item:nth-child(2):hover { transform: translate(-50%, -50%) rotate(-45deg) translate(110px) rotate(45deg) scale(1.1); }
  .skill-item:nth-child(3):hover { transform: translate(-50%, -50%) rotate(0deg) translate(110px) rotate(0deg) scale(1.1); }
  .skill-item:nth-child(4):hover { transform: translate(-50%, -50%) rotate(45deg) translate(110px) rotate(-45deg) scale(1.1); }
  .skill-item:nth-child(5):hover { transform: translate(-50%, -50%) rotate(90deg) translate(110px) rotate(-90deg) scale(1.1); }
  .skill-item:nth-child(6):hover { transform: translate(-50%, -50%) rotate(135deg) translate(110px) rotate(-135deg) scale(1.1); }
  .skill-item:nth-child(7):hover { transform: translate(-50%, -50%) rotate(180deg) translate(110px) rotate(-180deg) scale(1.1); }
  .skill-item:nth-child(8):hover { transform: translate(-50%, -50%) rotate(225deg) translate(110px) rotate(-225deg) scale(1.1); }
  .skill-icon {
    font-size: 1.2rem;
  }
  .skill-item h3 {
    font-size: 0.7rem;
  }
}
/* ================= EXPERIENCE / TABS ================= */
.tab-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: var(--bg-card);
    color: var(--accent-soft);
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--accent);
    color: #1b1a17;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.exp-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent-soft);
}

.exp-card h3 {
    margin-bottom: 5px;
    color: var(--accent);
}

.card-subtitle {
    font-size: 0.8rem;
    color: #e6e2d3;
    margin-bottom: 10px;
}

.exp-card p {
    font-size: 0.9rem;
    color: #e6e2d3;
}

/* ================= CONTACT ================= */
#contact {
    background-color: #1b1b1b;
    color: #e6e2d3;
    text-align: center;
    padding: 60px 5%;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--accent);
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #555;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #e6e2d3;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: var(--accent);
    color: #1b1a17;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--accent-soft);
}

.contact-info {
    flex: 1;
    min-width: 250px;
    text-align: left;
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.contact-info h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    margin-bottom: 10px;
}

.contact-info ul li a {
    color: #e6e2d3;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info ul li a:hover {
    color: var(--accent);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 5%;
    }
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%; /* Changed from right: -100% to left: -100% to slide from left */
        width: 250px;
        height: calc(100vh - 60px);
        background: #1b1a17;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease; /* Changed from right to left */
        border-right: 1px solid rgba(212, 163, 115, 0.2); /* Changed from border-left to border-right */
        overflow-y: auto;
    }
    .nav-links.open {
        left: 0; /* Changed from right: 0 to left: 0 */
    }
    .menu-toggle {
        display: block;
    }
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
        min-height: auto;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }
    .tagline {
        font-size: 0.9rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 180px;
    }
    .hero-image img {
        max-width: 250px;
    }
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        text-align: center;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 5%;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .hero-content h2 {
        font-size: 0.9rem;
    }
    .tagline {
        font-size: 0.8rem;
    }
    .hero-image img {
        max-width: 200px;
    }
    .about-image img {
        max-width: 200px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .circle {
        width: 60px;
        height: 60px;
    }
    .circle svg {
        width: 60px;
        height: 60px;
    }
    .circle circle {
        cx: 30;
        cy: 30;
        r: 26;
        stroke-dasharray: 163;
    }
    .circle .progress {
        stroke-dasharray: 163;
    }
    .project-card {
        padding: 15px;
    }
    .exp-card {
        padding: 12px;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }
    .btn-submit {
        padding: 10px;
    }
}
