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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Smooth page load animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeIn 0.6s ease-in-out forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Cross-page fade transition */
body {
    transition: opacity 0.25s ease-in-out;
}

body.page-exit {
    opacity: 0;
}

/* Ensure all text elements use the new font */
h1, h2, h3, h4, h5, h6,
p, a, span, li, button, input, textarea, select {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(25px);
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.1);
}

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

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

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.nav-logo h2 {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: #00ffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #0080ff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

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

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-5px);
}

.dropdown:hover .dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

.dropdown:hover .dropdown-item:nth-child(1) { transition-delay: 0.1s; }
.dropdown:hover .dropdown-item:nth-child(2) { transition-delay: 0.15s; }
.dropdown:hover .dropdown-item:nth-child(3) { transition-delay: 0.2s; }

.dropdown-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding-left: 25px;
}

/* Mobile Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(26, 26, 46, 0.8)), url('assets/bluecore_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #00ffff, #0080ff, #8000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #00ffff;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* AI Production Visual */
.hero-image {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 440px;
    height: 440px;
    z-index: 1;
}

.ai-production-visual {
    width: 100%;
    height: 100%;
    position: relative;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
}

.production-line {
    position: relative;
    width: 100%;
    height: 100%;
}

.conveyor-belt {
    position: absolute;
    bottom: 30%;
    left: 10%;
    width: 300px;
    height: 20px;
    background: linear-gradient(90deg, #444, #666, #444);
    border-radius: 10px;
    animation: conveyorMove 3s linear infinite;
}

.robot-arm {
    position: absolute;
    top: 70%;
    right: 50%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #516c9c, #355e73a5, transparent);
    border-radius: 10px;
    transform: rotate(35deg);
    animation: robotMove 4s ease-in-out infinite;
}
.neural-network {
    position: absolute;
    top: 70%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
    border-radius: 50%;
    animation: neuralPulse 3s ease-in-out infinite;
}

.cerchio1 {
    position: relative;
    top: 50px;
    left: 150px;
    width: 300px;
    height: 300px;
    background: transparent;
    border-radius: 50%;
    border: 10px solid #00ffff;
    animation: scanPulse 2s ease-in-out infinite;
}

.cerchio2 {
    position: relative;
    top: -150px;
    left: 200px;
    width: 200px;
    height: 200px;
    background: transparent;
    border-radius: 50%;
    border: 10px solid #00ffff;
    animation: scanPulse 2s ease-in-out infinite;
}

.cerchio3 {
    position: relative;
    top: -250px;
    left: 250px;
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    border: 10px solid #00ffff;
    animation: scanPulse 2s ease-in-out infinite;
}

.ai-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Concentric Logo - white rings fading from small to large */
.logo-circles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.logo-circles .ring {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transform-origin: 50% 100%;
    border-radius: 50%;
    border: 8px solid #ffffff;
    box-sizing: border-box;
    opacity: 0;
    animation: ringLoop 5.5s ease-in-out infinite;
}

/* Sizes from smallest (r1) to largest (r7) */
.logo-circles .r1 { width: 60px;  height: 60px;  animation-delay: 0s; }
.logo-circles .r2 { width: 100px; height: 100px; animation-delay: 0.35s; }
.logo-circles .r3 { width: 150px; height: 150px; animation-delay: 0.7s; }
.logo-circles .r4 { width: 200px; height: 200px; animation-delay: 1.05s; }
.logo-circles .r5 { width: 260px; height: 260px; animation-delay: 1.4s; }
.logo-circles .r6 { width: 320px; height: 320px; animation-delay: 1.75s; }
/*.logo-circles .r7 { width: 380px; height: 380px; animation-delay: 2.1s; }*/

/* Odd rings thinner than even rings */
.logo-circles .r1,
.logo-circles .r3,
.logo-circles .r5,
.logo-circles .r7 { border-width: 5px; }

.logo-circles .r2,
.logo-circles .r4,
.logo-circles .r6 { border-width: 9px; }

@keyframes ringLoop {
    0% { opacity: 0; transform: translateX(-50%) scale(1); }
    20% { opacity: 1; transform: translateX(-50%) scale(1); }
    70% { opacity: 1; transform: translateX(-50%) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) scale(1); }
}



