:root {
    --primary-blue: #2563EB;
    --sky-blue-accent: #3B82F6;
    --background-light-gray: #F9FAFB;
    --text-dark-gray: #111827;
    --output-box-bg: #1E205C;
    --advanced-tools-bg: #0E0D3D;
    --cta-bg: #06202B;
    --hero-bg: #0B0A2A;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-light-gray);
    color: var(--text-dark-gray);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Glassmorphism Effects */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.output-glassmorphism {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Neumorphism Effects */
.neumorphism {
    background: var(--background-light-gray);
    box-shadow: 9px 9px 16px rgb(212, 212, 212), -9px -9px 16px rgb(255, 255, 255);
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.neumorphism:hover {
    box-shadow: 12px 12px 20px rgb(200, 200, 200), -12px -12px 20px rgb(255, 255, 255);
}

.neumorphism-inset {
    background: var(--background-light-gray);
    box-shadow: inset 5px 5px 10px #d1d9e6, inset -5px -5px 10px #ffffff;
}

.neumorphism-button {
    background: var(--background-light-gray);
    box-shadow: 6px 6px 12px #d1d9e6, -6px -6px 12px #ffffff;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.neumorphism-button:hover {
    box-shadow: 4px 4px 8px #d1d9e6, -4px -4px 8px #ffffff;
    transform: translateY(2px);
}

.neumorphism-button:active {
    box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
    transform: translateY(1px);
}

/* Enhanced Generate Address button styles */
#generate-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

#generate-btn:hover {
    transform: translateY(2px) scale(1.02);
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
}

#generate-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Responsive button container adjustments */
@media (max-width: 768px) {
    /* Ensure button container is properly centered on mobile */
    .mt-12.flex.justify-center.items-center.space-x-6 {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Remove horizontal spacing when stacked vertically */
    .mt-12.flex.justify-center.items-center.space-x-6 > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Responsive Screenshot Styles */
.screenshot-container {
    position: relative;
    transition: all 0.3s ease;
}

.screenshot-container:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.screenshot-container img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.screenshot-container img:hover {
    border-color: #2563EB;
    transform: scale(1.02);
}

/* Mobile responsive adjustments for screenshots */
@media (max-width: 768px) {
    .screenshot-container {
        margin: 15px 0 !important;
        border-radius: 6px !important;
    }
    
    .screenshot-container img {
        max-width: 100% !important;
        border-radius: 6px !important;
    }
    
    .screenshot-container p {
        font-size: 0.8rem !important;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .screenshot-container {
        margin: 10px 0 !important;
        border-radius: 4px !important;
    }
    
    .screenshot-container img {
        border-radius: 4px !important;
    }
    
    .screenshot-container p {
        font-size: 0.75rem !important;
        margin-top: 8px !important;
        padding: 0 5px;
    }
}

@media (max-width: 480px) {
    .mt-12.flex.justify-center.items-center.space-x-6 {
        margin-top: 2rem;
        gap: 0.75rem;
    }
}

/* Flip Card Effects */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #23223F;
    box-shadow: 9px 9px 16px rgb(212, 212, 212), -9px -9px 16px rgb(255, 255, 255);
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Pulse Animation */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Globe Spin Animation */
.globe-spin {
    animation: spin 10s linear infinite;
    transform-style: preserve-3d;
}

@keyframes spin {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Country Grid Styling */
.country-grid {
    height: 400px;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-blue) var(--background-light-gray);
}

.country-grid::-webkit-scrollbar {
    width: 8px;
}

.country-grid::-webkit-scrollbar-track {
    background: var(--background-light-gray);
}

.country-grid::-webkit-scrollbar-thumb {
    background-color: var(--sky-blue-accent);
    border-radius: 10px;
    border: 2px solid var(--background-light-gray);
}

/* Tool Card Styling */
.tool-card {
    background-color: rgba(255,255,255,0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: white;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -5px rgba(0, 0, 0, 0.08);
    background-color: rgba(255,255,255,0.1);
}

.tool-card .material-icons {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, #3B82F6, #818CF8);
    background: linear-gradient(45deg, #3B82F6, #818CF8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-card:hover .material-icons {
    transform: scale(1.15) rotate(12deg);
}

/* Blog Card Styling */
.blog-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.06);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Fade Out Animation */
.fade-out {
    animation: fadeOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.97); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes fadeOut {
    from { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
    to { 
        opacity: 0; 
        transform: translateY(-15px) scale(0.98); 
    }
}

/* Slide In Animation */
.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Zoom In Animation */
.zoom-in {
    animation: zoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Zoom Out Animation */
.zoom-out {
    animation: zoomOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animate Icon Class */
.animate-icon {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-icon:hover {
    transform: scale(1.2) rotate(15deg);
    color: var(--sky-blue-accent) !important;
}

@keyframes zoomIn {
    from { 
        transform: scale(0.85) translateY(15px); 
        opacity: 0; 
    }
    50% {
        transform: scale(1.02) translateY(-3px);
    }
    to { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

@keyframes zoomOut {
    from { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
    to { 
        transform: scale(0.92) translateY(12px); 
        opacity: 0; 
    }
}

/* Enhanced mobile animation support with ultra-smooth performance */
@media (max-width: 768px) {
    .fade-in, .zoom-in, .slide-in {
        animation-duration: 0.35s;
    }
    
    .fade-out, .zoom-out {
        animation-duration: 0.2s;
    }
    
    .animate-icon {
        font-size: 1.5rem !important;
    }
    
    /* Ultra-smooth mobile animations */
    @keyframes fadeIn {
        from { 
            opacity: 0; 
            transform: translateY(10px) scale(0.98); 
        }
        to { 
            opacity: 1; 
            transform: translateY(0) scale(1); 
        }
    }
    
    @keyframes zoomIn {
        from { 
            transform: scale(0.94) translateY(6px); 
            opacity: 0; 
        }
        to { 
            transform: scale(1) translateY(0); 
            opacity: 1; 
        }
    }
    
    /* Mobile-specific scroll-up animations */
    .scroll-up-animating {
        animation-duration: 0.35s !important;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
}

/* Enhanced tablet animation support with smooth performance */
@media (min-width: 769px) and (max-width: 1024px) {
    .fade-in, .zoom-in, .slide-in {
        animation-duration: 0.4s;
    }
    
    .fade-out, .zoom-out {
        animation-duration: 0.28s;
    }
    
    .animate-icon {
        font-size: 1.8rem !important;
    }
    
    .tool-card:hover {
        transform: translateY(-6px);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .animate-icon:hover {
        transform: scale(1.1) rotate(8deg);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    /* Tablet-specific scroll-up animations */
    .scroll-up-animating {
        animation-duration: 0.4s !important;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
}

/* Desktop animation optimizations */
@media (min-width: 1025px) {
    .scroll-up-animating {
        animation-duration: 0.5s !important;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    
    .tool-card:hover {
        transform: translateY(-8px);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .animate-icon:hover {
        transform: scale(1.15) rotate(12deg);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

/* Ultra-smooth hardware acceleration and performance optimizations */
.fade-in, .fade-out, .zoom-in, .zoom-out, .slide-in, .animate-icon, .tool-card, .blog-card, .country-card, .scroll-up-animating {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: auto;
}

/* Optimize scrolling performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Hero title animation support */
.hero-section h1 {
    will-change: auto;
    transform: translateZ(0); /* Hardware acceleration */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth text reveal animation */
@keyframes smoothTextReveal {
    from {
        width: 0;
        opacity: 0;
        transform: translateY(20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        width: 100%;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Prevent layout shifts during hero animation */
.hero-section .container > div {
    min-height: 200px;
}

/* Scroll-up animation support classes */
.scroll-up-animation {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.scroll-up-animating {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Enhanced scroll-up zoom animations */
@keyframes scrollUpZoomIn {
    from {
        transform: scale(0.7) translateY(30px);
        opacity: 0;
    }
    50% {
        transform: scale(1.05) translateY(-5px);
        opacity: 0.8;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes scrollUpSlideIn {
    from {
        transform: translateY(40px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes scrollUpZoomRotate {
    from {
        transform: scale(0.8) rotate(-5deg) translateY(25px);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg) translateY(0);
        opacity: 1;
    }
}

@keyframes scrollUpBounceIn {
    0% {
        transform: scale(0.5) translateY(50px);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) translateY(-10px);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes scrollUpFadeScale {
    from {
        transform: scale(0.85) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Success Animation */
.success-animation {
    animation: successPulse 0.6s ease-out;
}

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

/* Error Animation */
.error-animation {
    animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Dark Mode Styles */
.dark {
    --background-light-gray: #1a1a1a;
    --text-dark-gray: #ffffff;
}

.dark .neumorphism {
    background: #2a2a2a;
    box-shadow: 9px 9px 16px rgb(20, 20, 20), -9px -9px 16px rgb(40, 40, 40);
}

.dark .neumorphism-inset {
    background: #2a2a2a;
    box-shadow: inset 5px 5px 10px #1a1a1a, inset -5px -5px 10px #3a3a3a;
}

.dark .neumorphism-button {
    background: #2a2a2a;
    box-shadow: 6px 6px 12px #1a1a1a, -6px -6px 12px #3a3a3a;
}

/* Mobile Menu Button Styles */
#mobile-menu-btn {
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#mobile-menu-btn:active {
    transform: scale(0.95);
}

#mobile-menu-btn .material-icons {
    font-size: 24px;
    display: block;
}

/* Mobile Menu Styles */
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform-origin: top;
}

#mobile-menu.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px) scaleY(0.95);
    visibility: hidden;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0) scaleY(1);
    visibility: visible;
}

/* Mobile menu button icon transition */
#mobile-menu-btn .material-icons {
    transition: transform 0.3s ease;
}

#mobile-menu-btn.active .material-icons {
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Tablet styles for mobile menu button */
    #mobile-menu-btn {
        padding: 10px;
    }
    
    #mobile-menu-btn .material-icons {
        font-size: 26px;
    }
    
    /* Tablet mobile menu styles */
    #mobile-menu {
        max-height: 450px;
    }
    
    #mobile-menu a {
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    /* Generate Address button responsive sizing for tablet */
    #generate-btn {
        padding: 1.25rem 2.5rem !important;
        font-size: 1.125rem !important;
        min-width: 300px;
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    /* Mobile menu button responsive sizing */
    #mobile-menu-btn {
        padding: 12px;
        border-radius: 10px;
    }
    
    #mobile-menu-btn .material-icons {
        font-size: 28px;
    }
    
    /* Mobile menu items */
    #mobile-menu .px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    #mobile-menu a {
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.125rem;
    }
    
    #mobile-menu a:last-child {
        border-bottom: none;
    }
    
    /* Generate Address button responsive sizing for mobile */
    #generate-btn {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        min-width: 280px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    /* Container for Generate Address button */
    #generate-btn:nth-child(2) {
        flex-direction: column;
        align-items: center;
    }
    
    .flip-card {
        width: 100%;
        max-width: 300px;
    }
    
    .country-grid {
        height: 300px;
    }
    
    .tool-card {
        padding: 1rem;
    }
    
    .tool-card .material-icons {
        font-size: 2rem;
    }
    
    /* Responsive testimonials */
    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Responsive blog images */
    .blog-card img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    #mobile-menu-btn {
        padding: 10px;
        border-radius: 8px;
    }
    
    #mobile-menu-btn .material-icons {
        font-size: 24px;
    }
    
    #mobile-menu a {
        font-size: 1rem;
        padding: 0.875rem 0;
    }
    
    /* Generate Address button responsive sizing for very small screens */
    #generate-btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.9rem !important;
        min-width: 260px;
        max-width: 280px;
        white-space: nowrap;
    }
}

@media (max-width: 375px) {
    /* Ultra small mobile devices (iPhone SE, etc.) */
    #generate-btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
        min-width: 240px;
        max-width: 260px;
        letter-spacing: 0.025em;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices - larger tap targets and improved touch feedback */
    #generate-btn {
        min-height: 48px; /* Accessibility guideline for touch targets */
        touch-action: manipulation; /* Prevent double-tap zoom */
    }
    
    #generate-btn:active {
        transform: translateY(1px) scale(0.95);
        transition: all 0.1s ease;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sky-blue-accent);
}

/* Focus States */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--primary-blue);
    color: white;
}

/* Print Styles */
@media print {
    .glassmorphism,
    .neumorphism,
    .flip-card {
        box-shadow: none;
        background: white;
    }
    
    .tool-card {
        background: white;
        color: black;
    }
}

/* Blog Sidebar Styles */
.blog-content-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
}

.blog-main-content {
    flex: 1 1 65%;
    min-width: 0;
    max-width: 100%;
}

.blog-sidebar {
    flex: 1 1 30%;
    min-width: 250px;
    transition: all 0.3s ease;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Recent posts in sidebar */
.blog-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-sidebar ul li a {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.blog-sidebar ul li a:hover {
    transform: translateX(3px);
}

/* Categories in sidebar */
.blog-sidebar .flex-wrap a {
    display: inline-block;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    font-weight: 600;
    min-height: 48px;
    touch-action: manipulation;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.sidebar-toggle:hover {
    background-color: var(--sky-blue-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(37, 99, 235, 0.3);
}

.sidebar-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.sidebar-toggle .material-icons {
    margin-right: 0.5rem;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.sidebar-toggle .toggle-icon {
    transition: transform 0.3s ease;
}

/* Animate icon when sidebar state changes */
.sidebar-collapsed .sidebar-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* Responsive sidebar - Large screens */
@media (min-width: 1280px) {
    .blog-main-content {
        flex: 1 1 70%;
    }
    
    .blog-sidebar {
        flex: 1 1 25%;
    }
}

/* Responsive sidebar - Medium screens (tablets) */
@media (max-width: 1024px) and (min-width: 769px) {
    .blog-content-with-sidebar {
        gap: 1.5rem;
    }
    
    .blog-main-content {
        flex: 1 1 60%;
    }
    
    .blog-sidebar {
        flex: 1 1 35%;
    }
    
    .sidebar-section {
        padding: 1.25rem;
    }
    
    /* Show sidebar toggle on tablets too */
    .sidebar-toggle {
        display: flex;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .sidebar-toggle .material-icons {
        font-size: 1.125rem;
    }
}

/* Responsive sidebar - Small screens (mobile) */
@media (max-width: 768px) {
    .blog-content-with-sidebar {
        flex-direction: column;
    }
    
    .blog-main-content {
        width: 100%;
    }
    
    .blog-sidebar {
        width: 100%;
        margin-top: 2rem;
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .sidebar-collapsed {
        display: none;
    }
}

/* Extra small screens (small phones) */
@media (max-width: 375px) {
    .sidebar-section {
        padding: 1rem;
    }
    
    .blog-sidebar ul li a {
        flex-direction: column;
    }
    
    .blog-sidebar ul li a div:first-child {
        margin-bottom: 0.5rem;
        margin-right: 0;
        width: 100%;
        height: auto;
    }
    
    /* Smaller sidebar toggle for very small screens */
    .sidebar-toggle {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-toggle .material-icons {
        font-size: 1rem;
    }
}

/* Wave divider responsive styles */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

/* Responsive wave divider for mobile and tablet */
@media (max-width: 1024px) {
    .wave-divider svg {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .wave-divider svg {
        height: 100px;
        width: calc(100% + 2px);
    }
}

@media (max-width: 480px) {
    .wave-divider svg {
        height: 80px;
        width: calc(100% + 3px);
    }
}

@media (max-width: 375px) {
    .wave-divider svg {
        height: 60px;
        width: calc(100% + 4px);
    }
}

/* Ready to Generate Section Wave Dividers */
.ready-to-generate-section {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.ready-to-generate-section > div {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.ready-to-generate-section > div:first-child {
    top: 0;
    z-index: 1;
}

.ready-to-generate-section > div:last-child {
    bottom: 0;
    z-index: 1;
}

.ready-to-generate-section .container {
    position: relative;
    z-index: 10;
}

.ready-to-generate-section > div svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    min-height: 80px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Responsive styles for Ready to Generate wave dividers */
@media (max-width: 1024px) {
    .ready-to-generate-section {
        min-height: 350px;
    }
    
    .ready-to-generate-section > div svg {
        max-height: 250px;
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .ready-to-generate-section {
        min-height: 300px;
    }
    
    .ready-to-generate-section > div svg {
        max-height: 200px;
        min-height: 60px;
    }
    
    .ready-to-generate-section .container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .ready-to-generate-section {
        min-height: 280px;
    }
    
    .ready-to-generate-section > div svg {
        max-height: 150px;
        min-height: 50px;
    }
    
    .ready-to-generate-section .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 375px) {
    .ready-to-generate-section {
        min-height: 260px;
    }
    
    .ready-to-generate-section > div svg {
        max-height: 120px;
        min-height: 40px;
    }
    
    .ready-to-generate-section .container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* Fix for Chrome mobile viewport issues */
@media screen and (max-width: 768px) {
    .ready-to-generate-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    .ready-to-generate-section > div svg {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* Ready to Generate Section Content Responsive Styles */
@media (max-width: 768px) {
    .ready-to-generate-section h2 {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .ready-to-generate-section p {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .ready-to-generate-section button {
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .ready-to-generate-section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 0.875rem !important;
    }
    
    .ready-to-generate-section p {
        font-size: 0.95rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    .ready-to-generate-section button {
        padding: 0.75rem 1.75rem !important;
        font-size: 0.95rem !important;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 375px) {
    .ready-to-generate-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .ready-to-generate-section p {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .ready-to-generate-section button {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        max-width: 260px;
    }
}

/* Fix for sections visibility */
.advanced-tools-section,
.why-use-us-section,
.from-blog-section,
.ready-to-generate-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.advanced-tools-section .container,
.why-use-us-section .container,
.from-blog-section .container,
.ready-to-generate-section .container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tool-card,
.blog-card {
    opacity: 1 !important;
    visibility: visible !important;
} 