/* JoyNotes - Main Custom Stylesheet */

/* ============================================
   BASE & LAYOUT
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION RESPONSIVE STYLES
   ============================================ */

.desktop-nav {
    display: flex !important;
}

.mobile-toggle {
    display: none !important;
}

@media (max-width: 991.98px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: block !important;
    }
}

.mobile-nav-link:hover {
    background: rgba(6,170,197,0.1);
    border-left-color: #06AAC5 !important;
}

/* ============================================
   FOOTER RESPONSIVE STYLES
   ============================================ */

.notebook-social-icon:hover {
    background: #06AAC5 !important;
    color: white !important;
    border-color: #06AAC5 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(6,170,197,0.4);
}

.notebook-footer-link:hover {
    color: #06AAC5 !important;
    padding-left: 8px;
}

.footer-logo-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ============================================
   UTILITY RESPONSIVE CLASSES
   ============================================ */

.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.animated-float {
    animation: float 3s ease-in-out infinite;
}

.countdown-demo {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ICON BOXES
   ============================================ */

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 28px;
}

.icon-large {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ============================================
   CARDS & HOVER EFFECTS
   ============================================ */

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* ============================================
   STEP COUNTER
   ============================================ */

.step-counter {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
}

/* ============================================
   FEATURE GRID
   ============================================ */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.toggle-group {
    display: inline-flex;
    border: 2px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: white;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
}

.price {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
}

.savings-badge {
    background-color: var(--accent);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    font-size: 18px;
    margin-right: 10px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1) !important;
}

.accordion-button {
    color: #333;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.form-control,
.form-select,
.form-textarea {
    border-color: #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: rgba(var(--primary-rgb), 0.9);
    border-color: rgba(var(--primary-rgb), 0.9);
}

/* ============================================
   TEXT UTILITIES
   ============================================ */

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    body {
        font-size: 14px;
    }

    .hero-gradient {
        padding: 40px 0 !important;
    }

    .hero-gradient h1 {
        font-size: 28px !important;
        line-height: 1.3;
    }

    .hero-gradient .lead {
        font-size: 16px !important;
    }

    .countdown-demo {
        font-size: 32px !important;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .icon-large {
        font-size: 36px;
    }

    .step-counter {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .price {
        font-size: 36px !important;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        margin-bottom: 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    section {
        padding: 40px 0 !important;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    .card {
        margin-bottom: 20px;
    }

    .toggle-group {
        flex-direction: column;
        width: 100%;
    }

    .toggle-btn {
        width: 100%;
        padding: 12px;
    }

    .navbar-brand img {
        max-height: 35px !important;
    }

    .navbar-nav {
        margin-top: 15px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-gradient h1 {
        font-size: 32px !important;
    }

    .hero-gradient .lead {
        font-size: 18px !important;
    }

    .countdown-demo {
        font-size: 40px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }

    section {
        padding: 50px 0 !important;
    }

    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 22px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-gradient h1 {
        font-size: 36px !important;
    }

    .countdown-demo {
        font-size: 44px;
    }

    .step-counter {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .pricing-card.featured {
        transform: scale(1.03);
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    section {
        padding: 60px 0 !important;
    }

    h1 {
        font-size: 36px !important;
    }

    h2 {
        font-size: 30px !important;
    }

    .icon-box {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-gradient h1 {
        font-size: 42px !important;
    }

    .pricing-card.featured {
        transform: scale(1.04);
    }

    section {
        padding: 70px 0 !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }

    .hero-gradient {
        padding: 100px 0 !important;
    }

    .hero-gradient h1 {
        font-size: 48px !important;
    }

    .countdown-demo {
        font-size: 52px;
    }

    section {
        padding: 80px 0 !important;
    }

    .container {
        max-width: 1140px;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-gradient h1 {
        font-size: 54px !important;
    }

    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }

    .pricing-card {
        padding: 40px;
    }
}

/* Landscape orientation adjustments for phones/tablets */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-gradient {
        padding: 30px 0 !important;
    }

    section {
        padding: 30px 0 !important;
    }

    .modal-dialog {
        margin: 10px auto;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .back-home,
    footer {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* Legacy responsive rules */
@media (max-width: 768px) {
    .step-counter {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

