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

body {
    font-family: 'Kalam', cursive;
    color: #e0e0e0;
    background: #121212;
    scroll-behavior: smooth;
    line-height: 1.6;
    font-size: 1rem;
}

/* Navigation */
.top-nav {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.logo h3 {
    color: #00ddeb;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Pacifico', cursive;
    letter-spacing: 2px;
}

.top-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.top-nav ul li a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    font-family: 'Caveat', cursive;
    padding: 0.25rem 0.5rem;
}

.top-nav ul li a:hover,
.top-nav ul li a.active {
    color: #00ddeb;
    transform: translateY(-2px);
}

.top-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #00ddeb;
    bottom: -4px;
    left: 0;
    transition: width 0.3s;
}

.top-nav ul li a:hover::after,
.top-nav ul li a.active::after {
    width: 100%;
}

/* Main Content */
.main-content {
    padding: 0 3rem;
}

.section {
    padding: 5rem 0;
    margin: 2rem 0;
    background: #1e1e1e;
    border-radius: 1.25rem;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.18);
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 221, 235, 0.12), rgba(0, 0, 0, 0.85));
    box-shadow: 0 0 3.125rem rgba(0, 221, 235, 0.25);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 1.875rem rgba(0, 221, 235, 0.18);
    }

    100% {
        box-shadow: 0 0 3.125rem rgba(0, 221, 235, 0.35);
    }
}

.hero-content {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Avatar */
.avatar-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #00ddeb;
    background: linear-gradient(45deg, #00ddeb, #007bff, #00ddeb);
    background-size: 200%;
    animation: float 3s ease-in-out infinite, sparkle-border 4s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes sparkle-border {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 200%;
    }
}

/* Typing Effect */
.typing-container {
    min-height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

#typing-text {
    text-align: center;
    color: #b0b0b0;
    font-family: 'Kalam', cursive;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.cursor {
    animation: blink 0.7s infinite;
    color: #00ddeb;
    font-size: 1.25rem;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Headings */
h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Pacifico', cursive;
    font-weight: 700;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-family: 'Delius', cursive;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: '';
    width: 3.5rem;
    height: 0.25rem;
    background-color: #00ddeb;
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    border-radius: 2px;
}

p {
    font-size: 1.05rem;
    color: #b0b0b0;
    font-family: 'Kalam', cursive;
    margin-bottom: 1rem;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #00ddeb, #007bff);
    color: #ffffff;
    border: none;
    text-decoration: none;
    border-radius: 3rem;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Delius', cursive;
    font-size: 1.15rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 221, 235, 0.25);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 221, 235, 0.35);
    background: linear-gradient(90deg, #00ddeb, #0056d2);
}

/* Skills Section */
.skills {
    margin-top: 2.5rem;
}

.skills h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.625rem;
    color: #e0e0e0;
    font-family: 'Delius', cursive;
}

.skill-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.skill-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #e0e0e0;
    font-family: 'Delius', cursive;
    border: 2px solid;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.skill-box:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0.25rem 1rem rgba(0, 221, 235, 0.18);
}

.skill-box.html {
    border-color: #e34c26;
}

.skill-box.css {
    border-color: #264de4;
}

.skill-box.js {
    border-color: #f0db4f;
}

.skill-box.react {
    border-color: #61dafb;
}

.skill-box.node {
    border-color: #68a063;
}

.skill-box.express {
    border-color: #000;
}

.skill-box.php {
    border-color: #777bb4;
}

.skill-box.mongodb {
    border-color: #47a248;
}

.skill-box.sql {
    border-color: #00758f;
}

.skill-box.postgres {
    border-color: #336791;
}

.skill-box.redis {
    border-color: #d82c20;
}

.skill-box.java {
    border-color: #b07219;
}

.skill-box.python {
    border-color: #3776ab;
}

.skill-box.git {
    border-color: #f05032;
}

.skill-box.github {
    border-color: #181717;
}

.skill-box.tailwind {
    border-color: #38bdf8;
}

.skill-box.bootstrap {
    border-color: #7952b3;
}

.skill-box.shadcn {
    border-color: #000;
}

.skill-box.nextjs {
    border-color: #000;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.service-item {
    background: rgba(40, 40, 40, 0.92);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #333;
    box-shadow: 0 0.25rem 1rem rgba(0, 221, 235, 0.10);
}

.service-item:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 221, 235, 0.18);
}

.service-item i {
    font-size: 2.5rem;
    color: #00ddeb;
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fff;
    font-family: 'Delius', cursive;
}

/* Education Section */
.education-block {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.education-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 200px;
}

.edu-button {
    background: #333;
    border: 1px solid #00ddeb;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s, transform 0.3s;
    font-family: 'Delius', cursive;
    box-shadow: 0 0.25rem 1rem rgba(0, 221, 235, 0.10);
}

.edu-button.active,
.edu-button:hover {
    background: linear-gradient(90deg, #00ddeb, #007bff);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 221, 235, 0.18);
}

.education-content {
    flex: 1;
}

.edu-item {
    display: none;
    background: rgba(40, 40, 40, 0.92);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 221, 235, 0.10);
}

