:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --accent-color: #ff4d00;
    --accent-gradient: linear-gradient(135deg, #ff4e00 0%, #ec9f05 100%);
    --card-bg: #f9f9f9;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-unit: 1rem;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

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

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--text-color);
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hero Section */
.hero-section {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 77, 0, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #1a1a1a, #555);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 500px;
    animation: slideUp 1.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Gallery Section */
.gallery-section {
    padding: 2rem 5% 8rem;
    min-height: 100vh;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Hero Card Styles */
.hero-card {
    grid-column: span 2;
    /* Takes up 2 columns on larger screens */
    background: #000;
    color: white;
    box-shadow: 0 20px 50px rgba(255, 78, 0, 0.2);
}

.hero-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.hero-card .project-title {
    font-size: 3rem;
    margin: 0;
    position: relative;
    z-index: 2;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-card .project-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

.flama-graphic {
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(40px);
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    transition: transform 0.5s ease;
}

.hero-card:hover .flama-graphic {
    transform: scale(1.5);
}

/* Placeholder Cards */
.placeholder-card {
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-card .card-content {
    text-align: center;
    opacity: 0.4;
    transition: opacity var(--transition-speed);
}

.placeholder-card:hover .card-content {
    opacity: 1;
}

.wireframe-graphic {
    margin-bottom: 1rem;
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.shape-circle,
.shape-rect,
.shape-tri {
    display: block;
    border: 2px solid #ccc;
    position: absolute;
}

.shape-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 0;
    left: 10px;
}

.shape-rect {
    width: 40px;
    height: 40px;
    top: 5px;
    left: 10px;
}

.shape-tri {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid #ccc;
    background: transparent;
    border-top: none;
    border-left-width: 20px;
    border-right-width: 20px;
    border-bottom-width: 40px;
    /* Resetting default border style for custom triangle */
    border-style: solid;
    border-color: transparent transparent #ccc transparent;
}


.shape-line {
    width: 30px;
    height: 2px;
    background: #ccc;
    position: absolute;
    bottom: -10px;
    left: 15px;
}

.coming-soon {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}



/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-card {
        grid-column: span 1;
        height: 500px;
    }

    .header-nav {
        gap: 1.5rem;
    }

    .nav-item {
        font-size: 0.85rem;
    }
}