body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(ellipse at center, #0f0f23 0%, #0a0a1a 100%);
    color: #cbd5f0;
}

.container {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 2rem 1.5rem;
    /* background: rgba(94, 219, 192, 0.75); */
    /* background: rgba(20, 20, 40, .75); */
    border-radius: 12px;
    box-shadow: 0 0 25px #00000055;
}

.navbar {
    padding: 1em;
    background: #0a0a1a;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: #8fbaff;
    font-weight: bold;
    transition: color .3s;
}

.navbar a:hover {
    color: #cddfff;
}

.hero {
    text-align: center;
    margin-top: 3rem;
}

.hero h1 {
    font-size: 3rem;
    color: #8fbaff;
    text-shadow: 0 0 10px #3f90ff;
}

.hero h2 {
    font-weight: normal;
    font-size: 1.3rem;
    color: #e0e6f7;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: rgba(20, 20, 40, .6);
    padding: 1rem;
    border-radius: 10px;
    width: 180px;
    text-align: center;
    box-shadow: 0 0 15px #2a4cff99;
    transition: transform .3s;
}

.card:hover {
    transform: translateY(-5px);
}

.skill-icons,
.learning-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.icon {
    /* padding: .8rem 1.2rem; */
    border: 1px solid #3f90ff;
    border-radius: 8px;
    color: #a3c9ff;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 0 10px #3f90ff88;
    transition: background .3s;
}

.icon:hover {
    background: #1e2b4c;
}


.contact {
    text-align: center;
    margin-top: 3rem;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

.contact input,
.contact textarea {
    padding: .75rem;
    border: none;
    border-radius: 5px;
    background: #1a1a2e;
    color: #fff;
}

.contact button {
    background: #3f90ff;
    border: none;
    padding: .75rem;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background .3s;
}

.contact button:hover {
    background: #1a6be1;
}


/*Outer wrapper */
.skills-card {
    position: relative;
    perspective: 1000px;
    background: transparent;
    margin: 3rem auto 5rem;
    /* extra bottom room fixes overlap */
    max-width: 600px;
}

/* Inner element that flips */
.skills-inner {
    display: grid;
    /* keeps faces in normal flow */
    transition: transform .8s;
    transform-style: preserve-3d;
    border-radius: 12px;
}

.skills-card:hover .skills-inner {
    transform: rotateY(180deg);
}

/* Faces (now grid-stacked, not absolute) */
.skills-face {
    grid-area: 1/1;
    /* stack both faces */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    border: 1px solid #3f90ff55;
    border-radius: 12px;
    background: rgba(20, 20, 40, .75);
    box-shadow: 0 0 20px #2a4cff66;
    backface-visibility: hidden;
}

.skills-face .skill-icons {
    gap: 1rem;
}

.skills-back {
    transform: rotateY(180deg);
    background: rgba(30, 43, 76, .9);
    /* subtle tint */
}


.projects-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}

.project-card {
    background: rgba(30, 40, 70, 0.8);
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px #2a4cff66;
    border: 1px solid #3f90ff33;
}

.project-card:hover {
    transform: translateY(-8px);
    background: rgba(50, 70, 110, 0.9);
}

.tech-tags {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #91c2ff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e2b4c;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    color: #cbd5f0;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}