/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #0d0d0d;
    background-color: #ffffff;
    overflow-x: hidden;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

.content-max {
    max-width: 1000px;
    margin: 0 auto 4rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.text-large {
    font-size: 1.25rem;
    color: #737373;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.text-small {
    font-size: 0.875rem;
}

.text-muted {
    color: #737373;
}

.text-white {
    color: #fafafa;
}

.font-medium {
    font-weight: 500;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-gray {
    background-color: #f5f5f5;
}

.section-primary {
    background: linear-gradient(135deg, #0d0d0d, #262626);
    color: #fafafa;
}

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

.section-divider {
    width: 6rem;
    height: 0.25rem;
    background-color: #16A4C5;
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #737373;
    max-width: 800px;
    margin: 0 auto;
}

/* Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card-hover:hover {
    border-color: #16A4C5;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-highlight:hover {
    border-color: #16A4C5;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

.card-white {
    background: #ffffff;
    color: #0d0d0d;
    border-color: rgba(22, 164, 197, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
}

.card-center {
    text-align: center;
}

.card-text {
    color: #737373;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #16A4C5;
    font-weight: 600;
}

.card-icon-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Icons */
.icon-circle {
    width: 4rem;
    height: 4rem;
    background-color: rgba(22, 164, 197, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16A4C5;
    margin: 0 auto 1rem;
}

.icon-circle-accent {
    background-color: rgba(22, 164, 197, 0.2);
}

.icon-box {
    width: 3rem;
    height: 3rem;
    background-color: rgba(22, 164, 197, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #16A4C5;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.card-hover:hover .icon-box {
    background-color: rgba(22, 164, 197, 0.2);
}

/* Lists */
.list-highlights {
    list-style: none;
    padding: 0;
}

.list-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.list-highlights li::before {
    content: "•";
    color: #16A4C5;
    font-weight: bold;
    margin-top: 0.25rem;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    height: 3rem;
    width: auto;
}

.logo-btn {
    padding: 0;
    display: flex;
    align-items: center;
}

.desktop-nav {
    display: none;
    gap: 2rem;
}

.desktop-nav button {
    color: #0d0d0d;
    font-weight: 500;
    transition: color 0.3s ease;
}

.desktop-nav button:hover {
    color: #16A4C5;
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #0d0d0d;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-bottom: 1rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav button {
    text-align: left;
    padding: 0.75rem 1rem;
    color: #0d0d0d;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.mobile-nav button:hover {
    background-color: rgba(22, 164, 197, 0.1);
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.9), 
        rgba(255, 255, 255, 0.7), 
        rgba(255, 255, 255, 0.9)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-main {
    display: block;
    font-size: 3rem;
    font-weight: 700;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    color: #737373;
    margin-top: 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: #737373;
    max-width: 1000px;
    margin: 0 auto 3rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero-main {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-main {
        font-size: 6rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #16A4C5;
    color: #fafafa;
}

.btn-primary:hover {
    background-color: rgba(22, 164, 197, 0.9);
}

.btn-outline {
    border: 2px solid #0d0d0d;
    color: #0d0d0d;
}

.btn-outline:hover {
    background-color: #0d0d0d;
    color: #fafafa;
}

.arrow {
    font-size: 1.25rem;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

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

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(13, 13, 13, 0.3);
    border-radius: 1rem;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.25rem;
}

.scroll-mouse::after {
    content: '';
    width: 0.25rem;
    height: 0.75rem;
    background-color: rgba(13, 13, 13, 0.3);
    border-radius: 0.25rem;
}

/* Infiniplay Specific */
.infiniplay-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Partners */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.partner-item {
    padding: 1rem;
    background-color: rgba(13, 13, 13, 0.03);
    border-radius: 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.partner-logo-placeholder {
    width: 7rem;
    height: 5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    border: 2px solid rgba(229, 229, 229, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-placeholder svg {
    color: rgba(115, 115, 115, 0.3);
}

.partner-item p {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
}

.portfolio-card-teal {
    background: linear-gradient(135deg, rgba(22, 164, 197, 0.2), rgba(22, 164, 197, 0.05));
}

.portfolio-card-accent {
    background: linear-gradient(135deg, rgba(22, 164, 197, 0.2), rgba(22, 164, 197, 0.05));
}

.portfolio-card-primary {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.2), rgba(13, 13, 13, 0.05));
}

.portfolio-card .icon-circle {
    transition: transform 0.3s ease;
}

.portfolio-card:hover .icon-circle {
    transform: scale(1.1);
}

.portfolio-category {
    font-size: 0.875rem;
    font-weight: 700;
    color: #16A4C5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(22, 164, 197, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background-color: #16A4C5;
    border-radius: 50%;
    border: 4px solid #ffffff;
}

.timeline-year {
    font-size: 1.875rem;
    font-weight: 700;
    color: #16A4C5;
    display: block;
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        padding-left: 0;
        width: 50%;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 3rem;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 3rem;
    }
    
    .timeline-item::before {
        left: auto;
        right: -0.5rem;
    }
    
    .timeline-item:nth-child(even)::before {
        left: -0.5rem;
        right: auto;
    }
}

/* Contact */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(13, 13, 13, 0.03);
}

.contact-item:hover .icon-box {
    background-color: rgba(22, 164, 197, 0.2);
}

.card-hours {
    background: linear-gradient(135deg, rgba(22, 164, 197, 0.1), rgba(22, 164, 197, 0.05));
    border-color: rgba(22, 164, 197, 0.2);
}

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

.hours-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    color: #fafafa;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col-2 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-col-2 {
        grid-column: span 1;
    }
}

.footer-logo {
    height: 4rem;
    width: auto;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: rgba(250, 250, 250, 0.8);
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links button {
    color: rgba(250, 250, 250, 0.8);
    transition: color 0.3s ease;
}

.footer-links button:hover {
    color: #fafafa;
}

.footer-text-list {
    list-style: none;
    padding: 0;
    color: rgba(250, 250, 250, 0.8);
}

.footer-text-list li {
    margin-bottom: 0.5rem;
}

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

.footer-bottom p {
    color: rgba(250, 250, 250, 0.6);
    font-size: 0.875rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .text-large {
        font-size: 1rem;
    }
}