/* Minimalista Styles - Dark & Light Mode */

/* Clean Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
}

p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
}

/* Smooth Spacing */
section {
    padding: clamp(2rem, 8vw, 5rem) 0;
}

/* Refined Buttons */
.button {
    letter-spacing: 0.5px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: clamp(0.5rem, 2vw, 0.67rem) clamp(1rem, 3vw, 1.9rem);
    font-size: clamp(0.75rem, 2vw, 0.95rem);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.light-mode .button:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Read More Button */
.button.read {
    background-color: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
}

.button.read:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Feature Boxes */
.box {
    border: none;
    border-radius: 8px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

body.light-mode .box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

body.light-mode .box:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Feature Box Title */
.feature span {
    display: block;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Accordion Styling */
.accordion-button {
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
    font-weight: 600;
    letter-spacing: 0.3px;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.accordion-button:not(.collapsed) {
    box-shadow: none;
    border-bottom-color: var(--primary);
}

.accordion-body {
    padding: clamp(0.75rem, 2vw, 1.5rem) 0;
    border: none;
    line-height: 1.7;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* Footer Styling */
footer {
    padding: clamp(2rem, 5vw, 3rem) 0 clamp(0.5rem, 2vw, 1rem);
    border-top: 1px solid var(--border-color);
}

footer p {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    letter-spacing: 0.3px;
}

footer a {
    font-weight: 500;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.6;
}

/* Navbar Styling */
.navbar-nav .nav-link {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: opacity 0.3s ease;
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.5rem, 2vw, 1rem);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
}

.navbar-nav .nav-link:hover {
    opacity: 0.7;
}

/* Top Text Styling */
.top-text h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    letter-spacing: -0.5px;
}

.top-text p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Section Dividers */
section hr {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: clamp(1rem, 2vw, 1.5rem) 0;
}

/* Check Items */
.check span {
    font-weight: 500;
    letter-spacing: 0.2px;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
}

/* Promo Box */
.box.promo {
    border: 2px solid var(--primary);
    position: relative;
}

/* Typed Cursor */
.typed-cursor {
    opacity: 0.7;
}

.typed-cursor.typed-cursor--blink {
    animation: typedjsBlink 0.7s infinite;
}

/* SVG Elements */
svg {
    opacity: 0.9;
}

/* Smooth Page Load */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary);
    color: var(--button-text);
}

body.light-mode ::selection {
    background-color: #000;
    color: #fff;
}

/* ====== RESPONSIVE DESIGN ====== */

/* Mobile First - Base styles already optimized with clamp() */

/* Small Devices (tablets, landscape phones) */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    section {
        padding: clamp(1.5rem, 6vw, 3rem) 0;
    }
    
    .button {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .button + .button {
        margin-top: 1rem;
    }
    
    .navbar-brand img {
        width: 2.5rem !important;
    }
    
    .top-text {
        padding: 0 1rem;
    }
}

/* Medium Devices (tablets) */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
    
    .row > * {
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }
}

/* Large Devices (desktops) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .navbar-nav {
        gap: clamp(1rem, 2vw, 2rem);
    }
    
    .button:not(.rounded-circle) {
        display: inline-block;
        width: auto;
        margin-right: 0.5rem;
    }
    
    .button + .button {
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

/* Extra Large Devices */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Very Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Tablet & Desktop - Button Styling */
@media (min-width: 768px) {
    .button {
        display: inline-block;
        width: auto;
    }
    
    .button.rounded-circle {
        padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1.3rem, 3vw, 2rem);
    }
}

/* Mobile - Reduce margins in lists */
@media (max-width: 767px) {
    .row > div {
        margin-bottom: 1.5rem;
    }
    
    footer .items {
        margin-bottom: 1.5rem;
    }
    
    footer .items ul {
        margin-bottom: 1rem !important;
    }
}

/* Small Mobile - Further optimizations */
@media (max-width: 480px) {
    h1 {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }
    
    h2 {
        font-size: clamp(1.1rem, 5vw, 1.8rem);
    }
    
    .top-text h2 {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    
    section {
        padding: clamp(1.2rem, 5vw, 2.5rem) 0;
    }
    
    .feature span {
        font-size: clamp(0.7rem, 2vw, 0.85rem);
    }
    
    .navbar {
        padding: 0.3rem 0.75rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) {
    #landing {
        min-height: auto;
    }
    
    section {
        padding: clamp(1rem, 3vw, 2rem) 0;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .button {
        display: none;
    }
}
