* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 10%;
    background: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid #00ffcc;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.05);
}

header h1 {
    font-size: 24px;
    letter-spacing: 2px;
    color: #00ffcc;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.4s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: #00ffcc;
    transition: width 0.4s ease;
}

nav a:hover {
    color: #00ffcc;
    transform: translateY(-3px);
}

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

/* ===================== HERO SECTION ===================== */
.hero {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(180deg, rgba(0, 255, 204, 0.03) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 900;
    letter-spacing: -0.5px;
    animation: slideDown 1s ease-out;
    z-index: 1;
    line-height: 1.1;
}

.hero span {
    color: #00ffcc;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
    display: inline-block;
    animation: glow 3s ease-in-out infinite;
}

.hero p {
    color: #bbb;
    max-width: 500px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    animation: slideUp 1s ease-out 0.2s both;
    z-index: 1;
}

.btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #00ffcc 0%, #00ccaa 100%);
    color: #000;
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.2);
    animation: slideUp 1s ease-out 0.4s both;
    z-index: 1;
}

.btn:hover {
    background: linear-gradient(135deg, #00ddbb 0%, #00bbaa 100%);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 255, 204, 0.5);
}

.btn:active {
    transform: translateY(-3px);
}

/* ===================== PROJECTS SECTION ===================== */
.section {
    padding: 50px 10%;
    position: relative;
}

.section h3 {
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, transparent);
}

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

.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #242442 100%);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.4s ease;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00ffcc;
    box-shadow: 0 10px 25px rgba(0, 255, 204, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    color: #00ffcc;
}

.card p {
    color: #aaa;
    font-size: 13px;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.about-content {
    max-width: 900px;
    margin-top: 15px;
}

.about-content p {
    font-size: 14px !important;
}

/* ===================== FOOTER ===================== */
footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border-top: 1px solid #00ffcc;
    color: #777;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ===================== ANIMATIONS ===================== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 204, 0.8);
    }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 11px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 12px;
    }

    .btn {
        padding: 8px 18px;
        font-size: 11px;
    }

    .section {
        padding: 40px 8%;
    }

    .section h3 {
        font-size: 22px;
    }

    .projects {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .card {
        padding: 15px;
        min-height: auto;
    }

    .card h4 {
        font-size: 14px;
    }

    .card p {
        font-size: 12px;
    }
}
