:root {
    --bg-color: #0a0a0b;
    --surface-color: #161618;
    --primary-color: #ff6600;
    --secondary-color: #ff6600;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --accent-gradient: linear-gradient(135deg, #ff6600 0%, #ff6600 100%);
    --container-max: 1200px;
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header & Nav */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--bg-color);
}

.full-width {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('Hero Image.png');
    background-size: cover;
    background-position: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Particles interactive background */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: all;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 80%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    pointer-events: none;
    /* let clicks pass through to particles */
}

/* Re-enable pointer events for interactive elements inside hero */
.hero-content a,
.hero-content button {
    pointer-events: auto;
}

#hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
}

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

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

/* Services */
#services {
    padding: 8rem 0;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* About */
#about {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-visual {
    display: flex;
    justify-content: center;
}

/* Stats Box (About section) */
.stats-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 360px;
}

.stat-item {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: rgba(255, 102, 0, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
}

/* Portfolio */
#portfolio {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.portfolio-card {
    background: var(--surface-color);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.portfolio-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-img-wrap img {
    transform: scale(1.07);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.85) 0%, rgba(180, 50, 0, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.portfolio-overlay .portfolio-cta {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translateY(10px);
    transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay .portfolio-cta {
    transform: translateY(0);
}

.portfolio-info {
    padding: 1.8rem 2rem 2rem;
}

.portfolio-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.25);
    border-radius: 50px;
    padding: 0.25rem 0.85rem;
    margin-bottom: 0.85rem;
}

.portfolio-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.portfolio-cta-wrap {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.portfolio-cta-wrap>p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Contact */
#contact {
    padding: 8rem 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-container h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-form-container p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-email-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 102, 0, 0.3);
    padding-bottom: 2px;
    transition: var(--transition);
}

.contact-email-link:hover {
    border-bottom-color: var(--primary-color);
    opacity: 0.8;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 102, 0, 0.05);
}

/* Form success state */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem;
    background: var(--surface-color);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 20px;
    text-align: center;
}

.form-success.visible {
    display: flex;
    animation: fadeInUp 0.6s forwards;
}

.success-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 900;
}

.form-success strong {
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
}

.form-success p {
    color: var(--text-secondary);
    margin: 0;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-email {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-email:hover {
    color: var(--primary-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(10, 10, 11, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        z-index: 999;
    }

    .nav-links.nav-open {
        display: flex;
        animation: fadeInUp 0.3s forwards;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats-box {
        margin: 0 auto;
    }

    .about-visual {
        order: -1;
    }

    #hero h1 {
        font-size: 3.5rem;
    }

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