/* ============================================
   NorthEight Website - Enhanced Styles
   ============================================ */

/* CSS Variables */
:root {
    --black: #000000;
    --white: #ffffff;
    --accent: #c5b8a5;
    --neutral-lightest: #eeeeee;
    --neutral-lighter: #cccccc;
    --neutral-light: #aaaaaa;
    --neutral: #666666;
    --neutral-dark: #444444;
    --neutral-darker: #222222;
    --neutral-darkest: #111111;
    
    --font-logo: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 200ms ease;
    --transition-medium: 300ms ease;
    --transition-slow: 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: background var(--transition-medium), backdrop-filter var(--transition-medium);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

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

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo-img {
    height: 32px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--neutral-light);
    text-transform: uppercase;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-medium);
}

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

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition-medium);
}

/* RICS Badge */
.rics-badge {
    display: flex;
    align-items: center;
}

.rics-badge img {
    height: 50px;
    width: auto;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.rics-badge img:hover {
    opacity: 1;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,1) 100%),
                radial-gradient(ellipse at center, rgba(30,30,30,1) 0%, rgba(0,0,0,1) 70%);
    position: relative;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-logo {
    width: clamp(280px, 50vw, 500px);
    height: auto;
    margin: 0 auto 1.5rem;
}

.hero-subtitle {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--neutral-light);
    text-transform: uppercase;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: block;
    width: 30px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    position: relative;
    transition: border-color var(--transition-fast);
}

.scroll-indicator:hover {
    border-color: var(--accent);
}

.scroll-arrow {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--white);
    border-bottom: 1px solid var(--white);
    transform: translateX(-50%) rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    40% {
        transform: translateX(-50%) translateY(10px) rotate(45deg);
    }
    60% {
        transform: translateX(-50%) translateY(5px) rotate(45deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   About Section
   ============================================ */

.about {
    position: relative;
    padding: 8rem 0;
    background-image: url('../images/Background-QSPMworkspace.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.about-container {
    position: relative;
    z-index: 1;
    text-align: center;
}

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

.section-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--neutral-lighter);
}

/* ============================================
   Services Section
   ============================================ */

.services {
    position: relative;
    padding: 8rem 0;
    background-image: url('../images/services-bg.png');
    background-size: cover;
    background-position: center;
}

.services-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.services-container {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(34, 34, 34, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all var(--transition-medium);
    will-change: transform, border-color;
}

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

.service-title {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    font-size: 0.8125rem;
    color: var(--neutral-light);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
    transition: color var(--transition-fast);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.service-card:hover .service-list li {
    color: var(--neutral-lighter);
}

/* ============================================
   Contact / Footer Section
   ============================================ */

.contact {
    background: var(--black);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--accent);
}

.contact-content {
    flex: 1;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral);
    margin-bottom: 0.5rem;
}

.contact-content address,
.contact-link {
    font-size: 0.9375rem;
    color: var(--neutral-lighter);
    line-height: 1.7;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.8125rem;
    color: var(--neutral);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for service cards */
.services-grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .service-card:nth-child(2) { transition-delay: 100ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 200ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 300ms; }

/* Stagger delays for contact items */
.contact-grid .contact-item:nth-child(1) { transition-delay: 0ms; }
.contact-grid .contact-item:nth-child(2) { transition-delay: 100ms; }
.contact-grid .contact-item:nth-child(3) { transition-delay: 200ms; }

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about {
        padding: 6rem 0;
    }
    
    .services {
        padding: 6rem 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-medium);
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .rics-badge {
        display: none;
    }
    
    .hero-logo {
        width: 220px;
    }
    
    .hero-subtitle {
        font-size: 0.7rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about {
        padding: 5rem 0;
        background-attachment: scroll;
    }
    
    .services {
        padding: 5rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
    
    .hero-content {
        opacity: 1;
        transform: none;
    }
}