/* CSS dedicato alla homepage di NetworkTools con supporto Dark/Light Mode */

/* Stili generali */
:root {
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --animation-timing: 0.3s;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.show-home main.container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
}

main.container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

#home-tool {
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: none !important;
    border-radius: 0 !important;
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
}

/* Header nella homepage - trasparente per mostrare hero dietro */
body.show-home header {
    box-shadow: none !important;
    background: transparent !important;
}

/* Header scrollato - sfondo solido con ombra */
body.show-home header.scrolled {
    background: var(--header-bg) !important;
    box-shadow: 0 2px 10px var(--shadow-primary);
}

body.show-home .hero-section {
    padding-top: calc(70px + 5rem);
}

.hero-section {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 5rem 0;
    position: relative;
    overflow: visible;
    width: 100%;
    transition: background-color 0.3s ease;
}

/* Background con sfumature colorate */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 100% 80% at 75% 20%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 10% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    z-index: 0;
}

/* Light mode */
[data-theme="light"] .hero-section::before {
    background:
        radial-gradient(ellipse 100% 80% at 75% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 10% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px !important;
    width: 90% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--header-text);
}

.hero-section h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--header-text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--animation-timing);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--header-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Dark mode adjustments for buttons */
[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--header-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.1));
    padding: 0.45rem 0.9rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--header-text);
    border: 1px solid rgba(14, 165, 233, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-feature:hover {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.2);
}

.hero-feature:hover::before {
    opacity: 1;
}

.hero-feature i {
    color: var(--secondary);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.hero-feature span {
    position: relative;
    z-index: 1;
}

/* ============================================
   NETWORK ANIMATION - Epic Version
   6 dispositivi, orbite, particelle, glow
   ============================================ */

.network-animation {
    --size: 500px;
    --server-size: 90px;
    --node-size: 60px;
    --radius: 190px;
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.6);

    position: relative;
    width: var(--size);
    height: var(--size);
    margin: 0 auto;
}

/* Orbite rotanti */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.orbit-1 {
    width: 200px;
    height: 200px;
    animation: orbit-rotate 20s linear infinite;
}

.orbit-2 {
    width: 300px;
    height: 300px;
    animation: orbit-rotate 30s linear infinite reverse;
}

.orbit-3 {
    width: 400px;
    height: 400px;
    border-style: dashed;
    animation: orbit-rotate 40s linear infinite;
}

@keyframes orbit-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Server centrale con pulse multipli */
.server-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--server-size);
    height: var(--server-size);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.05) 100%);
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 30px rgba(14, 165, 233, 0.1);
}

.server-icon i {
    font-size: 2.2rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
    z-index: 2;
}

.server-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    animation: server-pulse-anim 2s ease-out infinite;
}

.server-pulse.delay-1 { animation-delay: 0.6s; }
.server-pulse.delay-2 { animation-delay: 1.2s; }

@keyframes server-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Linee SVG con glow */
.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.network-lines .connection-line {
    stroke: var(--accent);
    stroke-width: 1.5;
    opacity: 0.4;
    stroke-dasharray: 5 5;
    animation: dash-flow 1s linear infinite;
}

@keyframes dash-flow {
    to { stroke-dashoffset: -10; }
}

