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

:root {
    --primary-orange: #D2691E;
    --primary-navy: #1E3A5F;
    --light-orange: #F4A460;
    --dark-navy: #0F1B2F;
    --paper-white: #FAFAFA;
    --subtle-gray: #E8E8E8;
    --success-green: #10B981;
    --border-color: #E5E7EB;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.25);
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--primary-navy);
    background-color: var(--paper-white);
    overflow-x: hidden;
}

/* Global mobile overflow guards */
html { overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; height: auto; }

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

/* Background Pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

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

/* Origami Paper Base */
.origami-paper {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    box-shadow: 
        0 8px 25px -5px rgba(0, 0, 0, 0.15),
        0 4px 12px -2px rgba(0, 0, 0, 0.1),
        0 2px 6px -1px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Paper Crease Effect - Removed for cleaner look */
/* .origami-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    transform: translateX(-50%);
} */

/* Animations */
@keyframes unfoldPaper {
    0% {
        transform: rotateX(-90deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotateX(-45deg) scale(0.9);
        opacity: 0.5;
    }
    100% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes paperFold {
    0% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateX(-15deg) rotateY(5deg);
    }
    50% {
        transform: perspective(1000px) rotateX(-30deg) rotateY(10deg);
    }
    75% {
        transform: perspective(1000px) rotateX(-15deg) rotateY(5deg);
    }
    100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
}

@keyframes craneFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes geometricRotate {
    0% {
        transform: scale(0) rotate(-180deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.paper-fold-hover:hover {
    animation: paperFold 0.6s ease-in-out;
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 1000;
    animation: craneFloat 3s ease-in-out infinite;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-navy);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .floating-nav {
        top: 16px;
        right: 16px;
    }
    
    .nav-container {
        padding: 12px;
        min-width: 120px;
    }
    
    .nav-buttons {
        gap: 6px;
    }
    
    .nav-btn {
        font-size: 11px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .floating-nav {
        top: 12px;
        right: 12px;
    }
    
    .nav-container {
        padding: 10px;
        min-width: 100px;
    }
    
    .nav-crane {
        width: 20px;
        height: 20px;
        margin-bottom: 8px;
    }
    
    .nav-buttons {
        gap: 4px;
    }
    
    .nav-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
}

.nav-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 16px;
    box-shadow: 0 8px 32px var(--shadow-light);
    border: 1px solid rgba(255, 165, 0, 0.2);
}

.nav-crane {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 16px;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-navy);
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 0;
}

/* Flying Paper Airplanes */
.paper-airplane-hero {
    position: fixed;
    width: 120px;
    height: 120px;
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.paper-airplane-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Three airplanes flying with smooth wave-like motion - evenly distributed across screen height */
.airplane-1 {
    top: 10vh; /* Upper level - 10% of viewport height */
    left: -150px; /* Start from left edge, outside screen */
    opacity: 0.6;
    animation: flySmooth1 15s linear infinite;
    z-index: -1;
}

.airplane-2 {
    top: 45vh; /* Middle level - 45% of viewport height */
    left: -150px; /* Start from left edge, outside screen */
    width: 100px;
    height: 100px;
    opacity: 0.6;
    animation: flySmooth2 18s linear infinite;
    animation-delay: -6s; /* Start 6 seconds later */
    z-index: -1;
}

.airplane-3 {
    top: 80vh; /* Lower level - 80% of viewport height */
    left: -150px; /* Start from left edge, outside screen */
    width: 90px;
    height: 90px;
    opacity: 0.4;
    animation: flySmooth3 20s linear infinite;
    animation-delay: -10s; /* Start 10 seconds later */
    z-index: -1;
}

/* Additional airplanes for continuous flow - evenly distributed across screen height */
.airplane-4 {
    top: 10vh;
    left: -150px;
    width: 110px;
    height: 110px;
    opacity: 0.5;
    animation: flySmooth1 15s linear infinite;
    animation-delay: -7.5s; /* Start 7.5 seconds later */
    z-index: -1;
}

.airplane-5 {
    top: 45vh;
    left: -150px;
    width: 95px;
    height: 95px;
    opacity: 0.5;
    animation: flySmooth2 18s linear infinite;
    animation-delay: -12s; /* Start 12 seconds later */
    z-index: -1;
}

.airplane-6 {
    top: 80vh;
    left: -150px;
    width: 85px;
    height: 85px;
    opacity: 0.3;
    animation: flySmooth3 20s linear infinite;
    animation-delay: -15s; /* Start 15 seconds later */
    z-index: -1;
}

/* Enhanced wave-like flight animations with increased amplitude */
@keyframes flySmooth1 {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    12% {
        transform: translateX(12vw) translateY(-25px) rotate(0deg);
    }
    25% {
        transform: translateX(25vw) translateY(0px) rotate(0deg);
    }
    37% {
        transform: translateX(37vw) translateY(30px) rotate(20deg);
    }
    50% {
        transform: translateX(50vw) translateY(35px) rotate(25deg);
    }
    62% {
        transform: translateX(62vw) translateY(0px) rotate(0deg);
    }
    75% {
        transform: translateX(75vw) translateY(-30px) rotate(15deg);
    }
    87% {
        transform: translateX(87vw) translateY(0px) rotate(0deg);
    }
    100% {
        transform: translateX(calc(100vw + 150px)) translateY(0px) rotate(0deg);
    }
}

/* Smooth wave motion for natural flight path */
@keyframes gentleWave {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes flySmooth2 {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    15% {
        transform: translateX(15vw) translateY(35px) rotate(18deg);
    }
    30% {
        transform: translateX(30vw) translateY(0px) rotate(0deg);
    }
    45% {
        transform: translateX(45vw) translateY(-35px) rotate(0deg);
    }
    60% {
        transform: translateX(60vw) translateY(-40px) rotate(20deg);
    }
    75% {
        transform: translateX(75vw) translateY(0px) rotate(0deg);
    }
    90% {
        transform: translateX(90vw) translateY(25px) rotate(12deg);
    }
    100% {
        transform: translateX(calc(100vw + 150px)) translateY(0px) rotate(0deg);
    }
}

@keyframes flySmooth3 {
    0% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
    }
    14% {
        transform: translateX(14vw) translateY(-45px) rotate(0deg);
    }
    28% {
        transform: translateX(28vw) translateY(0px) rotate(0deg);
    }
    42% {
        transform: translateX(42vw) translateY(40px) rotate(22deg);
    }
    50% {
        transform: translateX(50vw) translateY(50px) rotate(35deg);
    }
    58% {
        transform: translateX(58vw) translateY(0px) rotate(0deg);
    }
    72% {
        transform: translateX(72vw) translateY(-45px) rotate(0deg);
    }
    86% {
        transform: translateX(86vw) translateY(0px) rotate(18deg);
    }
    100% {
        transform: translateX(calc(100vw + 150px)) translateY(0px) rotate(0deg);
    }
}

.hero-content {
    text-align: center;
    padding: 48px;
    width: 800px;
    max-width: 800px;
    box-shadow: 
        0 8px 16px rgba(44, 62, 80, 0.12),
        0 16px 32px rgba(44, 62, 80, 0.08),
        0 4px 8px rgba(44, 62, 80, 0.06);
}

.logo-container {
    margin-bottom: -24px;
    margin-top: 0px;
    animation: logoScale 1s ease-out 0.5s both;
}

@keyframes logoScale {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.main-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 24px;
    animation: slideUp 0.8s ease-out 0.8s both;
}

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

.hero-description {
    font-size: 1.25rem;
    color: #64748B;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp 0.8s ease-out 1s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 1.2s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    min-width: 180px;
    height: 48px;
}

.btn-primary {
    background: var(--primary-orange);
    color: white;
}

.btn-primary:hover {
    background: #B8571A;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(210, 105, 30, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-icon {
    width: 16px;
    height: 16px;
}

/* Sections */
.about-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    padding: 32px;
    margin-bottom: 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748B;
}

.section-description {
    font-size: 1.125rem;
    color: #64748B;
    margin-bottom: 0;
    text-align: justify;
}

/* About Section */
.about-content {
    padding: 48px;
    margin-bottom: 0;
    box-shadow: 
        0 8px 16px rgba(44, 62, 80, 0.12),
        0 16px 32px rgba(44, 62, 80, 0.08),
        0 4px 8px rgba(44, 62, 80, 0.06);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 24px;
}

.about-text p {
    font-size: 1.125rem;
    color: #64748B;
    margin-bottom: 32px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 0;
}

/* Vote Account Section */
.vote-account-section {
    margin-top: -18px;
    margin-bottom: 32px;
    padding: 20px;
    background: rgba(30, 58, 95, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 95, 0.1);
}

.vote-account-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.vote-account-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vote-account-address {
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Source Sans Pro', monospace;
    font-size: 0.9rem;
    color: var(--primary-navy);
    flex: 1;
    min-width: 200px;
    word-break: break-all;
    font-weight: 500;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 48px;
    height: 48px;
}

.copy-btn:hover {
    background: #B8571A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copy-success {
    background: var(--success-green);
    animation: copyPulse 0.6s ease;
}

@keyframes copyPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.copy-btn svg {
    transition: transform 0.2s ease;
}

.copy-btn:hover svg {
    transform: scale(1.1);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    color: var(--success-green);
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
}



/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        width: 90%;
        max-width: 90%;
        padding: 40px 32px;
    }
    
    .tech-section-content.origami-paper {
        width: 90%;
        max-width: 90%;
        padding: 32px 40px 32px 40px;
    }
    
    .guide-content {
        width: 90%;
        max-width: 90%;
        padding: 40px 32px;
    }
    
    .contacts-content {
        padding: 32px 40px 32px 40px;
    }
}

@media (max-width: 768px) {
    .floating-nav {
        top: 16px;
        right: 16px;
    }

    .nav-container {
        padding: 12px;
    }

    .nav-crane {
        width: 24px;
        height: 24px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .logo-container {
        margin-bottom: -12px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .paper-airplane-hero {
        display: block;
        width: 60px;
        height: 60px;
        opacity: 0.6;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    /* Hero Section Mobile */
    .hero-content {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .main-logo {
        width: 150px;
        height: 150px;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }
    
    .btn {
        min-width: 160px;
        height: 44px;
        font-size: 14px;
    }
    
    /* Ensure hero buttons have equal width on mobile */
    .hero-buttons .btn {
        width: 200px;
    }
    
    /* About Section Mobile */
    .about-content {
        padding: 32px 24px;
    }

    .about-text h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    /* Vote Account Section Tablet */
    .vote-account-section {
        padding: 14px;
        margin-top: 16px;
        margin-bottom: 16px;
    }

    .vote-account-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .vote-account-address {
        font-size: 0.85rem;
        padding: 11px 14px;
    }

    .copy-btn {
        width: 44px;
        height: 44px;
        padding: 10px;
    }
    
    /* Tech Section Mobile */
    .tech-section-content.origami-paper {
        padding: 24px 32px 24px 32px;
        width: 100%;
        max-width: 100%;
    }
    
    .tech-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 16px;
        height: auto;
        min-height: 80px;
        gap: 16px;
    }
    
    .tech-icon-container {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        align-self: flex-start;
    }
    
    .tech-icon {
        width: 44px;
        height: 44px;
    }
    
    .tech-title {
        font-size: 1rem;
        margin-bottom: 6px;
        margin-top: 0;
    }
    
    .tech-description {
        font-size: 0.85rem;
    }
    
    /* Metrics Section Mobile */
    .metrics-content {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
    }
    
    .top-row, .bottom-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .top-row .feature-triangle,
    .bottom-row .feature-triangle {
        width: 100%;
        max-width: 300px;
    }
    
    .triangle-content {
        min-width: auto;
        min-height: 180px;
        padding: 30px 20px 20px;
    }
    
    .feature-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .feature-description {
        font-size: 0.9rem;
        max-width: 180px;
    }
    
    /* Guide Section Mobile */
    .guide-content {
        padding: 32px 24px;
        width: 100%;
        max-width: 100%;
    }

    .guide-intro {
        margin-bottom: 30px;
        padding: 16px;
    }

    .intro-note {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .guide-step {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .step-content {
        text-align: center;
        margin-top: 12px;
    }
    
    .step-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .step-description {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .step-details {
        gap: 8px;
    }
    
    .step-detail {
        font-size: 0.8rem;
    }
    
    .step-number {
        font-size: 0.8rem;
        padding: 3px 6px;
        margin-top: 12px;
    }
    
    /* Contacts Section Mobile */
    .contacts-content {
        padding: 24px 24px 24px 24px;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .contact-method {
        margin-bottom: 24px;
    }
    
    .method-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .footer-social {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-content,
    .about-content,
    .section-header {
        padding: 24px;
    }
    
    /* Tighten section paddings to avoid collisions */
    .hero-section { padding: 40px 0; }
    .about-section { padding: 50px 0; }
    .metrics-section { padding: 50px 0; }
    .section-header .section-title { margin-bottom: 32px; }
    
    /* Hero Section Small Mobile */
    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 16px;
    }
    
    .btn {
        min-width: 140px;
        height: 40px;
        font-size: 13px;
        padding: 10px 20px;
    }
    
    /* Equalize hero button widths on small mobile */
    .hero-buttons .btn {
        width: 180px;
    }
    
    .main-logo {
        width: 130px;
        height: 130px;
    }
    
    /* About Section Small Mobile */
    .about-text h2 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .about-text p {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    /* Vote Account Section Small Mobile */
    .vote-account-section {
        padding: 12px;
        margin-top: 16px;
    }

    .vote-account-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .vote-account-container {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 6px;
        align-items: center;
    }

    .vote-account-address {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-width: 0;
        word-break: break-word;
    }

    .copy-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .feature-item {
        gap: 8px;
    }
    
    .check-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Tech Section Small Mobile */
    .tech-section-content.origami-paper {
        padding: 20px 16px 20px 16px;
    }
    
    .tech-card {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 12px;
        min-height: 70px;
        gap: 12px;
    }
    
    .tech-icon-container {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        align-self: flex-start;
    }
    
    .tech-icon {
        width: 50px;
        height: 50px;
    }
    
    .tech-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .tech-description {
        font-size: 0.8rem;
    }
    
    /* Align icon with title, description full-width below */
    .tech-card {
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-template-areas:
            'icon title'
            'desc desc';
        align-items: center;
        text-align: left;
    }
    .tech-icon-container { margin-bottom: 0; align-self: center; }
    .tech-content { display: contents; }
    .tech-title { grid-area: title; margin-bottom: 0; }
    .tech-description { grid-area: desc; margin-top: 6px; }
    
    /* Metrics Section Small Mobile */
    .triangle-content {
        min-height: 150px;
        padding: 25px 16px 16px;
    }
    
    .feature-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .feature-description {
        font-size: 0.8rem;
        max-width: 160px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    /* Guide Section Small Mobile */
    .guide-intro {
        margin-bottom: 24px;
        padding: 12px;
    }

    .intro-note {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .guide-step {
        padding: 14px;
    }
    
    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step-title {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .step-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .step-detail {
        font-size: 0.75rem;
    }
    
    .step-number {
        font-size: 0.75rem;
        padding: 2px 5px;
    }
    
    /* Contacts Section Small Mobile */
    .contacts-content {
        padding: 20px 16px 20px 16px;
    }
    
    .form-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 16px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .contact-methods-title {
        font-size: 1.3rem;
        margin-bottom: 16px;
    }
    
    .method-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .method-content h5 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .method-value {
        font-size: 0.9rem;
    }
    
    .method-description {
        font-size: 0.8rem;
    }
    
    /* Footer Small Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1rem;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .social-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Origami Paper Scroll Animation */
.origami-paper {
    opacity: 0;
    transform: rotateX(-90deg) scale(0.8);
    transition: all 0.8s ease;
}

.origami-paper.visible {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
}

/* Mobile Animation Optimizations */
@media (max-width: 768px) {
    .origami-paper {
        transition: all 0.6s ease; /* Speed up animations on mobile */
    }
    
    .interactive-paper:hover,
    .interactive-paper:active {
        transform: translateY(-5px) rotateX(3deg); /* Reduce effect on mobile */
    }
    
    /* Triangles keep rotateZ behavior; cards/guide use regular pop effect */
    .triangle-content:hover,
    .triangle-content:active {
        transform: rotateZ(var(--triangle-rot, -90deg)) translateY(-5px) rotateX(3deg);
    }

    .guide-step:hover,
    .guide-step:active {
        transform: translateY(-7px) rotateX(4deg);
        box-shadow: 0 14px 32px rgba(0,0,0,0.2);
    }
    
    .paper-fold-hover:hover,
    .paper-fold-hover:active {
        animation: paperFold 0.4s ease-in-out; /* Speed up animation on mobile */
    }
    
    /* Touch-friendly button sizes */
    .btn {
        min-height: 44px; /* Minimum height for touch */
        min-width: 44px; /* Minimum width for touch */
    }
    
    .nav-btn {
        min-height: 32px; /* Minimum height for touch */
        min-width: 32px; /* Minimum width for touch */
    }
}

@media (max-width: 480px) {
    .origami-paper {
        transition: all 0.5s ease; /* Speed up even more on small screens */
    }
    
    .interactive-paper:hover,
    .interactive-paper:active,
    .tech-card:hover,
    .tech-card:active,
    .guide-step:hover,
    .guide-step:active,
    .triangle-content:hover,
    .triangle-content:active {
        transform: rotateZ(var(--triangle-rot, -90deg)) translateY(-3px) rotateX(2deg); /* Minimal effect on small screens */
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 80vh;
        padding: 40px 0;
    }
    
    .hero-content {
        padding: 24px 32px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .floating-nav {
        top: 12px;
        right: 12px;
    }
    
    .nav-container {
        padding: 8px;
    }
    
    .nav-crane {
        width: 20px;
        height: 20px;
        margin-bottom: 8px;
    }
    
    .nav-buttons {
        gap: 4px;
    }
    
    .nav-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
}

/* Scroll Reveal Animation for Tech Cards */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Technology Section - Crafted with Precision */
.tech-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0 120px 0;
    background: transparent;
    position: relative;
}

.paper-fold-section {
    position: relative;
    overflow: hidden;
}

.fold-line-overlay {
    display: none;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 0px;
    margin-top: 0;
}

/* Specific styling for tech section header */
.tech-section-content .section-header {
    margin-top: 0;
}

/* Reduce spacing between title and description in tech section */
.tech-section .section-header .section-title {
    margin-bottom: 24px;
}

.section-header .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--primary-navy);
}

/* Tech Content Wrapper */
.tech-section-content {
    padding: 0 24px 48px 24px;
    text-align: center;
    width: 800px;
    max-width: 800px;
    box-shadow: 
        0 8px 16px rgba(44, 62, 80, 0.12),
        0 16px 32px rgba(44, 62, 80, 0.08),
        0 4px 8px rgba(44, 62, 80, 0.06);
}
.tech-intro {
    font-size: 1.125rem;
    color: #64748B;
    margin: 0 0 32px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}


/* Ensure proper spacing for tech section */
.tech-section-content.origami-paper {
    padding: 24px 48px 24px 48px; /* Top, Right, Bottom, Left - make top and bottom padding equal */
}

/* Technology List */
.tech-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
        margin-bottom: 32px; /* Add bottom margin for list */
}

.tech-item {
    margin-bottom: 0;
    width: 100%;
    max-width: 700px;
}

.tech-card {
    background: white;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow:
        0 6px 12px rgba(44, 62, 80, 0.15),
        0 12px 24px rgba(44, 62, 80, 0.1),
        0 4px 8px rgba(44, 62, 80, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    position: relative;
    min-height: 120px;
}

/* Highlight style for centered cards in Features */
.tech-card.is-centered,
.tech-card.hover-active {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: transparent;
}
.tech-card.is-centered::after,
.tech-card.hover-active::after { opacity: 1; }
.tech-card.is-centered .tech-icon,
.tech-card.hover-active .tech-icon { transform: scale(1.2) rotate(10deg); }

.tech-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hexagon-green {
    background: none;
    clip-path: none;
}

.hexagon-orange {
    background: none;
    clip-path: none;
}

.hexagon-navy {
    background: none;
    clip-path: none;
}

.tech-icon {
    width: 64px;
    height: 64px;
    color: white;
    transition: transform 0.3s ease;
}

.tech-content {
    flex: 1;
}

.tech-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 8px;
}

.tech-description {
    color: #64748B;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Interactive Paper Effects */
.interactive-paper {
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.interactive-paper:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Red shimmer effect removed */
/* .interactive-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.interactive-paper:hover::before {
    left: 100%;
} */

.interactive-paper:hover .tech-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Red corner fold effect */
.tech-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 51px;
    height: 51px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-card:hover::after {
    opacity: 1;
}

/* Origami Fold Animation */
.origami-fold {
    opacity: 0;
    transform: rotateX(-90deg) scale(0.8);
    transition: all 0.8s ease;
}

.origami-fold.visible {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
}

/* Responsive Design for Tech Section */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    .tech-section {
        padding: 60px 0 90px 0;
        margin: 0;
    }
    
    .tech-section-content.origami-paper {
        padding: 24px 24px 24px 24px; /* Make top and bottom padding equal for tablets */
    }
    
    .section-header .section-title {
        font-size: 2.5rem;
    }
    
    .tech-card {
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-template-areas:
            'icon title'
            'desc desc';
        align-items: center;
        text-align: left;
        padding: 16px 16px 20px;
        height: auto;
        column-gap: 12px;
        row-gap: 8px;
    }
    
    .tech-icon-container {
        grid-area: icon;
        width: 48px;
        height: 48px;
        align-self: center;
    }
    
    .tech-icon {
        width: 48px;
        height: 48px;
    }

    .tech-content { display: contents; }
    .tech-title { grid-area: title; margin-bottom: 0; }
    .tech-description { grid-area: desc; font-size: 0.95rem; margin-top: 6px; }
    
    /* Hide corner fold overlay on small screens to avoid overlap */
    .tech-card::after { display: none; }
}

@media (max-width: 480px) {
    .tech-section {
        padding: 40px 0 60px 0;
    }
    
    .tech-section-content.origami-paper {
        padding: 24px 24px 24px 24px; /* Make top and bottom padding equal for mobile */
    }
    
    .section-header .section-title {
        font-size: 2rem;
    }
    
    .tech-card {
        padding: 16px 14px 18px;
        height: auto;
        gap: 12px;
    }
    .tech-content { width: 100%; }
    .tech-title { font-size: 1.05rem; }
    .tech-description { font-size: 0.9rem; }
}

/* Metrics Section - Unfolding Excellence */
.metrics-section {
    padding: 80px 0;
}

.metrics-content {
    padding: 48px;
    text-align: center;
    margin-bottom: 0;
}

.metrics-content .section-title {
    margin-bottom: 60px;
}

/* Disable appearance animation inside metrics section */
.metrics-section .origami-fold {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

.triangular-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-triangle {
    margin-bottom: 20px;
    position: relative;
}

.triangle-content {
    cursor: pointer;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    overflow: hidden;
}

.triangle-content:hover {
    transform: rotateZ(var(--triangle-rot, -90deg)) translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.triangle-content.is-centered {
    transform: rotateZ(var(--triangle-rot, -90deg)) translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Hover has priority over auto-centering */
/* Marker classes added by JS; visuals are driven by :hover to ensure priority */
.triangle-content.is-centered.is-hovered,
.guide-step.is-centered.is-hovered,
.tech-card.is-centered.is-hovered,
.triangle-content.is-hovered,
.guide-step.is-hovered,
.tech-card.is-hovered { outline: none; }

/* Red shimmer effect removed */
/* .triangle-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.triangle-content:hover::before {
    left: 100%;
} */

/* Red corner effect for triangles - removed */
/* .triangle-content:hover {
    background: linear-gradient(90deg, 
        var(--triangle-color, #00f5a0) 0%, 
        var(--triangle-color, #00f5a0) 90%, 
        #e74c3c 90%, 
        #e74c3c 100%);
} */

.top-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: nowrap;
}

.top-row .feature-triangle {
    width: 350px;
    justify-self: center;
}

.bottom-row {
    display: flex;
    justify-content: center;
    gap: 5px;
    max-width: 800px;
    margin: 0 auto;
}

.bottom-row .feature-triangle {
    width: 350px;
}

.triangle-content {
    padding: 50px 30px 30px;
    text-align: center;
    color: white;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    min-height: 220px;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    transform: rotateZ(var(--triangle-rot, -90deg));
    transform-origin: 50% 50%;
    will-change: transform;
}

.triangle-green {
    --triangle-color: #00f5a0;
    background: linear-gradient(135deg, #00f5a0, #00d084);
    color: var(--primary-navy);
}

.triangle-orange {
    --triangle-color: #e67e22;
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.triangle-light {
    --triangle-color: #f4f1ed;
    background: linear-gradient(135deg, #f4f1ed, #e8e8e8);
    color: var(--primary-navy);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

/* Thin outline around the Commission triangle - uniform on all sides */
.triangle-content.triangle-light::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><polygon points='50,0 0,100 100,100' fill='none' stroke='%23D2691E' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round' vector-effect='non-scaling-stroke' /></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0 0;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Metrics triangle icons */
.metric-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: inline-block;
    margin: 0 auto 12px;
}

/* Make Uptime and Low Latency icons white to match text */
.triangle-orange .metric-icon {
    filter: brightness(0) invert(1);
}

/* Desktop - increase by 15% */
@media (min-width: 1025px) {
    .metric-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
}

/* Metric header row: title on left, value on right */
.metric-header { display: none; }

/* Keep title and metric on one line */
.triangle-content .feature-title { white-space: nowrap; }


.metric-header h3.feature-title { margin-bottom: 0; }
.metric-value { color: currentColor; }

@media (max-width: 768px) {
    .metric-value { font-size: 1rem; }
}

/* Prevent wrapping of header/value so they stay on one line when possible */
.metric-header .feature-title,
.metric-header .metric-value { white-space: nowrap; }

.metric-value { color: currentColor; }
.metric-header .metric-value { margin-left: 0; }

.feature-description {
    font-size: 1rem;
    line-height: 1.2;
    opacity: 0.9;
    max-width: 200px;
    margin: 0 auto;
}

/* Responsive Design for Metrics Section */
@media (max-width: 768px) {
    .metrics-section { padding: 40px 0; }

    .metrics-content {
        width: 100%;
        max-width: 100%;
        padding: 24px;
    }
    .metrics-content .section-title { margin-bottom: 36px; }
    
    .top-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .bottom-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .triangle-content {
        padding: 40px 24px 24px;
        min-height: 180px;
        /* Prevent horizontal overflow on mobile */
        min-width: 0;
        width: 100%;
    }
    
    .feature-title {
        font-size: 0.9rem;
    }

    .metric-icon { width: 51px; height: 51px; margin-bottom: 14px; }

    /* Smaller description text specifically in Metrics triangles */
    .metrics-section .feature-description {
        font-size: 0.85rem;
    }

    /* Ensure triangle wrappers fit the screen width */
    .top-row .feature-triangle,
    .bottom-row .feature-triangle {
        width: 100%;
        max-width: 100%;
    }
}

/* Extra tightening for small mobiles */
@media (max-width: 480px) {
    .metrics-section { padding: 30px 0; }

    .metrics-content { padding: 20px 16px; }
    .metrics-content .section-title { margin-bottom: 28px; }
    .top-row .feature-triangle,
    .bottom-row .feature-triangle {
        width: 100%;
        max-width: 100%;
    }

    .triangle-content {
        min-width: 0;
        width: 100%;
        min-height: 200px;
        padding: 45px 16px 20px;
    }

    .metric-icon { width: 46px; height: 46px; margin-bottom: 11px; }

    /* Even smaller description text for very small screens */
    .metrics-section .feature-description {
        font-size: 0.78rem;
    }
}

/* Guide Section - How to Stake */
.guide-section {
    padding: 80px 0;
}

.guide-content {
    padding: 48px;
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 0;
    box-shadow: 
        0 8px 16px rgba(44, 62, 80, 0.12),
        0 16px 32px rgba(44, 62, 80, 0.08),
        0 4px 8px rgba(44, 62, 80, 0.06);
}

.guide-content .section-title {
    margin-bottom: 40px;
}

/* Guide intro note */
.guide-intro {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(210, 105, 30, 0.1);
    border-left: 4px solid var(--primary-orange);
    border-radius: 8px;
}

.intro-note {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-navy);
}

.intro-note strong {
    color: var(--primary-orange);
    font-weight: 600;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    transform-style: preserve-3d;
    background: white;
    box-shadow: 
        0 6px 12px rgba(44, 62, 80, 0.15),
        0 12px 24px rgba(44, 62, 80, 0.1),
        0 4px 8px rgba(44, 62, 80, 0.08);
    position: relative;
    overflow: hidden;
}

/* Guide hover: match Features card hover style */
.guide-step:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Highlight style for centered guide steps */
.guide-step.is-centered,
.guide-step.hover-active {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: transparent;
}

.guide-step.is-centered::after,
.guide-step.hover-active::after { opacity: 1; }
.guide-step.is-centered .step-icon,
.guide-step.hover-active .step-icon { transform: scale(1.2) rotate(10deg); }

/* Red shimmer effect removed */
/* .guide-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.1), transparent);
    transition: left 0.5s ease;
}

.guide-step:hover::before {
    left: 100%;
} */

.guide-step:hover .step-icon {
    transform: scale(1.2) rotate(10deg);
}

/* Red corner fold effect for guide steps */
.guide-step::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 51px;
    height: 51px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-step:hover::after {
    opacity: 1;
}

/* Remove automatic highlighting of first step */
.guide-step.active {
    background: white;
    border-color: transparent;
}

/* Override origami-fold animation for guide steps to prevent conflicts */
.guide-step.origami-fold {
    opacity: 0;
    transform: rotateX(-90deg) scale(0.8);
    transition: all 0.3s ease; /* match Features timing */
}

.guide-step.origami-fold.visible {
    opacity: 1;
    transform: rotateX(0deg) scale(1);
}

/* Ensure hover animation works after initial animation */
.guide-step.origami-fold.visible:hover {
    transform: translateY(-10px) rotateX(5deg);
}

/* Ensure auto-highlight overrides the visible state too (higher specificity) */
.guide-step.origami-fold.visible.is-centered,
.guide-step.origami-fold.visible.hover-active {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: transparent;
}



.step-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    transition: transform 0.3s ease;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* slightly inset to keep rounded square look */
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-navy);
}

.step-description {
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.step-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.step-detail {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-number {
    font-size: 0.9rem;
    color: var(--primary-orange);
    font-weight: 600;
    background: rgba(210, 105, 30, 0.1);
    padding: 5px 10px;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 25px;
}

/* Responsive Design for Guide Section */
@media (max-width: 768px) {
    .guide-section {
        padding: 60px 0;
    }
    
    .guide-content {
        padding: 24px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .guide-step {
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-template-areas:
            'icon title'
            'desc desc'
            'details details';
        align-items: center;
        text-align: left;
        padding: 16px;
        width: 100%;
        column-gap: 12px;
        row-gap: 6px;
    }
    
    .step-icon {
        grid-area: icon;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        align-self: center;
    }
    
    .step-content { display: contents; }
    .step-title { grid-area: title; margin: 0; }
    .step-description { grid-area: desc; margin-top: 6px; }
    .step-details { grid-area: details; margin-top: 6px; }
}

@media (max-width: 480px) {
    .guide-section {
        padding: 40px 0;
    }
    
    .guide-content {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .guide-step {
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-template-areas:
            'icon title'
            'desc desc'
            'details details';
        align-items: center;
        padding: 12px 14px;
        width: 100%;
        text-align: left;
        column-gap: 10px;
        row-gap: 6px;
    }
    
    .step-content { display: contents; }
    .step-icon { grid-area: icon; width: 40px; height: 40px; align-self: center; }
    .step-title { grid-area: title; font-size: 1rem; margin: 0; align-self: center; }
    .step-description { grid-area: desc; font-size: 0.9rem; margin-top: 6px; }
    .step-details { grid-area: details; margin-top: 6px; }
}

/* Contacts Section - Let's Unfold the Future Together */
.contacts-section {
    padding: 80px 0;
    background: transparent;
    color: var(--primary-navy);
    position: relative;
    overflow: hidden;
}

.contacts-section::before {
    display: none;
}

.contacts-content {
    padding: 24px 48px 24px 48px; /* Top, Right, Bottom, Left - make top and bottom padding equal */
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 
        0 8px 16px rgba(44, 62, 80, 0.12),
        0 16px 32px rgba(44, 62, 80, 0.08),
        0 4px 8px rgba(44, 62, 80, 0.06);
}

.contacts-content .section-title {
    margin-bottom: 60px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-container {
    background: rgba(30, 58, 95, 0.05);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    text-align: left;
    box-shadow: 
        0 6px 12px rgba(44, 62, 80, 0.15),
        0 12px 24px rgba(44, 62, 80, 0.1),
        0 4px 8px rgba(44, 62, 80, 0.08);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 16px;
    color: var(--primary-navy);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}



.form-group input,
.form-group textarea {
    padding: 10px;
    background: rgba(30, 58, 95, 0.1);
    border: 1px solid rgba(30, 58, 95, 0.2);
    border-radius: 12px;
    color: var(--primary-navy);
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(30, 58, 95, 0.6);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: rgba(30, 58, 95, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(210, 105, 30, 0.2);
}

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

/* Submit button now uses .btn .btn-primary styles */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
}

.contact-methods-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
    color: var(--primary-navy);
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.method-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.method-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-navy);
}

.method-value {
    color: var(--light-orange);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.method-value:hover {
    color: var(--primary-orange);
}

.method-description {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-top: 4px;
}



/* Responsive Design for Contacts Section */
@media (max-width: 768px) {
    .contacts-section {
        padding: 60px 0;
    }
    
    .contacts-content {
        padding: 24px 32px 24px 32px; /* Make top and bottom padding equal for tablets */
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    

}

@media (max-width: 480px) {
    .contacts-section {
        padding: 40px 0;
    }
    
    .contacts-content {
        padding: 24px 24px 24px 24px; /* Make top and bottom padding equal for mobile */
    }
    
    .contact-form-container {
        padding: 16px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 2;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='20' viewBox='0 0 32 20'><polygon fill='%23e67e22' points='0,0 16,20 32,0 32,0 0,0'/></svg>");
    background-repeat: repeat-x;
    background-size: 32px 20px; /* fixed tooth width; fits as many as screen allows */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 40px;
    height: auto;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    flex-direction: row;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--primary-orange); /* Same color as navigation */
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-orange); /* Same color as navigation */
    border-color: var(--primary-orange);
}

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

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-content {
        padding: 20px 16px;
    }
    
    /* Extra-tight paddings for very small screens */
    .hero-section { padding: 32px 0; }
    .about-section { padding: 40px 0; }
    .metrics-section { padding: 40px 0; }
    .section-header .section-title { margin-bottom: 24px; }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
    
    .btn {
        min-width: 120px;
        height: 36px;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    /* Equalize hero button widths on very small screens */
    .hero-buttons .btn {
        width: 160px;
    }
    
    .main-logo {
        width: 110px;
        height: 110px;
    }
    
    .tech-section-content.origami-paper {
        padding: 16px 12px 16px 12px;
    }
    
    /* Larger feature icons on very small devices */
    .tech-icon {
        width: 48px;
        height: 48px;
    }
    
    .guide-content {
        padding: 16px 12px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Ultra-small screens: fallback layout without display: contents */
    .guide-step {
        display: block;
        padding: 10px 12px;
        width: 100%;
        text-align: left;
    }
    
    .step-content { display: block; }
    .step-icon { float: left; width: 36px; height: 36px; margin: 0 8px 4px 0; }
    .step-title { display: inline-block; margin: 0; vertical-align: middle; }
    .step-description, .step-details { clear: both; margin-top: 6px; }

    /* Fallback for ultra-small devices where display: contents is unreliable */
    .guide-step.fallback-layout,
    .no-contents .guide-step {
        display: block;
    }
    .guide-step.fallback-layout .step-icon,
    .no-contents .guide-step .step-icon {
        float: left;
        margin: 0 8px 4px 0;
    }
    .guide-step.fallback-layout .step-title,
    .no-contents .guide-step .step-title {
        display: inline-block;
        vertical-align: middle;
    }
    .guide-step.fallback-layout .step-description,
    .guide-step.fallback-layout .step-details,
    .no-contents .guide-step .step-description,
    .no-contents .guide-step .step-details {
        clear: both;
    }
    
    /* Keep guide icons left and vertically aligned with titles */
    .guide-step {
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
        text-align: left;
    }
    
    .step-content {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .step-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Guide intro for very small screens */
    .guide-intro {
        margin-bottom: 20px;
        padding: 10px;
    }

    .intro-note {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    /* Guide: make ≤360px match 360+ grid layout */
    .guide-step {
        display: grid;
        grid-template-columns: min-content 1fr;
        grid-template-areas:
            'icon title'
            'desc desc'
            'details details';
        align-items: center;
        column-gap: 8px;
        row-gap: 6px;
    }
    .step-content { display: contents; }
    .step-icon { float: none; grid-area: icon; margin: 0; align-self: center; }
    .step-title { grid-area: title; margin: 0; align-self: center; }
    .step-description { grid-area: desc; margin-top: 6px; clear: none; }
    .step-details { grid-area: details; margin-top: 6px; clear: none; }
    
    .contacts-content {
        padding: 16px 12px 16px 12px;
    }
    
    .floating-nav {
        top: 8px;
        right: 8px;
    }
    
    .nav-container {
        padding: 8px;
        min-width: 80px;
    }
    
    .nav-crane {
        width: 16px;
        height: 16px;
        margin-bottom: 6px;
    }
    
    .nav-buttons {
        gap: 2px;
    }
    
    .nav-btn {
        font-size: 9px;
        padding: 3px 6px;
        min-height: 28px;
        min-width: 28px;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 0.8rem;
    }
    
    .footer-links {
        gap: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }
    
    .social-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}