/* Custom Properties */
:root {
    --bg-dark: #ffffff;
    --bg-panel: #f8f9fa;
    --border-color: #e8eaed;
    --text-main: #202124;
    --text-muted: #5f6368;
    --text-dark: #202124;
    --accent-primary: #1a73e8;
    --accent-secondary: #0b57d0;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: #ffffff;
    pointer-events: none;
}

.glow-bg {
    position: fixed;
    top: -20vh;
    left: 20vw;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.08) 0%, rgba(11, 87, 208, 0.03) 40%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, .logo-text {
    font-family: var(--font-heading);
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    background: #e8f0fe;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    /* filter: brightness(0) invert(1); */ /* removed for light mode */
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary-small, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 100px;
}

.btn-primary-small {
    padding: 8px 20px;
    background: var(--text-main);
    color: #ffffff !important;
}

.btn-primary-small:hover {
    background: #3c4043;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

.btn-primary {
    padding: 14px 32px;
    background: var(--accent-primary);
    color: #ffffff !important;
    font-size: 1rem;
    border: none;
    border-radius: 8px; /* More standard border radius */
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26, 115, 232, 0.2);
    background: var(--accent-secondary);
}

.btn-secondary {
    padding: 14px 32px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 20px;
    position: relative;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    position: absolute;
    transition: all 0.3s ease;
}

.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 9px; }
.bar:nth-child(3) { bottom: 0; }

.hamburger.toggle .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}
.hamburger.toggle .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.toggle .bar:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 2rem 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Layout Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
#services {
    background: var(--bg-panel);
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
}

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

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* About */
#about {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Glass pane visual */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-statement {
    background: rgba(0, 0, 0, 0.03);
    border-left: 4px solid var(--accent-primary);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 12px 12px 0;
}

.mission-statement h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.mission-statement p {
    margin-bottom: 0 !important;
    color: var(--text-muted) !important;
    font-weight: 400;
    text-align: left !important;
}

.glass-pane {
    width: 320px;
    height: 320px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

/* Inner highlight removed */

.glass-logo {
    width: 200px;
    height: auto;
    opacity: 1;
    position: relative;
    z-index: 1;
    transition: transform 0.5s ease;
}

.glass-pane:hover .glass-logo {
    transform: scale(1.05);
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Projects Marquee */
#projects {
    position: relative;
    z-index: 2;
    overflow: hidden;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
}

.marquee-container {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    width: 100%;
    cursor: grab;
}

.marquee-container::-webkit-scrollbar {
    display: none;
}

.marquee-container:active {
    cursor: grabbing;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem 3rem 2rem;
    width: max-content;
    margin: 0 auto;
}

.project-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    min-width: 380px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
    user-select: none;
    cursor: default;
}

.project-card:hover {
    border-color: #dadce0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.project-logo {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.tech-tag {
    background: rgba(26, 115, 232, 0.08);
    border: 1px solid rgba(26, 115, 232, 0.2);
    color: var(--accent-primary);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    margin-top: 1rem;
}

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

/* Gallery Section */
#gallery {
    background: var(--bg-dark);
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: #f8f9fa;
    flex: 1 1 280px;
    max-width: 450px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    filter: grayscale(0%) contrast(1) brightness(1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-title {
    transform: translateY(0);
}

/* Team Section */
#team {
    background: var(--bg-panel);
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
    padding-bottom: 5rem;
}

.team-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-width: 260px;
    user-select: none;
}

.team-card:hover {
    border-color: #dadce0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.team-img-wrapper {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f8f9fa;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.team-card:hover .team-img-wrapper {
    transform: scale(1.05);
    border-color: var(--accent-primary);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.team-card:hover .team-img {
    filter: grayscale(0%);
}

.team-info {
    margin-top: 1rem;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.team-role {
    font-size: 0.95rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Contact Section */
#contact {
    background: var(--bg-panel);
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--border-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

.contact-form .btn-primary {
    border: none;
    width: 100%;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--bg-panel);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.footer-links p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title { font-size: 3.5rem; }
    .about-content { grid-template-columns: 1fr; }
    .about-text .section-title { text-align: center; }
    .about-text p { text-align: center; }
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1001; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .cta-group { flex-direction: column; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; }
    .project-card {
        min-width: 240px;
        max-width: 240px;
        padding: 1.2rem;
    }
    .project-title { font-size: 1.2rem; }
    .team-card {
        min-width: 160px;
        padding: 1rem;
    }
    .team-img-wrapper {
        width: 80px;
        height: 80px;
    }
    .team-name { font-size: 1rem; }
    .team-role { font-size: 0.8rem; }
    .gallery-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 2rem;
        scrollbar-width: none;
    }
    .gallery-grid::-webkit-scrollbar { display: none; }
    .gallery-item {
        min-width: 85vw;
        scroll-snap-align: center;
        aspect-ratio: 4/3;
    }
}
