/* CORECOMET PREMIUM STYLESHEET - V2 (Fixed Layout & Multi-Page) */
:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(16, 24, 39, 0.7);
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #00f2fe;
    --secondary: #4facfe;
    --accent: #8b5cf6;
    --glow-primary: rgba(0, 242, 254, 0.4);
    --glow-secondary: rgba(139, 92, 246, 0.4);
    --border-light: rgba(255, 255, 255, 0.1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* CUSTOM CURSOR */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--glow-secondary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

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

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.nav-links li a:hover,
.nav-links li a.active-link {
    color: var(--primary);
}

/* LAYOUT UTILS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 100px 0;
}

.page-header-padding {
    padding: 150px 0 80px;
}

.text-center {
    text-align: center;
}

.flex-row {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

.space-between {
    justify-content: space-between;
}

.mt-50 {
    margin-top: 50px;
}

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

.dark-bg {
    background: #06090e;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--glow-secondary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--glow-primary);
    bottom: 100px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -40px);
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D CUBE ANIMATION */
.hero-3d-visual {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.cube-container {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 15s infinite linear;
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(16, 24, 39, 0.4);
    border: 2px solid var(--primary);
    box-shadow: 0 0 15px var(--glow-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--text-main);
    backdrop-filter: blur(3px);
}

.front {
    transform: translateZ(75px);
}

.back {
    transform: rotateY(180deg) translateZ(75px);
}

.right {
    transform: rotateY(90deg) translateZ(75px);
}

.left {
    transform: rotateY(-90deg) translateZ(75px);
}

.top {
    transform: rotateX(90deg) translateZ(75px);
    color: var(--accent);
    border-color: var(--accent);
}

.bottom {
    transform: rotateX(-90deg) translateZ(75px);
    color: var(--accent);
    border-color: var(--accent);
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* CONTACT MODAL / DETAILS */
.contact-container {
    position: relative;
    display: inline-block;
}

.contact-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
    width: max-content;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.2);
    backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
}

.contact-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-dropdown a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    transition: background 0.3s, color 0.3s;
    font-size: 1rem;
}

.contact-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.contact-dropdown a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: var(--accent);
}

/* CARDS & GLASSMORPHISM */
.vision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.vision-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.vision-card p {
    color: var(--text-muted);
}

/* CAROUSEL GRID (MULTI-PAGE USAGE) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
}

.project-image {
    height: 150px;
    background: linear-gradient(135deg, #1f2937, #111827);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

.project-card:hover .project-image {
    color: var(--primary);
}

.project-info {
    padding: 20px;
}

/* HUB PAGE LINK CARDS */
.hub-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.hub-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(16, 24, 39, 0.9), rgba(16, 24, 39, 0.5));
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s ease;
}

.hub-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 242, 254, 0.1);
}

.hub-card h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.hub-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hub-card span {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hub-card:hover span i {
    transform: translateX(5px);
    transition: transform 0.3s;
}

/* TABLE STYLING FOR CONTENT */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-family: var(--font-heading);
}

/* ROADMAP TIMELINE */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-dark);
    border: 4px solid var(--primary);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    border-color: var(--accent);
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.phase {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* FOOTER */
.footer {
    padding: 100px 0 30px;
    background: linear-gradient(to bottom, transparent, #030508);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 50px;
}

/* ANIMATIONS (SCROLL REVEAL) 
   Fixed to default to opacity: 1 and use fallback if JS fails. 
   We will initialize opacity: 0 in JS rather than CSS, to prevent missing content if intersection observer fails.
*/
.js-reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.js-slide-up {
    transform: translateY(30px);
}

.js-pop-in {
    transform: scale(0.95);
}

.js-active {
    opacity: 1 !important;
    transform: translate(0) scale(1) rotate(0) !important;
}

/* MEDIA QUERRIES */
@media (max-width: 992px) {

    .hero-container,
    .flex-row {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .projects-grid,
    .hub-links-grid,
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 22px !important;
        right: auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .projects-grid,
    .hub-links-grid,
    .vision-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
    }
}