* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    transition: 0.4s ease;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    background: #111;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 10px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    position: relative;
}

/* Hover underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #4d4164;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(140deg, #583f6d, #2503352f);
    color: white;
}
/* HERO layout fix */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    min-height: 100vh;
}

/* Buttons container */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* Button style */
.btn {
    padding: 10px 20px;
    background: #202b9159;
    color: #150125da;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.btn:hover {
    background: #0787f0;
}

/* GitHub button different color */
.github-btn {
    background: #333;
}

.github-btn:hover {
    background: #000;
}

/* ABOUT SECTION */
#about {
    display: flex;
    flex-direction: column;   /* important */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}
#about {
    background: var(--bg-secondary);
}

#about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* Heading on top */
#about h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

/* Card below heading */
.about-container {
    max-width: 800px;
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
body.dark .about-container {
    background: #1e1e1e;
    color: #ffffff;
}

body.dark .about-container p {
    color: #cccccc;
}

/* Text */
.about-container p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}
/* ProjectS SECTION CENTER */
#projects {
    text-align: center;
}
/* Project category heading center */
.project-category {
    text-align: center;
    margin-top: 40px;
}

.project-category h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    max-width: 1100px;
    margin: 20px auto 0;
    gap: 25px;
}

.project-card {
    width: 320px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #26023f;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #26023f;
}

.project-header p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
}

.project-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #26023f;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #26023f;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(38, 2, 63, 0.3);
}

.project-card a {
    text-decoration: none;
}



/* BUTTON */
button, .btn {
    padding: 10px 20px;
    border: none;
    background: #26023f;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, .btn:hover {
    background: #0c55bd;
    transform: scale(1.05);
}

/* Ripple */
.ripple {
    position: relative;
    overflow: hidden;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* GITHUB SECTION CENTER */
#github {
    text-align: center;
}

.github-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.github-links a {
    text-decoration: none;
    background: white;
    padding: 10px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: black;
    transition: 0.3s;
}

.github-links a:hover {
    transform: translateY(-3px);
}

/* FAQ */
/* FAQ SECTION CENTER */
#faq {
    text-align: center;
}

#faqContainer {
    max-width: 700px;
    margin: 0 auto;   /* center container */
    text-align: left; /* questions left aligned inside */
}

.faq-question {
    background: #1c0630;
    color: white;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
}

.faq-answer {
    display: none;
    padding: 10px;
    background: #f1f1f1cc;
}


/* CONTACT SECTION */
#contact {
    text-align: center;
    padding: 60px 20px;
}

#contact form {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input,
#contact textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#contact textarea {
    height: 120px;
    resize: none;
}

#contact button {
    background: #1c0630;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

#contact button:hover {
    background: #0055cc;
}


/* Dark mode */
.dark {
    background: #121212;
    color: white;
}

.dark .card {
    background: #1e1e1e;
}

@media(max-width:768px){
    .card-container {
        flex-direction: column;
        align-items: center;
    }
}