@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-width: 2px;
    --grid-line: rgba(30, 41, 59, 0.1);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Architectural Grid Background */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

/* Custom Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-outline {
    -webkit-text-stroke: 1px var(--secondary);
    color: transparent;
}

/* Custom Buttons */
.btn-primary {
    position: relative;
    padding: 1rem 2.5rem;
    min-height: 44px;
    background-color: var(--secondary);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translate(-4px, -4px);
    box-shadow: 4px 4px 0 var(--accent);
}

.btn-outline {
    padding: 1rem 2.5rem;
    min-height: 44px;
    border: var(--border-width) solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

/* Custom Navigation */
.nav-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: var(--border-width) solid var(--secondary);
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    padding: 0.75rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Section Styles */
.hero-wrapper {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    background: white;
    border: var(--border-width) solid var(--secondary);
    padding: 4rem;
    position: relative;
    z-index: 10;
    box-shadow: 20px 20px 0 var(--secondary);
}

.hero-image-container {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 60%;
    height: 80%;
    z-index: 1;
    overflow: hidden;
    border: var(--border-width) solid var(--secondary);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.hero-image-container:hover img {
    filter: grayscale(0%);
}

/* Section Decor */
.section-num {
    font-size: 8rem;
    font-weight: 900;
    color: var(--grid-line);
    position: absolute;
    top: -2rem;
    left: -2rem;
    z-index: -1;
}

/* Card System */
.feature-card {
    background: white;
    border: var(--border-width) solid var(--secondary);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0 var(--primary);
}

.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px solid var(--secondary);
}

/* Portfolio Hover */
.portfolio-item {
    position: relative;
    border: var(--border-width) solid var(--secondary);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: var(--secondary);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 0.95;
}

/* Testimonials */
.testimonial-box {
    border-left: 8px solid var(--primary);
    padding: 2rem;
    background: white;
    box-shadow: 0 4px 0 var(--grid-line);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: white;
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.77,0,0.175,1);
    padding: 6rem 2rem;
    border-left: var(--border-width) solid var(--secondary);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    padding: 1rem 0;
    min-height: 44px;
    border-bottom: 1px solid var(--grid-line);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
    padding-left: 1rem;
}

.mobile-menu-btn {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 32px;
    height: 3px;
    background-color: var(--secondary);
    transition: all 0.3s ease;
}

.close-menu {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.close-menu:hover {
    background: var(--primary);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 90;
    display: none;
}

.overlay.active {
    display: block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

section, header, footer, main {
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}
@media (min-width: 768px) {
    .container { max-width: 768px; }
}
@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}
@media (min-width: 1536px) {
    .container { max-width: 1400px; }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
        box-shadow: 10px 10px 0 var(--secondary);
    }
    .hero-image-container {
        position: relative;
        width: 100%;
        height: 300px;
        transform: none;
        top: 0;
        margin-top: 2rem;
    }
    .hero-wrapper {
        flex-direction: column;
        justify-content: center;
        padding-top: 8rem;
    }
    .section-num {
        font-size: 4rem;
        top: -1rem;
        left: 0;
    }
}
