/* ------------------- General Reset ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* ------------------- Header & Navigation ------------------- */
header {
    background-color: #1f1f1f;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    transition: color 0.4s, transform 0.3s;
}

nav a:hover {
    color: #ff4c4c;
    transform: scale(1.1);
}

/* ------------------- Main Content ------------------- */
main {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Headings */
h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Paragraphs */
p {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: center;
}

/* ------------------- Projects List ------------------- */
ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 30px;
}

ul li {
    background-color: #fff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* ------------------- Buttons ------------------- */
.btn, button {
    display: inline-block;
    background-color: #ff4c4c;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:hover,
button:hover {
    background-color: #e04343;
    transform: scale(1.05);
}

/* ------------------- Resume PDF ------------------- */
iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

iframe:hover {
    transform: scale(1.01);
}

/* ------------------- Contact Form ------------------- */
#contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-form label {
    margin-top: 15px;
    font-weight: 500;
}

#contact-form input,
#contact-form textarea,
#contact-form button {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

#status {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}

/* ------------------- Footer ------------------- */
footer {
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* ------------------- Fade-in animation ------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------- Responsive ------------------- */
@media (max-width: 600px) {
    nav a {
        display: block;
        margin: 8px 0;
    }

    #contact-form input,
    #contact-form textarea,
    #contact-form button {
        max-width: 100%;
    }
}

/* ------------------- LeetCode Dropdowns ------------------- */
#leetcode-project {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  margin-top: 40px;
}

.dropdown {
  margin: 10px 0;
  text-align: left;
}

.dropbtn {
  background-color: #1f1f1f;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
  text-align: left;
}

.dropbtn:hover {
  background-color: #ff4c4c;
  transform: scale(1.02);
}

.dropdown-content {
  list-style: none;
  max-height: 0;
  overflow-y: hidden;         /* changed from hidden to hidden-y only */
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0;
  margin: 8px 0 15px 0;
  border-left: 3px solid #ff4c4c;
  background: #f7f7f7;
  border-radius: 5px;
}

/* When dropdown opens */
.dropdown-content.show {
  max-height: 300px;          /* limit height so scrolling can happen */
  overflow-y: auto;           /* enable scrolling */
  padding: 10px 15px;
}

/* Scrollbar styling (optional but clean) */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}


.dropdown-content.show {
  max-height: 500px;
  padding: 10px 15px;
}

.dropdown-content li {
  margin: 6px 0;
}

.dropdown-content a {
  text-decoration: none;
  color: #0078D7;
  transition: color 0.3s;
}

.dropdown-content a:hover {
  color: #ff4c4c;
  text-decoration: underline;
}

/* ------------------- Project Section Styling ------------------- */
main section {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

main section:last-of-type {
  border-bottom: none;
}

.dropdown {
  margin-top: 15px;
}

.dropdown .dropbtn {
  width: 100%;
  text-align: left;
  background-color: #1f1f1f;
  color: #fff;
  padding: 12px 15px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dropdown .dropbtn:hover {
  background-color: #ff4c4c;
}

.dropdown-content {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.dropdown-content li {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin: 12px 0;
  padding: 15px;
}

.dropdown-content li p {
  margin: 8px 0;
  color: #555;
  font-size: 0.95rem;
}

.dropdown-content li .btn {
  display: inline-block;
  margin-top: 8px;
}

/*Brand page styling*/
.apparel-item {
    margin-bottom: 40px;
}

.apparel-img {
    width: 300px;
    margin: 10px;
    border-radius: 8px;
}
.slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    margin: 20px 0;
}

.slider-img {
    width: 300px;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.arrow {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    color: #333;
}

.arrow:hover {
    color: #000;
}

.prototype img {
  width: 350px;       /* Adjust size here */
  max-width: 90%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.image-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 20px;
}

.arrow {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

.arrow:hover {
  color: #000;
}