@keyframes robotMove {
    0%, 100% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
}

@keyframes conveyorMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes neuralPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Section Styles */
section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: #888888;
    max-width: 600px;
    margin: 0 auto;
}

.title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.title-with-logo h2 {
    margin: 0;
    white-space: nowrap;
}

.about-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
    transition: transform 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.03);
}

/* Unified Image Block Styles - For all sections */
.image-block {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    padding: 1.5rem;
    overflow: hidden;
    height: 100%; /* Take full height */
}

.image-block img {
    max-width: 95%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 8px 25px rgba(0, 255, 255, 0.15));
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.image-block img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 10px 30px rgba(0, 255, 255, 0.2));
}

/* Feature Cards Grid - Updated Animation */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    
    /* Animation properties - starts hidden */
    opacity: 0;
    transform: translateX(100px) rotateY(90deg);
}

.feature-card.animate {
    animation: slideInRotate 0.8s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-3px) rotate(0);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #0080ff, #8000ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card-icon {
    font-size: 2rem;
    color: #00ffff;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    overflow: hidden;
}

.feature-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1);
    color: #00ffff;
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #00ffff;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    width: 100%;
}

.feature-card p {
    color: #aaaaaa;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Staggered animation delays for each feature card */
.feature-card.animate:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card.animate:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card.animate:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card.animate:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-card.animate:nth-child(5) {
    animation-delay: 0.5s;
}

.feature-card.animate:nth-child(6) {
    animation-delay: 0.6s;
}

/* Keyframes for slide in and rotate animation */
@keyframes slideInRotate {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(90deg);
    }
    70% {
        opacity: 1;
        transform: translateX(-10px) rotateY(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

/* Alternative more pronounced rotation effect */
@keyframes slideSpinIn {
    0% {
        opacity: 0;
        transform: translateX(150px) rotate(180deg);
    }
    60% {
        opacity: 1;
        transform: translateX(-15px) rotate(-15deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

/* Apply the spin animation if you prefer more rotation */
.feature-card.spin-animation.animate,
.feature-item.spin-animation.animate {
    animation-name: slideSpinIn;
}

/* About Vision Section */
.about-vision {
    background: #0a0a0a;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Vision Image - Made larger */
.vision-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

/* About Vision Section - Fixed Grid Structure */
.about-vision .grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; /* Changed from 1fr 1fr to auto auto */
    gap: 1.5rem;
    align-items: start;
}

.about-vision .grid-text-block:first-child {
    grid-column: 1;
    grid-row: 1;
}

.about-vision .grid-image-block {
    grid-column: 2;
    grid-row: 1 / span 1; /* Changed from span 2 to span 1 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
}

/* Empty grid cell */
.about-vision .grid-text-block:last-child:empty {
    grid-column: 1;
    grid-row: 2;
    padding: 0;
    margin: 0;
    height: 0;
    min-height: 0;
}

/* Quote container spans both columns */
.quote-container {
    grid-column: 1 / -1; /* Span all columns */
    grid-row: 3; /* Move to third row */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 0.1rem; /* Minimal margin */
    width: 100%;
}

.vision-quote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #00ffff;
    padding: 15px 20px;
    margin: 0; /* Remove all margins */
    position: relative;
    flex: 1;
}

.vision-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #3e94df;
    margin: 0 0 1rem 0;
    font-style: normal;
}

.vision-quote p:last-child {
    margin-bottom: 0;
}

/* Remove the aggressive spacing reduction since we fixed the grid structure */
.about-vision .grid-text-block:last-child:not(:empty) {
    margin-top: 0;
    padding-top: 0;
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    .about-vision .grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .about-vision .grid-text-block:first-child,
    .about-vision .grid-image-block,
    .about-vision .grid-text-block:last-child:empty,
    .quote-container {
        grid-column: 1;
    }
    
    .about-vision .grid-text-block:first-child {
        grid-row: 1;
    }
    
    .about-vision .grid-image-block {
        grid-row: 2;
    }
    
    .about-vision .grid-text-block:last-child:empty {
        grid-row: 3;
        display: none; /* Hide empty cell on mobile */
    }
    
    .quote-container {
        grid-row: 4;
        flex-direction: column;
        margin-top: 0.1rem;
    }
    
    .vision-logo {
        margin: 1rem 0 0 0;
        align-self: flex-start;
    }
}

.logo-below-image {
    width: 120px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo-below-image:hover {
    opacity: 1;
}

.vision-quote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #00ffff;
    padding: 15px 20px;
    margin: 0.1rem 0 0; /* Reduced top margin */
    position: relative;
    flex: 1;
    order: 1; /* Keep quote on left side */
}

.vision-quote p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ffffff;
    margin: 0 0 1rem 0;
    font-style: normal;
}

.vision-quote p:last-child {
    margin-bottom: 0;
    position: relative; /* For closing quote */
}

.vision-quote::before {
    content: '"'; 
    font-size: 5rem;
    color: #398bae;
    position: absolute;
    left: 10px;
    top: -22px;
    font-family: serif;
    line-height: 1;
}

/* Add closing quote */
.vision-quote::after {
    content: '"';
    font-size: 5rem;
    color: #398bae;
    position: absolute;
    right: 20px;
    bottom: -25px;
    font-family: serif;
    line-height: 1;
}

/* About Vision Section - Aggressive Spacing Reduction */
.about-vision .grid-text-block:last-child {
    grid-column: 1;
    grid-row: 2;
    margin-top: -1rem; /* More negative margin to pull quote even closer */
    padding-top: 0;
}

/* About Section */
.about {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #00ffff;
    font-weight: 700;
    text-align: center;
}

.about-text p {
    font-size: 1.15rem;
    color: #cccccc;
    margin-bottom: 3.5rem;
    line-height: 1.9;
    text-align: justify;
    max-width: 100%;
}

.highlight {
    color: #00ffff;
    font-weight: 700;
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Improved Grid System */
.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    align-items: start; /* Align items to top */
}

.grid-text-block {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Start content from top */
}

.grid-text-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.gray-text {
    color: #888888;
}

.grid-text-block p {
    font-size: 1.05rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

/* Improved 2-column vertical grid */
.grid-2col-vertical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start; /* Align items to top */
}

.grid-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grid-header {
    text-align: left;
    margin-bottom: 0.5rem;
}

.grid-subtitle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #00ffff;
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.grid-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.grid-tagline {
    font-size: 1.05rem;
    color: #cccccc;
    margin: 0;
    line-height: 1.6;
}

.grid-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.grid-item {
    background: transparent;
    padding: 0;
    border: none;
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateX(3px);
}

.grid-item-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.grid-item-description {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.grid-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    position: relative;
    height: 100%;
}

/* About Section Features Grid - Updated Animation */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    justify-items: center;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 240px;
    
    /* Animation properties - starts hidden */
    opacity: 0;
    transform: translateX(100px) rotateY(90deg);
}

.feature-item.animate {
    animation: slideInRotate 0.8s ease-out forwards;
}

.feature-item:hover {
    transform: translateY(-3px) rotate(0);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 0 6px 25px rgba(0, 255, 255, 0.15);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #0080ff, #8000ff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #00ffff;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.feature-item:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.feature-item p {
    color: #aaaaaa;
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

/* Staggered animation delays for feature items */
.feature-item.animate:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-item.animate:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-item.animate:nth-child(3) {
    animation-delay: 0.6s;
}

/* Product Sections */
.product-section {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.product-section.alt {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a0a 100%);
}

.omnicore-section {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 80px 0;
}

.omnicore-header {
    text-align: left;
    margin-bottom: 0.5rem;
}

.omnicore-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #00ffff;
    margin: 0;
    letter-spacing: 1.5px;
}

/* Intelligence Redefined Section */
.intelligence-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    position: relative;
}

.intelligence-section::before {
    content: '↓';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #00ffff;
    font-size: 1.5rem;
    opacity: 0.4;
    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes scrollHint {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(5px);
    }
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start; /* Align items to top */
}

.product-showcase.reverse {
    grid-template-columns: 1fr 1fr;
}

.product-image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: flex-start; /* Align to top */
    justify-content: center;
}

.pc-visual {
    width: 300px;
    height: 250px;
    position: relative;
}

.pc-case {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    border: 2px solid #444;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.pc-case.compact {
    height: 200px;
    width: 250px;
}

.pc-screen {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 120px;
    background: linear-gradient(135deg, #001122, #003366);
    border-radius: 8px;
    border: 1px solid #00ffff;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.pc-ports {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 60px;
    background: #333;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.camera-module {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #00ffff, #0080ff);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.vision-processor {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    height: 60px;
    background: linear-gradient(135deg, #003366, #001122);
    border-radius: 8px;
    border: 1px solid #00ffff;
}

.led-strip {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: linear-gradient(90deg, #00ffff, #0080ff, #00ffff);
    border-radius: 2px;
    animation: ledFlow 2s linear infinite;
}

@keyframes ledFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.product-details h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #00ffff;
}

.spec-list {
    list-style: none;
    margin-bottom: 2rem;
}

.spec-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #cccccc;
}

.spec-list i {
    color: #00ffff;
    margin-right: 1rem;
    width: 20px;
}

.product-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    font-size: 0.9rem;
    font-weight: 500;
}

/* FAQ Section */
.faq {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 255, 255, 0.3);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
}