.edu-item.active {
    display: block;
}

.edu-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-family: 'Delius', cursive;
}

.edu-period {
    font-size: 1rem;
    color: #00ddeb;
    margin-bottom: 1rem;
    font-family: 'Kalam', cursive;
}

/* Projects Section */
.filter-buttons {
    margin: 2rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter {
    background: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 2rem;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s, transform 0.3s;
    font-family: 'Delius', cursive;
    box-shadow: 0 0.25rem 1rem rgba(0, 221, 235, 0.10);
}

.filter.active,
.filter:hover {
    background: linear-gradient(90deg, #00ddeb, #007bff);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 221, 235, 0.18);
}

/* Improved Projects Section */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-around;
    margin-top: 2rem;
}

.project-item {
    border-radius: 1rem;
    border: 1px solid #00ddeb;
    overflow: hidden;
    position: relative;
    width: 320px;
    min-height: 240px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
}

.project-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 1.5rem 2.5rem rgba(0, 221, 235, 0.22);
}

.project-overlay {
    background: rgba(30, 30, 30, 0.97);
    color: #fff;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -0.5rem 1.5rem rgba(0, 221, 235, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 1;
    gap: 5px;
    position: static;
    height: 100%;
}

.project-overlay h3 {
    font-size: 1.15rem;
    color: #00ddeb;
    margin-bottom: 0.5rem;
    font-family: 'Delius', cursive;
    font-weight: 700;
}

.project-overlay p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
    font-family: 'Kalam', cursive;
}

.github-link {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(90deg, #00ddeb, #007bff);
    color: #fff;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-family: 'Delius', cursive;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 221, 235, 0.12);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.github-link:hover {
    background: linear-gradient(90deg, #00ddeb, #0056d2);
    color: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 221, 235, 0.22);
}

.contact-section {
    background: #1e1e1e;
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
    gap: 4rem;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 3rem;
    height: 3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: #00ddeb;
    color: #000;
    transform: scale(1.1);
}

.contact-left {
    max-width: 70%;
}

.contact-left h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Pacifico', cursive;
}

.contact-left h2 .highlight {
    color: #00ddeb;
}

.contact-left p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-family: 'Kalam', cursive;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.9375rem;
    background: #333;
    border: none;
    border-radius: 0.5rem;
    color: #e0e0e0;
    font-size: 1rem;
    font-family: 'Kalam', cursive;
    transition: box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0.5rem rgba(0, 221, 235, 0.5);
}

.contact-form textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.send-button {
    padding: 0.75rem 2rem;
    background: #00ddeb;
    color: #000;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Delius', cursive;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.send-button:hover {
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 221, 235, 0.5);
}

.contact-details {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-detail-item i {
    font-size: 1.5rem;
    color: #00ddeb;
}

.contact-detail-item p {
    font-size: 1rem;
    color: #e0e0e0;
    font-family: 'Kalam', cursive;
}

.contact-detail-item p a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail-item p a:hover {
    color: #00ddeb;
}

footer {
    text-align: center;
    padding: 0.9375rem;
    background: #1a1a1a;
    color: #b0b0b0;
    font-size: 0.875rem;
    font-family: 'Kalam', cursive;
}

.scroll-top {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    background: #00ddeb;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 3.125rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 221, 235, 0.4);
}

/* Responsive Adjustments */
@media (min-width: 76rem) {
    .main-content {
        padding: 0 5rem;
    }

    .container {
        padding: 0 2.5rem;
    }

    .section {
        padding: 6.5rem 2rem;
    }

    .avatar-container {
        width: 200px;
        height: 200px;
    }

    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    }

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

    .education-block {
        flex-direction: row;
        justify-content: space-between;
    }

    .education-buttons {
        max-width: 250px;
    }

    .edu-button {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }

    .edu-item h3 {
        font-size: 2rem;
    }

    .edu-period {
        font-size: 1.125rem;
    }

    .contact-left {
        max-width: 80%;
    }

    .contact-details {
        gap: 3rem;
    }

    .contact-detail-item i {
        font-size: 1.75rem;
    }

    .contact-detail-item p {
        font-size: 1.125rem;
    }
}

