/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #4EAC9D;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border-color: #e0e0e0;
    --spot-color:#d3cc0b;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 24px;
    width: auto;
    transition: var(--transition-fast);
}

.logo-image:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--highlight-color);
}

.nav-link.cta-button {
    background-color: var(--highlight-color);
    color: var(--white);
}

.nav-link.cta-button:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 220px 0 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.15;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin-bottom: var(--spacing-lg);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-title .highlight {
    color: #d1cb43;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--highlight-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #3d9a8c;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(78, 172, 157, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--spot-color);
    border: 2px solid var(--spot-color);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d1cb43;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-display);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--highlight-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: var(--spacing-md) 0 var(--spacing-sm);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.values-list {
    list-style: none;
}

.values-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background-color: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--highlight-color);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(-30px);
}

.values-list li.animate-in {
    animation: slideInValue 0.6s ease forwards;
}

@keyframes slideInValue {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.values-list li:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
    background-color: #f8fffe;
    border-left-width: 6px;
}

.values-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
    transition: color var(--transition-fast);
}

.values-list li:hover strong {
    color: var(--highlight-color);
}

.about-image {
    position: sticky;
    top: 100px;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.placeholder-content {
    color: rgba(255, 255, 255, 0.3);
}

.placeholder-content svg {
    width: 120px;
    height: 120px;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--spot-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--highlight-color), #6bc5b8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   APPROACH SECTION
   ========================================== */
.approach {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(15, 52, 96, 0.95) 100%), url('../images/site_layout/abstract.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.approach .section-label {
    color: #d1cb43;
}

.approach .section-title {
    color: var(--white);
}

.approach .section-description {
    color: rgba(255, 255, 255, 0.9);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.approach-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--spot-color);
    transition: var(--transition-normal);
}

.approach-step:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d1cb43;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-display);
}

.approach-step h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
}

.approach-step p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
.portfolio {
    background-color: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image .image-placeholder span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    font-weight: 600;
}

.portfolio-content {
    padding: var(--spacing-md);
}

.portfolio-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.portfolio-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.portfolio-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.portfolio-tags span {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--light-bg);
    color: var(--text-secondary);
    border-radius: 20px;
    font-weight: 500;
}

/* ==========================================
   TEAM SECTION
   ========================================== */
.team {
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/site_layout/portrait_pier.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
}

.team .container {
    position: relative;
    z-index: 1;
}

.team-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.team-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.team-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.capabilities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    list-style: none;
    margin-top: var(--spacing-md);
}

.capabilities-list li {
    padding: var(--spacing-sm);
    background-color: var(--light-bg);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    border-left: 3px solid var(--highlight-color);
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.team-stat {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: var(--spacing-lg);
    border-radius: 12px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.team-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #d1cb43;
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-display);
}

.team-stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 100px;
}

.contact-info .section-label {
    text-align: left;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.contact-info > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    gap: var(--spacing-sm);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--highlight-color), #6bc5b8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--highlight-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: start;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer .logo-image {
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-description {
    line-height: 1.8;
    margin-top: var(--spacing-sm);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-column ul li a:hover {
    color: #d1cb43;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #d1cb43;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-md) 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .logo-image {
        height: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .about-content,
    .team-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        position: static;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .capabilities-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .approach-steps {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .team-stats-grid {
        grid-template-columns: 1fr;
    }

    .logo-image {
        height: 18px;
    }

    .footer .logo-image {
        height: 16px;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}