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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6b7280;
    --bg-light: #f5f5f5;
    --bg-card: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
    --success-color: #10b981;
    --accent-color: #8b5cf6;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
    
    /* Color accents */
    --color-blue: #3b82f6;
    --color-green: #10b981;
    --color-orange: #f97316;
    --color-purple: #8b5cf6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    font-size: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: #1a202c;
    padding: 8rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Network Animation Background */
.network-animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: #e5e7eb;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-alt {
    background-color: var(--bg-light);
}

.section h2 {
    font-size: 2.75rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section h3 {
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.section ul {
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.section ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.service-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    transform: skewX(-25deg);
    opacity: 0;
}

.service-card:nth-child(1)::before {
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(59, 130, 246, 0.6) 50%,
        rgba(139, 92, 246, 0.6) 55%,
        rgba(236, 72, 153, 0.6) 60%,
        transparent 70%,
        transparent 100%
    );
}

.service-card:nth-child(2)::before {
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(16, 185, 129, 0.6) 50%,
        rgba(59, 130, 246, 0.6) 55%,
        rgba(139, 92, 246, 0.6) 60%,
        transparent 70%,
        transparent 100%
    );
}

.service-card:nth-child(3)::before {
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(249, 115, 22, 0.6) 50%,
        rgba(236, 72, 153, 0.6) 55%,
        rgba(139, 92, 246, 0.6) 60%,
        transparent 70%,
        transparent 100%
    );
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card.shimmer-active::before {
    animation: shimmer 1.2s ease-in-out forwards;
}

.service-card.shimmer-fadeout::before {
    animation: shimmer 1.2s ease-in-out forwards, shimmerFadeOut 0.5s ease-out forwards;
}

@keyframes shimmer {
    0% {
        left: -150%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 1;
    }
}

@keyframes shimmerFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.service-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Not Services */
.not-services {
    margin-top: 3rem;
}

.not-service-item {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--text-light);
    margin-bottom: 0.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.not-service-item:hover {
    opacity: 1;
}

.not-service-item strong {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Tooltip */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--text-light);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: normal;
    width: 300px;
    max-width: 90vw;
    line-height: 1.5;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tooltip-icon:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-dark);
    z-index: 1000;
}

/* Directions Grid */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.direction-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-left-color 0.3s ease;
    border: 1px solid var(--border-color);
    border-left: 20px solid var(--border-color);
}

.direction-card:nth-child(1):hover {
    border-left-color: var(--color-blue);
}

.direction-card:nth-child(2):hover {
    border-left-color: var(--color-green);
}

.direction-card:nth-child(3):hover {
    border-left-color: var(--color-orange);
}

.direction-card:nth-child(4):hover {
    border-left-color: var(--color-purple);
}

.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.direction-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: none;
}

.direction-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.direction-card p {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.direction-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.direction-stats span {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: none;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    color: var(--primary-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.modal-close {
    background: var(--bg-light);
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.modal-nav {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 3rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.modal-nav-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: var(--text-medium);
}

.modal-nav-btn:hover {
    background: var(--bg-white);
    color: var(--text-dark);
}

.modal-nav-btn.active {
    background: var(--text-dark);
    color: white;
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    flex: 1;
}

/* Modal Content Styles */
.modal-body h3 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

.experience-badge {
    display: block;
    color: var(--text-medium);
    padding: 0;
    font-weight: 400;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.overview-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.overview-box h4 {
    margin-top: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.case-study {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
}

.case-study.highlighted {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.highlight-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.highlight-badge.blue {
    background: #dbeafe;
    color: #1e40af;
}

.highlight-badge.green {
    background: #d1fae5;
    color: #065f46;
}

.highlight-badge.orange {
    background: #ffedd5;
    color: #9a3412;
}

/* Tech Stack Tags */
.tech-stack {
    margin: 2rem 0;
}

.tech-stack h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #d1d5db;
    color: var(--text-dark);
    padding: 0.6rem 1.1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
}

/* Collapsible Details */
.case-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

.badge {
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.duration {
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
}

.features {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.features h4 {
    margin-top: 0;
    color: var(--text-dark);
}

.results {
    margin: 2rem 0;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.result-item {
    background: var(--success-color);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    text-align: left;
}

.result-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.result-item p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

.project-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
}

.project-card h4 {
    margin-top: 0;
    color: var(--text-dark);
    font-size: 1.4rem;
    font-weight: 700;
}

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

.native-platform {
    margin: 3rem 0;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.native-platform:first-child {
    border-top: none;
    padding-top: 0;
}

/* Footer */
.footer {
    background: #1a202c;
    color: #9ca3af;
    padding: 4rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    color: #9ca3af;
}

/* Project Links */
.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* VENUS Brands */
.venus-brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.brand-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.brand-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.brand-card p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.brand-card .project-links {
    margin-top: 0.75rem;
}

/* Image Carousel */
.image-carousel {
    margin: 2rem 0;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    background: #f8f8f8;
    max-height: 600px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-btn.prev {
    left: 16px;
}

.carousel-btn.next {
    right: 16px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot:hover {
    background: var(--text-light);
}

.carousel-dots .dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .directions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        display: none;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.25rem;
    }

    /* Reduce animation opacity on mobile for better text readability */
    .network-animation-bg {
        opacity: 0.25;
    }

    .section {
        padding: 4rem 0;
    }

    .section h2 {
        font-size: 2.5rem;
    }

    .section h3 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .directions-grid {
        grid-template-columns: 1fr;
    }

    .direction-card {
        padding: 2rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.75rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h3 {
        font-size: 1.5rem;
    }

    .modal-nav {
        padding: 1rem 1.5rem;
    }

    .modal-nav-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .modal-header {
        padding: 1.25rem;
    }

    .modal-body {
        padding: 1.25rem;
    }
}