.faq-question i {
    color: #00ffff;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #aaaaaa;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #00ffff;
}

.contact-info p {
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    color: #00ffff;
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #aaaaaa;
    margin: 0;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

/* Footer */
.footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00ffff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00ffff;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: #00ffff;
    margin-right: 0.5rem;
    width: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666666;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        margin: 5px 0;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        padding: 10px 0 10px 20px;
    }

    .dropdown-arrow {
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 992px) {
    .vision-content {
        flex-direction: column;
    }
    
    .about-vision .grid-2x2 {
        grid-template-columns: 1fr;
    }
    
    .about-vision .grid-text-block,
    .about-vision .grid-image-block:first-of-type {
        grid-column: 1;
        grid-row: auto;
    }
    
    .quote-container {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 0.1rem; /* Minimal margin on mobile */
    }
    
    .vision-logo {
        margin: 1rem 0 0 0;
        order: 2; /* Keep logo below on mobile */
        align-self: flex-end; /* Align logo to right on mobile */
    }
    
    .vision-quote {
        order: 1;
        width: 100%;
        margin-top: 0; /* Remove margin completely on mobile */
    }
    
    .vision-image {
        max-height: 350px;
    }
    
    .vision-text {
        padding: 40px;
    }
    
    .vision-text h3 {
        font-size: 1.8rem;
    }
    
    .vision-text p {
        font-size: 1rem;
    }
    
    .about-vision .grid-text-block:last-child {
        margin-top: -0.5rem; /* Keep negative margin on mobile too */
    }
}

