* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

:root {
    --primary-color: #c33859;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111113;
    color: #fff;
    margin-inline: 10%;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

header {
    padding: 2rem 0 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #ee446b, #df1e4b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}
.logo:hover {
    cursor: pointer;
    transform: scale(1.1);
}
nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}
nav a:hover {
    cursor: pointer;
    color: #c33859;
    transform: scale(1.2);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 2rem 1rem;
    min-height: 250px;
    opacity: 0;
    animation: fadeSlideIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}
.container-hero-text {
    max-width: 700px;
    margin: 0 auto;
}
.little-hero-text h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    margin-bottom: 1.2rem;
    font-weight: 600;
}
.h1-class h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}
.hero-text p {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: #ccc;
    text-align: center;
}

.projects {
    border-radius: 20px;
    margin: 2rem 0 3rem 0;
    opacity: 0;
    animation: fadeSlideIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
}
.projects-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 0 0.5rem;
}
.project-card {
    background: #191a1d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.10);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    animation: cardFadeIn 0.7s forwards;
}
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(195, 56, 89, 0.15);
}
.project-image {
    background-size: cover;
    background-position: center;
    height: 120px;
    width: 100%;
    transition: filter 0.3s;
    margin-bottom: 1.2rem;
    background-color: #23232a;
}
.project-content {
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.project-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.project-content p {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.5;
}
.cta-button {
    width: fit-content;
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 1.05rem;
    transition: background 0.3s, transform 0.3s;
}
.cta-button:hover {
    background: #fff;
    color: var(--primary-color);
    transform: scale(1.05);
    cursor: pointer;
}
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: auto;
    opacity: 0;
    animation: fadeSlideIn 1s cubic-bezier(0.23, 1, 0.32, 1) 0.8s forwards;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes cardFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    body {
        margin-inline: 2%;
    }
    .projects-grid {
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    .logo {
        display: none;
    }
    header {
        padding: 1rem 0 0.5rem 0;
    }
    .hero {
        padding: 1.5rem 0.5rem 1rem 0.5rem;
    }
    .projects-title {
        font-size: 1.2rem;
    }
    .projects-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    .project-card {
        min-height: 180px;
        padding: 0.5rem;
    }
    .project-image {
        height: 80px;
    }
    .container-hero-text {
        max-width: 100%;
    }
    nav {
        margin-inline: auto;
    }
}
