html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Familjen Grotesk', sans-serif;
    color: #fff;
    background: radial-gradient(ellipse at center, #000011 0%, #000005 40%, #000000 70%, #000000 100%);
    min-height: 100vh;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
    nav {
        padding: 0.75rem 1rem;
    }
    
    .nav-brand {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.9rem;
    }
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: rgba(0, 150, 255, 1);
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.8);
}


canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content {
    z-index: 1;
    max-width: 90%;
    margin: 0 auto;
    opacity: 0; /* Hide HTML text since we're using 3D text */
    pointer-events: none;
}

/* Show only the CTA button */
.hero-content .cta-button {
    opacity: 1;
    pointer-events: all;
    position: relative;
    top: 100px; /* Position below where 3D text appears */
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 400;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    p {
        letter-spacing: 1px;
    }
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.4);
}

.cta-button:hover {
    background-color: rgba(0, 150, 255, 0.2);
    box-shadow: 0 0 25px rgba(0, 150, 255, 0.8);
}

main#work {
    padding: 5rem 2rem;
}

main section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    text-align: left;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.5);
}

.card-image-placeholder {
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-top: 0;
    font-size: 1.75rem;
}

.card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.card-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-tags span {
    background-color: rgba(0, 150, 255, 0.2);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-block;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.about-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.expertise-section {
    margin-top: 4rem;
}

.expertise-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expertise-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(102, 126, 234, 0.5);
    transition: border-color 0.3s;
}

.expertise-item:hover {
    border-left-color: rgba(102, 126, 234, 1);
}

.expertise-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: rgba(102, 126, 234, 1);
}

.expertise-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.95rem;
}

.about-cta {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 1rem;
    }
    
    .about-section h2 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}
