:root {
    --orange: #E8450A;
    --dark: #0B1120;
    --cream: #F5F3EE;
    --card: #1A2235;
}

* {
    font-family: 'DM Sans', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
.syne {
    font-family: 'Syne', sans-serif;
}

.text-gray-light {
    color: #D1D5DB;
}

.text-gray-mid {
    color: #9CA3AF;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    pointer-events: none;
}

.ink {
    position: absolute;
    top: -10px;
    right: 60px;
    width: 260px;
    height: 180px;
    background: radial-gradient(ellipse, #2a7a3b 0%, #1b5c2a 60%, transparent 100%);
    border-radius: 40% 60% 55% 45%/50% 40% 60% 50%;
    transform: rotate(-10deg);
    z-index: 0;
}

.stat-box {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 80px;
    text-align: center;
}

@media (min-width: 768px) {
    .stat-box {
        padding: 14px 20px;
        min-width: 110px;
    }
}

.skill-bar-wrap {
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    height: 6px;
    width: 100%;
}

.skill-bar {
    background: var(--orange);
    border-radius: 999px;
    height: 6px;
    transition: width 1.4s cubic-bezier(.4, 0, .2, 1);
}

.card-hover {
    transition: transform .3s ease, box-shadow .3s ease, border-color .2s;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.2);
}

.btn-orange {
    background: var(--orange);
    color: #fff;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: .92rem;
    transition: all .25s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-orange:hover {
    background: #c93a06;
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(232, 69, 10, 0.3);
}

.btn-outline {
    border: 2px solid var(--orange);
    color: var(--orange);
    border-radius: 8px;
    padding: 10px 26px;
    font-weight: 600;
    font-size: .92rem;
    transition: all .25s ease;
    background: transparent;
    display: inline-block;
    text-align: center;
}

.btn-outline:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.section-tag {
    color: var(--orange);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

nav a {
    font-size: .88rem;
    font-weight: 500;
    color: #1F2937;
    transition: color .2s;
}

nav a:hover {
    color: var(--orange);
}

.portfolio-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.portfolio-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0ede8;
    transition: transform 0.2s;
}

.portfolio-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, .7);
    opacity: 0;
    transition: opacity .25s;
}

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

.portfolio-card .icon-btn {
    position: absolute;
    bottom: 18px;
    right: 18px;
    background: var(--orange);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0) rotate(5deg);
    transition: transform .25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.portfolio-card:hover .icon-btn {
    transform: scale(1) rotate(0deg);
}

.testimonial-card {
    background: #1A2235;
    border-radius: 16px;
    padding: 20px 24px;
    transition: all .2s;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 28px 32px;
    }
}

.blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    transition: transform .25s, box-shadow .3s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    filter: grayscale(1) opacity(.55);
    transition: all .2s;
}

.brand-logo:hover {
    filter: grayscale(0) opacity(1);
    transform: scale(1.05);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp .7s ease forwards;
}

.delay-1 {
    animation-delay: .1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: .25s;
    opacity: 0;
}

.delay-3 {
    animation-delay: .4s;
    opacity: 0;
}

.delay-4 {
    animation-delay: .55s;
    opacity: 0;
}

.form-input,
.form-textarea {
    transition: border 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232, 69, 10, 0.2);
    outline: none;
}

.form-input:hover,
.form-textarea:hover {
    border-color: #E8450A80;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero stat boxes reposition on mobile */
@media (max-width: 767px) {
    .hero-stats {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        margin-top: 20px;
    }

    .hero-stats .stat-box {
        position: static !important;
        margin: 0;
        min-width: 90px;
    }

    .ink {
        display: none;
    }
}