@media (min-width: 30rem) and (max-width: 76rem) {
    .top-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .top-nav ul {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-nav ul li a {
        font-size: 1rem;
    }

    .logo h3 {
        font-size: 1.125rem;
    }

    .main-content {
        padding: 0 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 4rem 2rem;
        margin: 1.5rem 0;
    }

    .hero-section {
        height: 80vh;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
    }

    h1 {
        font-size: 2.75rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    p {
        font-size: 0.9375rem;
    }

    .cta-button {
        padding: 0.75rem 2rem;
        font-size: 0.9375rem;
    }

    .skill-capsules {
        flex-direction: row;
        gap: 0.75rem;
    }

    .skill-box {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
        gap: 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-item i {
        font-size: 2rem;
    }

    .service-item h3 {
        font-size: 1.25rem;
    }

    .education-block {
        flex-direction: column;
        align-items: center;
    }

    .education-buttons {
        max-width: 80%;
        gap: 0.75rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .edu-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .edu-item {
        padding: 1.5rem;
    }

    .edu-item h3 {
        font-size: 1.5rem;
    }

    .edu-period {
        font-size: 0.875rem;
    }

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

    .project-item {
        min-height: 200px;
        height: auto;
        width: 350px;
    }

    .project-overlay {
        padding: 1rem;
    }

    .project-overlay h3 {
        font-size: 1.25rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .contact-left {
        max-width: 100%;
    }

    .contact-left h2 {
        font-size: 2.5rem;
    }

    .contact-left p {
        font-size: 0.9375rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .contact-form textarea {
        min-height: 6rem;
    }

    .send-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .contact-right {
        align-items: center;
        width: 100%;
    }

    .contact-details {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .contact-detail-item {
        gap: 0.75rem;
    }

    .contact-detail-item i {
        font-size: 1.25rem;
    }

    .contact-detail-item p {
        font-size: 0.875rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (max-width: 30rem) {
    h1 {
        font-size: 2.2rem;
    }

    .top-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .top-nav ul {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-nav ul li a {
        font-size: 0.875rem;
    }

    .logo h3 {
        font-size: 1rem;
    }

    .main-content {
        padding: 0 0.75rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .section {
        padding: 2.5rem 1rem;
        margin: 1rem 0;
        border-radius: 0.75rem;
    }

    .hero-section {
        height: 70vh;
        border-bottom-right-radius: 0.75rem;
        border-bottom-left-radius: 0.75rem;
    }

    .avatar-container {
        width: 100px;
        height: 100px;
    }

    h2 {
        font-size: 1.75rem;
    }

    h2::after {
        width: 2.5rem;
        height: 0.1875rem;
    }

    p {
        font-size: 0.875rem;
    }

    .cta-button {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .skill-capsules {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .skill-box {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
        max-width: 45%;
        flex: 0 1 auto;
    }

    .skill-box i {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-item {
        padding: 1.25rem;
    }

    .service-item i {
        font-size: 1.75rem;
    }

    .service-item h3 {
        font-size: 1.125rem;
    }

    .education-block {
        flex-direction: column;
        align-items: center;
    }

    .education-buttons {
        max-width: 100%;
        gap: 0.5rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .edu-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .edu-item {
        padding: 1rem;
    }

    .edu-item h3 {
        font-size: 1.25rem;
    }

    .edu-period {
        font-size: 0.75rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        margin-top: 2rem;
        align-items: stretch;
        /* ✅ ensures consistent card height */
    }

    .project-item {
        border-radius: 1rem;
        border: 1px solid #00ddeb;
        overflow: hidden;
        width: 100%;
        height: auto;
        /* ✅ dynamic height */
        min-height: 220px;
        /* ✅ baseline for neat look */
        display: flex;
        flex-direction: column;
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .project-item:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 1.5rem 2.5rem rgba(0, 221, 235, 0.22);
    }

    .project-overlay {
        background: rgba(30, 30, 30, 0.97);
        color: #fff;
        padding: 1.25rem;
        border-radius: 0.75rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* ✅ spaces title, text, and button nicely */
        gap: 0.75rem;
        height: auto;
        /* ✅ overlay adapts to content */
        word-break: break-word;
    }

    .project-overlay h3 {
        font-size: 1.15rem;
        color: #00ddeb;
        font-family: 'Delius', cursive;
        font-weight: 700;
    }

    .project-overlay p {
        font-size: 1rem;
        color: #b0b0b0;
        font-family: 'Kalam', cursive;
    }

    .github-link {
        display: inline-block;
        padding: 0.5rem 1.25rem;
        background: linear-gradient(90deg, #00ddeb, #007bff);
        color: #fff;
        border-radius: 2rem;
        font-size: 0.95rem;
        font-family: 'Delius', cursive;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 0.25rem 0.75rem rgba(0, 221, 235, 0.12);
        transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    }

    .github-link:hover {
        background: linear-gradient(90deg, #00ddeb, #0056d2);
        color: #fff;
        box-shadow: 0 0.5rem 1.5rem rgba(0, 221, 235, 0.22);
    }

    .contact-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }

    .contact-left h2 {
        font-size: 2rem;
    }

    .contact-left p {
        font-size: 0.875rem;
    }

    .contact-form {
        gap: 0.75rem;
        max-width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .contact-form textarea {
        min-height: 4rem;
    }

    .send-button {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .contact-left {
        max-width: 100%;
    }

    .contact-right {
        align-items: center;
        width: 100%;
    }

    .contact-details {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .contact-detail-item {
        gap: 0.5rem;
    }

    .contact-detail-item i {
        font-size: 1rem;
    }

    .contact-detail-item p {
        font-size: 0.75rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1rem;
        width: 2rem;
        height: 2rem;
    }

    .scroll-top {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
        bottom: 1.25rem;
        right: 1.25rem;
    }

    footer {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}