* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

::selection {
    background: #f72585;
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #180b2d;
}

::-webkit-scrollbar-thumb {
    background: #7209b7;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #f72585;
}

body {
    background-color: #180b2d;
    background-image: radial-gradient(circle at 15% 50%, rgba(138, 43, 226, 0.2), transparent 35%),
                      radial-gradient(circle at 85% 30%, rgba(247, 37, 133, 0.15), transparent 35%);
    color: #f0e6f6;
    line-height: 1.7;
    overflow-x: hidden;
}

header {
    background: rgba(24, 11, 45, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(247, 37, 133, 0.2);
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: #f72585;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #f72585;
}

nav a:hover {
    color: #f72585;
    text-shadow: 0 0 15px rgba(247, 37, 133, 0.5);
}

nav a:hover::after {
    width: 100%;
}

section {
    padding: 120px 20px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    line-height: 1.1;
    background: linear-gradient(135deg, #f72585, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 20px rgba(247, 37, 133, 0.4));
    animation: fadeInUp 1s ease-out forwards;
}

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

.project-card {
    background: linear-gradient(145deg, rgba(34, 16, 61, 0.9), rgba(24, 11, 45, 0.9));
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(114, 9, 183, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(247, 37, 133, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-15px);
    border-color: #f72585;
    box-shadow: 0 20px 40px rgba(247, 37, 133, 0.2),
                0 0 20px rgba(114, 9, 183, 0.4);
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card h3 {
    margin-bottom: 1.2rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.links {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #f72585;
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.2) !important;
}

.btn-primary:hover {
    background: #f72585 !important;
    color: #ffffff !important;
    box-shadow: 0 0 30px rgba(247, 37, 133, 0.6) !important;
    transform: translateY(-5px);
}

.btn-secondary {
    background: #7209b7;
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgba(114, 9, 183, 0.3);
}

.btn-secondary:hover {
    background: transparent;
    border-color: #7209b7;
    box-shadow: 0 0 30px rgba(114, 9, 183, 0.6);
    transform: translateY(-5px);
}

footer {
    background: #120722;
    color: #dcd6e7;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(247, 37, 133, 0.2);
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: #7209b7;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-links a:hover {
    color: #f72585;
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 20px rgba(247, 37, 133, 0.8);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}