@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #212126;
    --bg-darker: #1a1a1f;
    --accent-color: #6dcff6;
    --text-color: #ffffff;
    --text-muted: #888888;
    --gray-dark: #323337;
    --sidebar-width: 100px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --font-heading: 'Questrial', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    height: 100vh;
}

/* Scroll Container */
.main-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    background: var(--bg-color);
}

.sidebar-logo img {
    width: 60px;
    opacity: 0.9;
}

.nav-indicator {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-size: 0.7rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 10px 0;
}

.nav-item.active {
    color: var(--text-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 15px;
    height: 1px;
    background: var(--text-color);
}

.scroll-hint {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Main Content Area */
.content-area {
    margin-left: var(--sidebar-width);
    flex: 1;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    position: relative;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    display: flex;
    justify-content: flex-end;
    padding: 2.5rem 4rem;
    z-index: 90;
}

.top-nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 3rem;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.top-nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Feature Cards Grid (for services screen) */
.screen-section {
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    padding: 0 8rem;
    position: relative;
    overflow: hidden;
}

.section-label {
    position: absolute;
    top: 2.5rem;
    left: 4rem;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
}

.background-canvas {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    opacity: 0.5; /* Increased brightness */
    pointer-events: auto;
    z-index: 1;
}

#ocean-canvas {
    width: 100%;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.welcome-text {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    display: block;
    font-family: var(--font-heading);
}

h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -1px;
}

.description {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 450px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-play.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.btn-play.secondary:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.play-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 1.2rem;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

/* Feature Cards Grid (for services screen) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    width: 100%;
}

.feature-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 3rem;
    width: 100%;
}

.team-card {
    text-align: center;
    transition: var(--transition-smooth);
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.profile-pic {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(109, 207, 246, 0.1);
    position: relative;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .profile-pic img {
    transform: scale(1.1);
}

.team-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.btn-linkedin {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.btn-linkedin:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(109, 207, 246, 0.4);
}

/* Journey Section */
.journey-container {
    width: 100%;
    overflow-x: auto;
    padding: 2rem 0;
    margin-top: 2rem;
    scrollbar-width: none; /* Firefox */
}

.journey-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.journey-track {
    display: flex;
    gap: 2.5rem;
}

.journey-track::after {
    content: '';
    flex: 0 0 600px; /* Guaranteed extra space at the end of the scroll */
}

.journey-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.journey-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.journey-img {
    height: 200px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.journey-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.journey-card:hover .journey-img img {
    transform: scale(1.1);
}

.date-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.journey-body {
    padding: 2rem;
}

.journey-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.journey-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Fix Overlap & Arrow */
.journey-hero {
    max-width: 1200px !important;
    padding-top: 4rem; /* Push down to avoid label overlap */
}

.journey-wrapper {
    position: relative;
    width: 100%;
}

.scroll-arrow {
    position: absolute;
    right: 2rem;
    left: auto; /* For transition */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    background: rgba(33, 33, 38, 0.8);
    padding: 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    pointer-events: none; /* Don't interfere with dragging */
    animation: bounceRight 2s infinite;
    transition: opacity 0.3s ease;
}

.scroll-arrow.scrolled-end {
    right: auto;
    left: 2rem;
    animation: bounceLeft 2s infinite;
}

.scroll-arrow.scrolled-end .arrow-icon {
    display: inline-block;
    transform: rotate(180deg);
}

.arrow-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

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

@media (max-width: 1300px) {
    .scroll-arrow {
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        border-radius: 10px;
        box-shadow: -10px 0 20px var(--bg-color);
    }
}

/* Custom Scrollbar */
.content-area::-webkit-scrollbar {
    width: 4px;
}

.content-area::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .screen-section {
        padding: 0 4rem;
    }
    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .content-area {
        margin-left: 0;
    }
    .top-nav {
        left: 0;
        padding: 1.5rem 2rem;
    }
    .screen-section {
        padding: 0 2rem;
    }
    .background-watermark {
        width: 100%;
        right: -20%;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-area {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 10;
    width: 100%; /* Ensure it takes full width */
}

#contact .hero-content {
    max-width: 90vw !important; /* Allow it to expand for the large email */
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    opacity: 0.8;
}

.contact-email.large {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 4.5rem); /* Massive responsive font */
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(
        to right, 
        #ffffff 20%, 
        var(--accent-color) 40%, 
        #ffffff 60%, 
        var(--accent-color) 80%
    );
    background-size: 200% auto;
    font-weight: 700;
    letter-spacing: -2px;
    white-space: nowrap; /* Keep on one line */
    animation: textShine 4s linear infinite, textGlow 3s ease-in-out infinite alternate;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes textGlow {
    from { filter: drop-shadow(0 0 5px rgba(109, 207, 246, 0.2)); }
    to { filter: drop-shadow(0 0 20px rgba(109, 207, 246, 0.5)); }
}

#contact-canvas {
    width: 100% !important;
    height: 200px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 1 !important; /* Remove opaque/semi-transparent feel */
    pointer-events: none;
}

.contact-email.large:hover {
    color: var(--accent-color);
    text-shadow: 0 0 30px rgba(109, 207, 246, 0.3);
}

/* How it Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.works-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.works-item:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.works-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.works-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-color);
}

.works-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Capabilities Section */
.capabilities-container {
    padding-bottom: 1rem;
}

.cap-track {
    display: flex;
    gap: 2rem;
    padding-right: 5vw; /* Extra room for over-scroll */
}

.cap-card {
    min-width: 380px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.cap-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.cap-icon {
    font-size: 2rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.cap-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Extended Capabilities Styling */
.capabilities-grid.extended {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cap-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cap-header .cap-icon {
    margin-bottom: 0;
}

.cap-list {
    list-style: none;
    padding: 0;
}

.cap-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.cap-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.cap-list li strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.2rem;
}