@media (max-width: 768px) {
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.25rem;
    }
    
    .omnicore-header {
        text-align: center;
        margin-bottom: 0.8rem;
    }
    
    .omnicore-header h2 {
        font-size: 1.8rem;
    }
    
    .grid-text-block h3 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .grid-text-block p {
        text-align: center;
    }
    
    .image-block img {
        max-height: 350px;
    }
    
    .grid-2col-vertical {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .grid-header {
        text-align: center;
    }
    
    .grid-title {
        font-size: 1.5rem;
    }
    
    .grid-items {
        gap: 1.5rem;
    }
    
    .grid-visual-image {
        max-height: 250px;
    }
    
    .intelligence-section::before {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        min-height: auto;
        padding: 1.5rem 1.2rem;
        max-width: 100%;
    }
    
    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
        min-height: 250px;
    }
    
    .feature-card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.2rem;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .feature-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .grid-2x2 {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
    
    .omnicore-header {
        text-align: left;
        margin-bottom: 0.8rem;
    }
    
    .omnicore-header h2 {
        font-size: 1.9rem;
    }
    
    .image-block img {
        max-height: 420px;
    }
    
    .grid-2col-vertical {
        gap: 3rem;
    }
    
    .grid-header {
        text-align: left;
    }
    
    .grid-title {
        font-size: 1.8rem;
    }
    
    .grid-visual-image {
        max-height: 350px;
    }
    
    .feature-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .pc-visual {
        width: 250px;
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}