/* 6 Nodi device disposti a 60° */
.node {
    position: absolute;
    width: var(--node-size);
    height: var(--node-size);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.node:hover {
    transform: translate(-50%, -50%) scale(1.15);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.node i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.node:hover i {
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}

/* Posizioni dei 6 nodi (ogni 60°) */
.node1 { /* 270° - top */
    top: calc(50% - var(--radius));
    left: 50%;
    transform: translate(-50%, -50%);
}

.node2 { /* 330° - top right */
    top: calc(50% - var(--radius) * 0.5);
    left: calc(50% + var(--radius) * 0.866);
    transform: translate(-50%, -50%);
}

.node3 { /* 30° - bottom right */
    top: calc(50% + var(--radius) * 0.5);
    left: calc(50% + var(--radius) * 0.866);
    transform: translate(-50%, -50%);
}

.node4 { /* 90° - bottom */
    top: calc(50% + var(--radius));
    left: 50%;
    transform: translate(-50%, -50%);
}

.node5 { /* 150° - bottom left */
    top: calc(50% + var(--radius) * 0.5);
    left: calc(50% - var(--radius) * 0.866);
    transform: translate(-50%, -50%);
}

.node6 { /* 210° - top left */
    top: calc(50% - var(--radius) * 0.5);
    left: calc(50% - var(--radius) * 0.866);
    transform: translate(-50%, -50%);
}

/* Data packets con glow trail */
.packet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    z-index: 8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 30px var(--accent-glow);
}

/* Animazioni per 6 packets */
.packet1 { animation: packet-1 2.5s ease-in-out infinite; }
.packet2 { animation: packet-2 2.5s ease-in-out infinite 0.4s; }
.packet3 { animation: packet-3 2.5s ease-in-out infinite 0.8s; }
.packet4 { animation: packet-4 2.5s ease-in-out infinite 1.2s; }
.packet5 { animation: packet-5 2.5s ease-in-out infinite 1.6s; }
.packet6 { animation: packet-6 2.5s ease-in-out infinite 2s; }

@keyframes packet-1 {
    0%, 100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { top: calc(50% - 190px); left: 50%; opacity: 1; }
    65% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

@keyframes packet-2 {
    0%, 100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { top: calc(50% - 95px); left: calc(50% + 164.5px); opacity: 1; }
    65% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

@keyframes packet-3 {
    0%, 100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { top: calc(50% + 95px); left: calc(50% + 164.5px); opacity: 1; }
    65% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

@keyframes packet-4 {
    0%, 100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { top: calc(50% + 190px); left: 50%; opacity: 1; }
    65% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

@keyframes packet-5 {
    0%, 100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { top: calc(50% + 95px); left: calc(50% - 164.5px); opacity: 1; }
    65% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

@keyframes packet-6 {
    0%, 100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { top: calc(50% - 95px); left: calc(50% - 164.5px); opacity: 1; }
    65% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

/* Particelle fluttuanti */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; }
.particle:nth-child(3) { left: 80%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 40%; top: 10%; animation-delay: 4s; }
.particle:nth-child(6) { left: 90%; top: 50%; animation-delay: 5s; }
.particle:nth-child(7) { left: 5%; top: 60%; animation-delay: 6s; }
.particle:nth-child(8) { left: 60%; top: 90%; animation-delay: 7s; }

@keyframes particle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
        transform: translateY(-30px) scale(1.5);
    }
    90% {
        opacity: 0;
    }
}

/* Nascondi vecchi elementi */
.connection-lines-old { display: none; }

.tools-section {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.home-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.home-tools-grid-centered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 2rem;
    justify-content: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-tool-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-primary);
    padding: 2rem;
    transition: all 0.3s, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-secondary);
}

.home-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px var(--shadow-secondary);
    border-color: var(--text-tertiary);
}

.home-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

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

.home-tool-card.wide {
    grid-column: span 3;
}

.home-tool-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.home-tool-card:hover .home-tool-icon {
    background: var(--gradient-primary);
}

.home-tool-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 0.3s;
}

.home-tool-card:hover .home-tool-icon i {
    color: white;
}

.home-tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.home-tool-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.home-tool-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    border: 1px solid var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.home-tool-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.home-tool-card:hover .home-tool-link {
    background-color: var(--primary);
    color: white;
}

.home-tool-card:hover .home-tool-link i {
    transform: translateX(5px);
}

.features-section {
    background-color: var(--card-bg);
    padding: 5rem 0;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    transition: all var(--animation-timing), background-color 0.3s ease;
    text-align: center;
    border: 1px solid var(--border-secondary);
}

.feature-card:hover {
    background: var(--card-bg);
    box-shadow: 0 10px 25px var(--shadow-secondary);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

.faq-section {
    background-color: var(--bg-secondary);
    padding: 5rem 0;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    width: 90%;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px var(--shadow-primary);
    overflow: hidden;
    border: 1px solid var(--border-secondary);
    transition: background-color 0.3s ease;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--animation-timing);
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-primary);
    transition: all var(--animation-timing);
}

.faq-question i {
    color: var(--primary);
    transition: all var(--animation-timing);
}

