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

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation Circles */
.circle-nav {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Ring layout for circles around the hero content */
.circle-nav.ring-layout {
    position: relative;
    margin: 0 auto 60px auto; /* extra space to clear the heading */
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: calc(2 * var(--radius) + 60px);  /* ring diameter + circle diameter */
    height: calc(2 * var(--radius) + 60px); /* ensure the whole ring is inside the box */
    display: block;
    z-index: 3;
    pointer-events: none; /* allow clicks only on circles */
}

.circle-nav.ring-layout .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    pointer-events: auto;
}

/* Place 8 circles evenly around a ring using rotate/translate trick */
.circle-nav.ring-layout { --radius: 160px; --offset-angle: -22.5deg; }
.circle-nav.ring-layout .circle {
    transform: translate(-50%, -50%) rotate(calc(var(--angle) + var(--offset-angle))) translate(var(--radius)) rotate(calc((var(--angle) + var(--offset-angle)) * -1));
    animation: ringBob 6s ease-in-out infinite; /* subtle idle float without changing position */
    will-change: transform;
}
.circle-nav.ring-layout .circle:hover {
    transform: translate(-50%, -50%) rotate(calc(var(--angle) + var(--offset-angle))) translate(var(--radius)) rotate(calc((var(--angle) + var(--offset-angle)) * -1));
}
.circle-nav.ring-layout .circle:nth-child(1) { --angle: 0deg; animation-delay: 0s; }
.circle-nav.ring-layout .circle:nth-child(2) { --angle: 45deg; animation-delay: 0.2s; }
.circle-nav.ring-layout .circle:nth-child(3) { --angle: 90deg; animation-delay: 0.4s; }
.circle-nav.ring-layout .circle:nth-child(4) { --angle: 135deg; animation-delay: 0.6s; }
.circle-nav.ring-layout .circle:nth-child(5) { --angle: 180deg; animation-delay: 0.8s; }
.circle-nav.ring-layout .circle:nth-child(6) { --angle: 225deg; animation-delay: 1s; }
.circle-nav.ring-layout .circle:nth-child(7) { --angle: 270deg; animation-delay: 1.2s; }
.circle-nav.ring-layout .circle:nth-child(8) { --angle: 315deg; animation-delay: 1.4s; }

@keyframes ringBob {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + var(--offset-angle))) translate(var(--radius)) rotate(calc((var(--angle) + var(--offset-angle)) * -1)) scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + var(--offset-angle))) translate(var(--radius)) rotate(calc((var(--angle) + var(--offset-angle)) * -1)) scale(1.04);
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    }
}

/* Adjust tooltips for ring layout: show below circle */
.circle-nav.ring-layout .circle span {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: -35px;
    top: auto;
}

/* Floating layout (unused now but kept for potential future): remove display by default */
.circle-nav.floating-layout { display: none; }

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.circle:hover {
    /* keep visual emphasis without moving ring position */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Ring hover: expand bubble and show label inside */
.circle-nav.ring-layout .circle:hover {
    width: 120px;
    height: 120px;
    z-index: 5;
}

.circle span {
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 70px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.circle:hover span {
    opacity: 1;
}

/* On ring hover, center the text inside the expanded bubble */
.circle-nav.ring-layout .circle:hover span {
    position: static;
    right: auto;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    background: transparent;
    padding: 0;
    color: #000;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
}

/* Circle Colors inspired by Spark logo */
.about-circle {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
}

.work-circle {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.services-circle {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.values-circle {
    background: linear-gradient(135deg, #ffd93d, #ffb347);
}

.process-circle {
    background: linear-gradient(135deg, #a8e6cf, #7fcdcd);
}

.faq-circle {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.contact-circle {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.testimonials-circle {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

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

/* Main Content */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.02"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="50" cy="50" r="2" fill="url(%23g)"/></svg>') repeat;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-content {
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6)); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlide 1s ease-out;
}

@keyframes titleSlide {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    margin-bottom: 40px;
    animation: subtitleSlide 1s ease-out 0.3s both;
}

@keyframes subtitleSlide {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.cta-button {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5); }
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.6);
}

/* Content Sections */
.content-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-content h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
    color: #e0e0e0;
}

/* Work Grid */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.work-grid .work-item:nth-child(4) {
    grid-column: 2;
}

.work-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.work-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.work-item h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.company-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 15px;
}

blockquote {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #e0e0e0;
}

.testimonial-author {
    color: #ccc;
    font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Place 3 items on the first row and 2 centered on the next row (between columns) */
.services-grid .service-item:nth-child(1) { grid-column: 1 / span 2; }
.services-grid .service-item:nth-child(2) { grid-column: 3 / span 2; }
.services-grid .service-item:nth-child(3) { grid-column: 5 / span 2; }
.services-grid .service-item:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .service-item:nth-child(5) { grid-column: 4 / span 2; }

.service-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.service-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-item h3 {
    color: #00ff88;
    font-size: 1.1rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.values-grid .value-item:nth-child(4) {
    grid-column: 2;
}

.value-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.value-item h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.process-step:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.process-step h3 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.calendly-section, .contact-form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.calendly-section h3, .contact-form-section h3 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.calendly-button {
    display: inline-block;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.calendly-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.overlay.active .overlay-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: #00ff88;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .circle-nav {
        right: 15px;
        gap: 15px;
    }
    /* Ring size and position on tablets */
    .circle-nav.ring-layout {
        margin-bottom: 30px;
        --radius: 120px;
        width: calc(2 * var(--radius) + 60px);
        height: calc(2 * var(--radius) + 60px); /* ensures no clipping of top/bottom bubbles */
    }
    
    .circle {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid .work-item:nth-child(4) {
        grid-column: 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid .service-item:nth-child(1),
    .services-grid .service-item:nth-child(2),
    .services-grid .service-item:nth-child(3),
    .services-grid .service-item:nth-child(4),
    .services-grid .service-item:nth-child(5) {
        grid-column: 1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid .value-item:nth-child(4) {
        grid-column: 1;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Keep a compact ring of circles centered above the title (logo) */
    .circle-nav {
        right: auto;
    }
    .circle-nav.ring-layout {
        position: relative;
        display: block;
        --radius: 90px;
        width: calc(2 * var(--radius) + 60px);
        height: calc(2 * var(--radius) + 60px);
        transform: none;
        margin: 8px auto 10px;
        padding: 0;
        overflow: visible;
        pointer-events: none; /* clicks only on circles */
    }
    .circle-nav.ring-layout .circle {
        position: absolute;
        transform: translate(-50%, -50%) rotate(calc(var(--angle) + var(--offset-angle))) translate(var(--radius)) rotate(calc((var(--angle) + var(--offset-angle)) * -1));
        animation: ringBob 6s ease-in-out infinite;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        padding: 0;
    }
    /* Hide labels to avoid overlap on small screens */
    .circle-nav.ring-layout .circle span {
        display: none;
    }
    /* Disable hover expansion on small phones */
    .circle-nav.ring-layout .circle:hover {
        width: 42px;
        height: 42px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-logo {
        width: 150px;
    }
    
    .content-section {
        padding: 60px 15px;
    }
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
