/* ===================== GLOBAL STYLES ===================== */

/* Reset some default styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===================== HEADER ===================== */
header {
    background: linear-gradient(135deg, #6b5b95, #feb236);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

header .name {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

header .highlight {
    color: #ffef82;
}

header .tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    display: block;
    height: 2px;
    width: 0%;
    background: #ffef82;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===================== SECTION STYLES ===================== */
.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: #f4f4f4;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: #555;
}

/* ===================== ABOUT GRID ===================== */
.about-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.about-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    flex: 1 1 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* ===================== SKILLS ===================== */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.skill-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    width: 250px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.skill-bar {
    background-color: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(90deg, #6b5b95, #feb236);
    height: 100%;
    width: 0%;
    border-radius: 5px;
    animation: fillBar 2s forwards;
}

/* Animation for skill bar fill */
@keyframes fillBar {
    to {
        width: var(--width, 100%);
    }
}

/* ===================== PROJECTS GRID ===================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: #6b5b95;
    font-weight: bold;
    text-decoration: none;
    position: relative;
}

.project-link::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #feb236;
    transition: width 0.3s ease;
}

.project-link:hover::after {
    width: 100%;
}

/* ===================== CONTACT FORM ===================== */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6b5b95;
    outline: none;
    box-shadow: 0 0 10px rgba(107,91,149,0.3);
}

.btn {
    padding: 1rem 2rem;
    border: none;
    background: linear-gradient(135deg, #6b5b95, #feb236);
    color: #fff;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ===================== FOOTER ===================== */
.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #222;
    color: #fff;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    .about-grid,
    .skills-grid {
        flex-direction: column;
        align-items: center;
    }
}
