/* 
==============================================
CORE VARIABLES & RESET
==============================================
*/
:root {
    --bg-color: #eef0f5;
    --surface-color: #eef0f5;

    /* Neomorphism Light/Shadows */
    --shadow-light: #ffffff;
    --shadow-dark: #d1d9e6;
    --shadow-dark-intensity: rgba(163, 177, 198, 0.6);
    --shadow-light-intensity: rgba(255, 255, 255, 0.8);

    /* Typography */
    --font-sans: 'Manrope', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --text-main: #2d3142;
    --text-muted: #7c839a;

    /* Accents */
    --accent-blue: #00b09b;
    --accent-purple: #96c93d;
    --gemini-gradient: linear-gradient(135deg, #96c93d 0%, #00b09b 100%);
    --gemini-gradient-text: linear-gradient(90deg, #96c93d 0%, #00b09b 100%);

    /* Metrics */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-full: 999px;
    --container-width: 1440px;

    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--shadow-dark);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-color);
}

/* 
==============================================
NEOMORPHIC UTILITIES
==============================================
*/

/* Extruded Surface (Standard Card) */
.neo-out {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow:
        12px 12px 24px var(--shadow-dark),
        -12px -12px 24px var(--shadow-light);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

/* White Background Context - Cards become Gray */
section[style*="background: #fff"] .neo-out,
section[style*="background: white"] .neo-out,
section[style*="background:#fff"] .neo-out,
section[style*="background:white"] .neo-out,
.bg-white .neo-out,
.bg-gray .neo-out {
    background: var(--surface-color);
}

.neo-out:hover {
    box-shadow:
        18px 18px 30px var(--shadow-dark),
        -18px -18px 30px var(--shadow-light);
    transform: translateY(-2px);
}

/* Inset Surface (Pressed/Container) */
.neo-in {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow:
        inset 8px 8px 16px var(--shadow-dark),
        inset -8px -8px 16px var(--shadow-light);
}

/* Convex Surface (Buttons) */
.neo-convex {
    background: linear-gradient(145deg, #ffffff, #d6d8dd);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

/* Concave Surface */
.neo-concave {
    background: linear-gradient(145deg, #d6d8dd, #ffffff);
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

/* Glow Border */
.glow-border {
    position: relative;
    z-index: 1;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gemini-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    filter: blur(8px);
}

.glow-border:hover::before {
    opacity: 0.4;
}

/* Typography Styles */
.display-text {
    font-size: clamp(4rem, 8vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.gradient-text {
    background: var(--gemini-gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.p-lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 700px;
}

.p-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
}

/* Layout containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.section {
    padding: clamp(20px, 4vh, 40px) 0;
    position: relative;
    scroll-margin-top: 120px;
}

.section-header {
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 20px;
    }
}

.compatible-model-img {
    max-height: 200px;
    width: auto;
}

@media (max-width: 768px) {
    .compatible-model-img {
        max-height: 90px;
    }
}

.grid {
    display: grid;
    gap: clamp(20px, 4vw, 60px);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1280px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {

    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* 
==============================================
UI COMPONENTS
==============================================
*/

/* Navigation */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(0px);
}

#nav.scrolled {
    background: rgba(238, 240, 245, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    z-index: 1002;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gemini-gradient);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu (Default Hidden) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 1002;
    gap: 6px;
    padding: 0;
    border-radius: 12px;
    /* neo-outに合わせる */
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-only-nav-item {
    display: none;
}

.desktop-only-btn {
    display: inline-flex;
}

/* Mobile Menu Overlay */
@media (max-width: 768px) {
    .desktop-only-btn {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Increased transparency and added gradient for style */
        background: rgba(238, 240, 245, 0.65);
        background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(238, 240, 245, 0.4) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        clip-path: circle(0% at 100% 0%);
        transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
        pointer-events: none;
        z-index: 1001;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0%);
        pointer-events: all;
    }

    .nav-link {
        font-size: 1.3rem;
        font-weight: 700;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        color: var(--text-main);
        letter-spacing: 0.05em;
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Delays */
    .nav-links.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active .nav-link:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active .nav-link:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active .nav-link:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active .nav-link:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links.active .nav-link:nth-child(6) {
        transition-delay: 0.35s;
    }

    .mobile-only-nav-item {
        display: inline-flex !important;
        margin-top: 30px;
        padding: 14px 40px;
        background: var(--text-main);
        color: #fff !important;
        border-radius: 50px;
        font-size: 1rem;
        box-shadow: 0 10px 25px rgba(45, 49, 66, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-only-nav-item:active {
        transform: scale(0.95);
    }

    .mobile-only-nav-item::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-blue);
    color: #fff;
    box-shadow:
        8px 8px 16px var(--shadow-dark),
        -8px -8px 16px var(--shadow-light);
}

.btn-neo {
    color: var(--text-main);
    transition: all 0.3s ease;
}

.btn-neo:hover {
    transform: translateY(-2px);
    color: var(--accent-blue);
    box-shadow:
        6px 6px 12px var(--shadow-dark),
        -6px -6px 12px var(--shadow-light);
}

.btn-neo:active {
    box-shadow:
        inset 4px 4px 8px var(--shadow-dark),
        inset -4px -4px 8px var(--shadow-light);
    background: var(--surface-color);
}

/* Custom Cursor */
#cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
    display: none;
    /* Hidden on touch */
}

@media (hover: hover) and (pointer: fine) {
    #cursor {
        display: block;
    }
}

#cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: invert(1);
}

/* 
==============================================
SECTIONS STYLING
==============================================
*/

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-btns {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

/* WebGL Canvas Container */
#webgl-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    mask-image: linear-gradient(to right, transparent, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%);
}

/* Hero Gradient Background */
.hero-gradient-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vmax;
    height: 120vmax;
    background: conic-gradient(from 0deg at 50% 50%,
            rgba(255, 255, 255, 0.8) 0%,
            rgba(240, 255, 240, 0.6) 25%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(240, 240, 255, 0.6) 75%,
            rgba(255, 255, 255, 0.8) 100%);
    filter: blur(80px);
    border-radius: 50%;
    /* animation: rotate-bg 20s linear infinite; */
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes rotate-bg {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Feature Cards */
.feature-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    gap: 12px;
}

.feature-card h3 {
    margin: 4px 0;
    font-size: 1.1rem;
}

.feature-card img {
    margin-bottom: 10px;
}

.feature-card .p-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3,
.feature-card p,
.feature-card button {
    position: relative;
    z-index: 1;
}

/* Deep Dive Sections */
.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-content {
    flex: 1;
}

.split-visual {
    flex: 1;
    height: 400px;
    position: relative;
}

@media (max-width: 900px) {
    .split-section {
        flex-direction: column-reverse;
    }

    .split-section.reverse {
        flex-direction: column;
    }

    .split-visual {
        width: 100%;
        height: 400px;
    }
}

/* Project Visuals */
.project-visual {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-sim {
    background: #1e1e1e;
    padding: 40px;
    width: 80%;
    height: 60%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.code-lines {
    width: 100%;
    height: 12px;
    background: #333;
    margin-bottom: 12px;
    border-radius: 4px;
}

.code-lines:nth-child(1) {
    width: 60%;
    background: #569cd6;
}

.code-lines:nth-child(2) {
    width: 80%;
    background: #c586c0;
}

.code-lines:nth-child(3) {
    width: 40%;
    background: #4ec9b0;
}

.project-card {
    position: absolute;
    width: 200px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tag {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Orbit Animation */
.orbit {
    position: absolute;
    border: 2px solid rgba(163, 177, 198, 0.3);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

/* Benchmarks Section */
.benchmark-graph {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bar-container {
    display: flex;
    align-items: center;
}

.bar-track {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gemini-gradient);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Footer */
footer {
    padding: 60px 0 40px;
    background: #2d3142;
    color: #eef0f5;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #fff;
}

.footer-col ul li {
    margin-top: 12px;
    margin-bottom: 0;
}

.footer-col ul li a {
    color: #a3b1c6;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--accent-blue);
}

.cta-box {
    text-align: center;
    padding: 60px 0;
    position: relative;
    /* Removed card styling */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.cta-bg-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 176, 155, 0.1) 0%, rgba(238, 240, 245, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    padding: 30px 50px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.5), inset -2px -2px 5px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    display: inline-flex;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.contact-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .cta-actions {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 30px 20px;
    }

    .contact-divider {
        display: none;
    }
}

/* GSAP Reveal Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
}

@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: translateY(60px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display-text {
        font-size: 2rem;
    }

    .p-lead {
        font-size: 1rem;
    }

    #webgl-container {
        width: 100%;
        opacity: 0.3;
        mask-image: none;
    }

    .hero-content {
        text-align: left;
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: flex-start;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: flex-start;
    }

    footer {
        padding-top: 30px;
    }

    footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .desktophidden {
        display: none;
    }

    /* Mobile Spacing Adjustments */
    .split-section {
        gap: 24px;
        /* Reduced from 80px */
        margin-bottom: 40px;
        /* Ensure separation between sections */
        align-items: stretch;
        /* Prevent centering of content */
        text-align: left;
        /* Ensure text is left aligned */
    }

    .section {
        padding: 40px 0;
        /* Ensure vertical rhythm */
    }

    /* Override utility classes if necessary for mobile spacing */
    .pt-0 {
        padding-top: 0 !important;
    }

    .pb-0 {
        padding-bottom: 0 !important;
    }

    /* But ensure split sections have margin if they are stacked */
    .split-section:last-child {
        margin-bottom: 0;
    }

    /* Feature Card Adjustments (Global for Mobile) */
    .feature-card {
        padding: 20px !important;
        gap: 12px !important;
    }

    .feature-card h3 {
        font-size: 1.1rem !important;
        margin: 4px 0 !important;
    }

    .feature-card .p-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    /* News Card Specifics */
    #news .feature-card {
        padding: 16px !important;
        gap: 8px !important;
    }

    #news .feature-card h3 {
        font-size: 1rem !important;
    }

    #news .feature-card .p-text {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    #news .feature-card .date {
        font-size: 0.75rem;
    }

    /* Image Width Adjustment */
    .project-visual img {
        width: 100% !important;
    }

    /* Hero Section Mobile Adjustment */
    #hero {
        height: auto;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
        align-items: flex-start;
    }

    /* Reduce spacing between Hero and News */
    #news {
        padding-top: 0 !important;
    }

    /* Reduce spacing for Contact Section on Mobile */
    #contact {
        padding-top: 0 !important;
    }
}

.icon-svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Utility Classes for Spacing */
.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pt-sm {
    padding-top: clamp(20px, 4vh, 40px) !important;
}

.pb-sm {
    padding-bottom: clamp(20px, 4vh, 40px) !important;
}

/* Specific Spacing for Contact Section */
#contact {
    padding-top: clamp(20px, 5vh, 60px);
}

/* Footer Layout Adjustments */
.footer-info {
    max-width: 600px;
}

.footer-address-row {
    display: flex;
    gap: 40px;
    font-size: 0.85rem;
    color: #a3b1c6;
    line-height: 1.8;
}

.footer-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 20px;
}

@media (max-width: 1024px) {
    .footer-address-row {
        flex-direction: column;
        gap: 20px;
    }

    .footer-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 5px 5px 10px var(--shadow-dark-intensity);
    cursor: pointer;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    color: var(--accent-purple);
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Device Page Image Adjustment */
@media (max-width: 1024px) {
    .device-cover-img {
        width: auto !important;
        max-width: 100%;
        max-height: 350px !important;
    }
}

@media (max-width: 768px) {
    .device-cover-img {
        max-height: 280px !important;
    }
}

/* Custom Checkbox Styles */
.custom-check:checked+span .check-icon {
    opacity: 1 !important;
}

/* Logo Grid for Device Page */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 100px;
    transition: opacity 0.3s ease;
}

.logo-item:hover {
    opacity: 0.7;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .logo-item {
        width: calc((100% - 80px) / 3);
        /* Force 3 columns (2 gaps of 40px) */
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .logo-grid {
        gap: 20px;
    }

    .logo-item {
        width: calc((100% - 20px) / 2);
        /* Force 2 columns (1 gap of 20px) */
    }
}