/* ==========================================
   1. RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #060608;
    color: #f4f4f5;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Section Badges */
.section-badge, .hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* ==========================================
   2. NAVBAR & NAVIGATION
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 8%;
    background-color: rgba(6, 6, 8, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.logo span {
    color: #f59e0b;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fbbf24;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000000;
    padding: 0.75rem 1.6rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    padding: 0.75rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, background-color 0.3s;
}

.btn-secondary:hover {
    border-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.08);
    transform: translateY(-4px) scale(1.02);
}

/* ==========================================
   3. HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 8% 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, #1d160a 0%, #060608 70%);
}

.hero-content h1 {
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Bounce Animation */
@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce-element {
    animation: floatBounce 3.5s ease-in-out infinite;
}

.hero-content p {
    font-size: 1.15rem;
    color: #a1a1aa;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

/* ==========================================
   4. SERVICES SECTION
   ========================================== */
.services {
    padding: 6rem 8%;
    text-align: center;
}

.services h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #0f0f13;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.08);
}

.card h3 {
    margin-bottom: 0.8rem;
    color: #ffffff;
    font-size: 1.25rem;
}

.card p {
    color: #a1a1aa;
    font-size: 0.95rem;
}

/* ==========================================
   5. WORK SECTION (CLASSIC MINIMALIST)
   ========================================== */
.work {
    padding: 6rem 8%;
    text-align: center;
    background-color: #030304;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: #a1a1aa;
    margin-bottom: 3.5rem;
    font-size: 1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1150px;
    margin: 0 auto;
}

.portfolio-card {
    background: #0d0d10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
}

.portfolio-card:hover .project-num {
    color: #f59e0b;
    transition: color 0.3s ease;
}

.project-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #a1a1aa;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.portfolio-card p {
    color: #9494a0;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Tech Tags / Pills */
.tech-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech-tags span {
    font-size: 0.75rem;
    color: #d4d4d8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 500;
}

.card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.2rem;
}

.portfolio-btn {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s;
}

.portfolio-btn .arrow {
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-btn .arrow {
    transform: translate(3px, -3px);
}

.portfolio-btn:hover {
    color: #f59e0b;
}

/* ==========================================
   6. CONTACT SECTION
   ========================================== */
.contact {
    padding: 6rem 8%;
    text-align: center;
}

.contact h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background-color: #0d0d10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.18);
}

/* ==========================================
   7. FOOTER
   ========================================== */
footer {
    padding: 2.5rem 8%;
    text-align: center;
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #71717a;
    font-size: 0.9rem;
}

/* ==========================================
   8. MOBILE & TABLET RESPONSIVENESS
   ========================================== */

/* Tablets & Small Laptops (Under 992px) */
@media (max-width: 992px) {
    .navbar {
        padding: 1.2rem 5%;
    }

    .hero {
        padding: 7rem 5% 3rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .services, .work, .contact {
        padding: 4.5rem 5%;
    }
}

/* Mobile Devices (Under 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
        position: relative;
    }

    .nav-links {
        gap: 1.2rem;
        font-size: 0.85rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    #cta-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .hero {
        min-height: auto;
        padding: 4rem 5% 3rem;
    }

    .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .hero-content p {
        font-size: 0.98rem;
        margin-bottom: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .portfolio-grid, .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-card, .card {
        padding: 1.5rem;
    }

    .section-title, .services h2, .contact h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        width: 100%;
    }
}

/* Extra Small Screens (Under 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-badge, .section-badge {
        font-size: 0.68rem;
        padding: 0.3rem 0.7rem;
    }

    .portfolio-card h3 {
        font-size: 1.15rem;
    }
}
