/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    line-height: 1.6;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ===== BRAND BAR ===== */
.brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
    animation: fadeDown 1s ease;
}

.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #38bdf8;
}

.brand-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #38bdf8;
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 40px 10px 60px;
    animation: fadeUp 1.2s ease;
}

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

header p {
    opacity: 0.85;
}

/* ===== SECTIONS ===== */
section {
    line-height: 25px;
    margin: 50px 0;
    padding: 30px;
    background: #020617;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

h2 {
    color: #38bdf8;
    margin-bottom: 15px;
}

/* ===== IMAGE GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.projects-grid img {
    width: 100%;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.projects-grid img:hover {
    transform: scale(1.08);
}

/* ===== SKILLS ===== */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill {
    padding: 12px 25px;
    background: #1e40af;
    border-radius: 30px;
    transition: transform .3s ease, background .3s ease;
}

.skill:hover {
    transform: scale(1.15);
    background: #2563eb;
}

/* ===== CONTACT ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

input,
textarea {
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
}

button {
    padding: 14px;
    background: #38bdf8;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background .3s ease;
}

button:hover {
    background: #0ea5e9;
}

#successMessage,
#errorMessage {
    display: none;
    margin-top: 10px;
}

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

.achievement {
    background: #020617;
    border-left: 5px solid #38bdf8;
    padding: 20px;
    border-radius: 12px;
    transition: transform .4s ease, box-shadow .4s ease, background .4s ease;
    animation: fadeUp 1s ease;
}

.achievement:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .5);
}

.achievement h3 {
    margin-bottom: 8px;
    color: #38bdf8;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
}

.modal.active {
    display: flex;
}

/* ===== FOOTER ===== */
footer {
    margin-top: 60px;
    padding: 30px 20px;
    background: #020617;
    border-top: 1px solid #1e293b;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    transition: transform .3s ease, color .3s ease;
}

.footer-links a:hover {
    color: #0ea5e9;
    transform: translateY(-3px);
}

footer p {
    font-size: .9rem;
    opacity: .7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

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

/* ===== RESPONSIVE ===== */
@media(max-width:768px) {
    header h1 {
        font-size: 2.2rem;
    }

    .brand-bar {
        flex-direction: column;
        gap: 15px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .achievement-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media(max-width:480px) {
    header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 20px;
    }

    .skill {
        padding: 8px 15px;
        font-size: .9rem;
    }
}