.faq-item:hover .faq-question {
    background-color: var(--bg-secondary);
}

.faq-item.active .faq-question {
    background-color: rgba(14, 165, 233, 0.1);
}

.faq-item.active .faq-question h3 {
    color: var(--primary);
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--animation-timing), padding var(--animation-timing);
}

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

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
    padding-top: 20px;
}

footer {
    margin-top: 0 !important; 
    padding-top: 1.5rem;
    border-top: none !important;
}

.cta-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 4rem;
    box-sizing: border-box;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    width: 90%;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Unified Tools Grid/Carousel - Fluid & Adaptive */
.tools-unified-wrapper {
    --carousel-padding: clamp(20px, 5vw, 60px);
    --carousel-gap: clamp(12px, 2vw, 20px);
    --nav-size: clamp(32px, 4vw, 44px);
    --nav-offset: clamp(2px, 0.5vw, 5px);

    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--carousel-padding);
    box-sizing: border-box;
}

.tools-unified-container {
    --carousel-gap: clamp(12px, 2vw, 20px);
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: var(--carousel-gap);
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
}

.tools-unified-container::-webkit-scrollbar {
    display: none;
}

.tool-item {
    /* Fluid width: 100% on mobile, 50% on tablet, 25% on desktop */
    --cards-per-view: 4;
    flex: 0 0 calc((100% - (var(--carousel-gap) * (var(--cards-per-view) - 1))) / var(--cards-per-view));
    min-width: 0;
    scroll-snap-align: start;
    transition: flex 0.3s ease;
    box-sizing: border-box;
}

.tool-item .home-tool-card {
    height: 100%;
    min-height: clamp(280px, 40vh, 340px);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.tool-item .home-tool-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
}

.tool-item .home-tool-card p {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.7;
}

.tool-item .home-tool-icon {
    width: clamp(50px, 8vw, 70px);
    height: clamp(50px, 8vw, 70px);
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.tool-item .home-tool-icon i {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

/* Carousel controls - Fluid sizing */
.carousel-nav {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--card-bg);
    border: 1px solid var(--border-secondary);
    border-radius: 50%;
    width: var(--nav-size);
    height: var(--nav-size);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 2px 10px var(--shadow-primary);
}

.carousel-nav:hover {
    background-color: var(--primary);
    color: white;
}

.carousel-nav.prev:hover {
    transform: translateX(-50%) translateY(-50%) scale(1.1);
}

.carousel-nav.next:hover {
    transform: translateX(50%) translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: var(--carousel-padding);
    transform: translateX(-50%) translateY(-50%);
}

.carousel-nav.next {
    right: var(--carousel-padding);
    transform: translateX(50%) translateY(-50%);
}

/* Hide nav arrows on mobile only - use swipe instead */
@media (max-width: 768px) {
    .carousel-nav {
        display: none !important;
    }
}

.carousel-nav i {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--text-primary);
}

.carousel-nav:hover i {
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: clamp(6px, 1vw, 8px);
    margin-top: clamp(12px, 2vw, 20px);
}

.carousel-dot {
    width: clamp(8px, 1.2vw, 10px);
    height: clamp(8px, 1.2vw, 10px);
    border-radius: 50%;
    background-color: var(--text-tertiary);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background-color: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

/* Media Queries */
@media (max-width: 991px) {
    .hero-content, .hero-image {
        max-width: 100%;
        padding-right: 0;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image {
        margin-top: 3rem;
    }

    /* Tablet: 2 cards visible */
    .tool-item {
        --cards-per-view: 2;
    }
}

@media (max-width: 768px) {
    .hero-image {
        display: none !important;
    }

    .hero-features {
        display: none !important;
    }

    .hero-section .container {
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .hero-section {
        padding-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    /* Mobile: 1 card visible */
    .tool-item {
        --cards-per-view: 1;
    }
}

@media (max-width: 576px) {
    .hero-content {
        padding: 0 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

    .hero-section {
        padding: 3rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .network-animation {
        width: 250px;
        height: 250px;
    }

    .home-tools-grid {
        grid-template-columns: 1fr;
    }

    .home-tool-card.wide {
        grid-column: span 1;
    }

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

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