/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-start: #EA8534;
    --primary-end: #A0111A;
    --primary-gradient: linear-gradient(135deg, #EA8534, #A0111A);
    --primary-gradient-hover: linear-gradient(135deg, #A0111A, #EA8534);
    --secondary: #4B2364;
    --secondary-light: rgba(75, 35, 100, 0.08);
    --bg-body: #FFFFFF;
    --text-dark: #111827;
    --text-gray: #4B5563;
    --text-light-gray: #9CA3AF;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --card-border: #E5E7EB;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 24px;
    --radius-sm: 12px;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
html {
  scrollbar-gutter: stable;
}

/* ============================================================
   UTILITY
   ============================================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-light);
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(75, 35, 100, 0.15);
    margin-bottom: 0.8rem;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.section-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 560px;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 3rem 0 5rem;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(234, 133, 52, 0.07), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--secondary-light);
    border: 1px solid rgba(75, 35, 100, 0.15);
    padding: 0.35rem 1.2rem 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.hero-content .badge .dot {
    width: 8px;
    height: 8px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero-content h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 520px;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary-gradient);
    color: var(--white);
    font-weight: 700;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 16px rgba(234, 133, 52, 0.25);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(160, 17, 26, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    border: 1.5px solid var(--card-border);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
    background: var(--secondary-light);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 0.5rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--card-border);
}

.hero-stats .stat h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.hero-stats .stat h3 span {
    color: var(--primary-start);
}

.hero-stats .stat p {
    color: var(--text-gray);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.1rem;
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual .orb {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 30% 30%, rgba(75, 35, 100, 0.08), rgba(234, 133, 52, 0.02));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(75, 35, 100, 0.1);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

.hero-visual .orb i {
    font-size: 8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
}

.hero-visual .orb .ring {
    position: absolute;
    border: 1px solid rgba(75, 35, 100, 0.08);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.hero-visual .orb .ring:nth-child(1) {
    width: 90%;
    height: 90%;
}
.hero-visual .orb .ring:nth-child(2) {
    width: 110%;
    height: 110%;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-section {
    padding: 5rem 0 6rem;
    background: var(--bg-body);
}

.projects-section .section-header {
    margin-bottom: 3.5rem;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: fadeUp 0.7s ease both;
    animation-delay: calc(0.08s * var(--i, 1));
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(75, 35, 100, 0.2);
    box-shadow: var(--shadow-lg);
}

.project-card .card-top {
    position: relative;
    overflow: hidden;
}

.project-card .card-top .project-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all var(--transition);
}

.project-card:hover .project-img {
    background: linear-gradient(145deg, #e5e7eb, #d1d5db);
}

.project-img .img-icon {
    font-size: 4.2rem;
    color: var(--text-light-gray);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.project-img .img-icon i {
    font-size: 4.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
    transition: all var(--transition);
}

.project-img .img-icon span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light-gray);
    font-weight: 600;
    -webkit-text-fill-color: var(--text-light-gray);
}

.project-card:hover .img-icon i {
    opacity: 1;
    transform: scale(1.08);
}

.project-card .card-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    opacity: 0.6;
}

.project-body {
    padding: 1.6rem 1.8rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body .project-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.project-body .project-name i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.5rem 0 0.7rem;
}

.tech-stack .tech-tag {
    background: var(--secondary-light);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(75, 35, 100, 0.1);
    letter-spacing: 0.2px;
    transition: all var(--transition);
}

.project-card:hover .tech-tag {
    background: rgba(75, 35, 100, 0.15);
    border-color: rgba(75, 35, 100, 0.2);
}

.project-body .short-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.2rem 0 0.8rem;
    flex: 1;
}

.project-body .feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0.2rem 0 1rem;
    list-style: none;
    padding: 0;
}

.project-body .feature-list li {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-body .feature-list li i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.7rem;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-footer .meta-icons {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light-gray);
}

.project-footer .meta-icons i {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.2rem;
    font-size: 0.8rem;
}

.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.6rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(234, 133, 52, 0.2);
}

.btn-orange:hover {
    background: var(--primary-gradient-hover);
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(160, 17, 26, 0.3);
}

.btn-orange i {
    transition: transform var(--transition);
}

.btn-orange:hover i {
    transform: translateX(4px);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-section {
    padding: 4rem 0 5rem;
    background: #F9FAFB;
    border-top: 1px solid var(--card-border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.skill-item {
    background: var(--card-bg);
    padding: 1.8rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    text-align: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.skill-item:hover {
    border-color: rgba(75, 35, 100, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.skill-item i {
    font-size: 2.4rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
}

.skill-item h4 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.skill-item p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    padding: 4rem 0 5rem;
    background: var(--bg-body);
    border-top: 1px solid var(--card-border);
}

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

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    border-color: rgba(75, 35, 100, 0.15);
    box-shadow: var(--shadow-md);
}

.testimonial-card .stars {
    color: var(--primary-start);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.testimonial-card blockquote {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.testimonial-card .author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.testimonial-card .author .info h5 {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.testimonial-card .author .info p {
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
    padding: 4rem 0;
    background: #F9FAFB;
    border-top: 1px solid var(--card-border);
}

.cta-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234, 133, 52, 0.04), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
}

.cta-box h2 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-box p {
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.cta-box .btn-primary {
    font-size: 1rem;
    padding: 0.9rem 2.8rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual .orb {
        width: 260px;
        height: 260px;
    }

    .hero-visual .orb i {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }

    .hero {
        padding: 2.5rem 0 3rem;
        min-height: auto;
    }

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

    .hero-stats {
        gap: 1.8rem;
        flex-wrap: wrap;
    }

    .hero-stats .stat h3 {
        font-size: 1.6rem;
    }

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

    .project-card .card-top .project-img {
        height: 180px;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-visual .orb {
        width: 200px;
        height: 200px;
    }

    .hero-visual .orb i {
        font-size: 3.8rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .skill-item {
        padding: 1.2rem 0.8rem;
    }

    .project-body {
        padding: 1.2rem 1.2rem 1.4rem;
    }

    .project-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-orange {
        justify-content: center;
    }
}