
/* CSS Reset & Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

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

/* Design Tokens */
:root {
    --color-background: oklch(15.44% 0.024 257.69);
    --color-primary: oklch(63.32% 0.277 254.22);
    --color-accent: oklch(71.72% 0.28 320.62);
    --color-text: oklch(95.4% 0.005 257.69);
    --color-text-dark: oklch(75.4% 0.015 257.69);
    --font-main: 'Inter', sans-serif;
    --shadow-color: 254.22 63.32% 0.277;
    --shadow-elevation-medium:
        0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.34),
        0.8px 1.6px 2px -0.8px hsl(var(--shadow-color) / 0.34),
        2.1px 4.1px 5.2px -1.7px hsl(var(--shadow-color) / 0.34);
    --shadow-elevation-high:
        0.3px 0.5px 0.7px hsl(var(--shadow-color) / 0.36),
        1.5px 2.9px 3.7px -0.5px hsl(var(--shadow-color) / 0.36),
        2.9px 5.8px 7.3px -1.1px hsl(var(--shadow-color) / 0.36),
        5.3px 10.6px 13.3px -1.6px hsl(var(--shadow-color) / 0.36);
}

/* General Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
    overflow-x: hidden;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }
}

body {
    font-family: var(--font-main);
    background-color: var(--color-background);
    color: var(--color-text);
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23222127' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--color-text);
    text-wrap: balance;
}

h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
}

section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    background: oklch(15.44% 0.024 257.69 / 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid oklch(30% 0.024 257.69);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-img {
    height: 40px !important;
    width: 40px !important;
    object-fit: contain;
    display: block !important;
    border: none;
    outline: none;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text) !important;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

/* Fallback for when logo image fails to load */
.logo-img[style*="display: none"] + .logo-text,
.logo-text:only-child {
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo:hover .logo-text {
    color: var(--color-primary) !important;
}

.nav-links a {
    color: var(--color-text-dark);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    min-height: 44px;
    line-height: 1.5;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    color: white !important;
    transform: scale(1.05);
    box-shadow: var(--shadow-elevation-medium);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--color-text-dark);
}

.cta-button {
    background: var(--color-primary);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-elevation-medium);
    border: none;
    cursor: pointer;
    display: inline-block;
    min-height: 44px;
    line-height: 1.5;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevation-high);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

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

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

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

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

/* Service Cards */
service-card {
    background: oklch(20% 0.024 257.69 / 0.5);
    border: 1px solid oklch(30% 0.024 257.69);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-elevation-medium);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevation-high);
}

/* Project Cards */
.project-card {
    background: oklch(20% 0.024 257.69 / 0.5);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-elevation-medium);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-elevation-high);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 1.5rem;
}

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

.project-content p {
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

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

.project-link i {
    transition: transform 0.3s;
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Partner Logos */
#partners {
    background-color: var(--color-background);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    margin-top: 2rem;
}

.partner-logos img {
    height: 35px;
    filter: grayscale(100%) opacity(70%);
    transition: all 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}

/* Contact Form */
#contact h2 {
    margin-bottom: 1.5rem;
}

.contact-email {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.contact-email a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.contact-email a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    gap: 1.5rem;
}

#contact input, #contact textarea {
    padding: 1.2rem;
    border-radius: 10px;
    border: 1px solid oklch(30% 0.024 257.69);
    background-color: oklch(20% 0.024 257.69 / 0.5);
    font-size: 1rem;
    color: var(--color-text);
    transition: box-shadow 0.3s, border-color 0.3s;
}

#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px oklch(63.32% 0.277 254.22 / 0.5);
}

#contact button {
    background: var(--color-primary);
    color: white;
    padding: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-elevation-medium);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

#contact button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevation-high);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    background-color: oklch(10% 0.024 257.69);
    color: var(--color-text-dark);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-credit {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-credit a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header & Navigation */
    .nav-links {
        display: none;
    }
    
    header {
        padding: 0.75rem 0;
    }
    
    header nav {
        justify-content: center;
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 32px !important;
        width: 32px !important;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    /* General Layout */
    section {
        padding: 3rem 1rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Typography */
    h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
        padding: 0 1rem;
    }
    
    #hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    #hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Grid System */
    .grid {
        gap: 1.5rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Service Cards */
    service-card {
        padding: 1.5rem;
    }
    
    service-card h3 {
        font-size: 1.25rem;
    }
    
    service-card p {
        font-size: 0.95rem;
    }
    
    /* Project Cards */
    .project-card img {
        height: 200px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-content h3 {
        font-size: 1.25rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
    }
    
    /* Partner Logos */
    .partner-logos {
        gap: 2rem;
        flex-direction: column;
    }
    
    .partner-logos img {
        height: 30px;
    }
    
    /* Contact Form */
    .contact-email {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    #contact form {
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    #contact input,
    #contact textarea {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    #contact button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    footer {
        padding: 1.5rem 1rem;
        margin-top: 3rem;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
    
    .footer-credit {
        font-size: 0.85rem;
    }
}

/* Tablet Responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Section adjustments for tablets */
    section {
        padding: 4rem 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    #hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    #hero p {
        font-size: 1.1rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-logos {
        gap: 3rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    #hero h1 {
        font-size: 1.75rem;
    }
    
    #hero p {
        font-size: 0.9rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
    
    service-card,
    .project-content {
        padding: 1rem;
    }
}
