:root {
    --bg-color: #050505;
    --text-primary: #FFFFFF;
    --text-secondary: #aaaaaa;
    --accent-color: #0047FF;
    --accent-hover: #0033cc;
    --card-bg: rgba(25, 25, 25, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);

    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blue-accent {
    color: var(--accent-color);
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.main-title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    text-align: center;
}

.hero-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Layout Utilities */
.content-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.logo-box:hover {
    background: var(--accent-color);
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--accent-color);
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.glass-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 71, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    top: 10%;
    right: -10%;
    z-index: 0;
    pointer-events: none;
}

.orb-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Latest Projects (2x2 Grid) */
.projects-section {
    padding-top: 4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 400;
}

.section-header h2 .accent-text {
    color: var(--accent-color);
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.link-arrow:hover {
    color: var(--accent-color);
}

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

.link-arrow:hover .arrow {
    transform: translateX(5px);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-color);
    background: #0f0f0f;
}

.project-bg {
    position: absolute;
    inset: 0;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
    z-index: 1;
}

.project-card:hover .project-bg {
    transform: scale(1.05);
    filter: blur(10px) brightness(0.3);
}

.project-info {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem;
}

.project-card:hover .project-info {
    opacity: 1;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    transform: translateY(15px);
    transition: transform 0.4s ease;
    font-weight: 400;
}

.project-info .btn {
    transform: translateY(15px);
    transition: transform 0.4s ease 0.1s, background 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.project-info .btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.project-card:hover .project-info h3,
.project-card:hover .project-info .btn {
    transform: translateY(0);
}

/* Marquee with icons */
.marquee-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}

.marquee {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: scroll 30s linear infinite;
}

.software-icon {
    width: 50px;
    height: 50px;
    margin: 0 4rem;
    opacity: 0.5;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.software-icon:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer layout */
.footer {
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    max-width: 400px;
}

.contact-links-left {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

.contact-links-left a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.contact-links-left a:hover {
    color: var(--accent-color);
}

.footer-right {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.footer-right h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 400;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-form button {
    align-self: flex-start;
    margin-top: 1rem;
}

/* Zayla Monroe Project Alternating Layout */
.project-list-section {
    padding-top: 10rem;
    padding-bottom: 6rem;
}

.projects-list-container {
    margin-top: 5rem;
}

.project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
    margin-bottom: 10rem;
}

.project-row:nth-child(even) {
    flex-direction: row-reverse;
}

.row-info {
    flex: 1;
    max-width: 500px;
}

.row-image {
    flex: 1;
}

.row-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.project-row:hover .row-image img {
    transform: translateY(-10px);
}

.row-num {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.row-info h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.row-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.row-link {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: all 0.3s;
}

.row-link:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        grid-template-columns: 1fr;
    }

    .project-row,
    .project-row:nth-child(even) {
        flex-direction: column-reverse;
        gap: 3rem;
        margin-bottom: 6rem;
    }
}