/* CSS Custom Properties */
:root {
    --primary-color: #154E9B;
    --secondary-color: #4784F1;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-lighter: #999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(21, 78, 155, 0.1);
    --shadow-hover: 0 8px 30px rgba(21, 78, 155, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: 200px;
    height: auto;
    transition: var(--transition);
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 70px;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: #0f3d7a;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Background Animation */
.hero-bg {
    position: relative;
    height: 500px;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.floating-icon {
    position: absolute;
    background: var(--white);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 10%; left: 20%; }
.floating-icon:nth-child(2) { top: 30%; right: 10%; }
.floating-icon:nth-child(3) { top: 60%; left: 10%; }
.floating-icon:nth-child(4) { bottom: 20%; right: 30%; }
.floating-icon:nth-child(5) { top: 20%; left: 50%; }
.floating-icon:nth-child(6) { bottom: 40%; left: 60%; }

.floating-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Why MOORTOOLS Section */
.why-moortools {
    padding: 120px 0;
    background: var(--white);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.value-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.value-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.value-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.5;
}

/* Categories Section */
.categories {
    padding: 120px 0;
    background: var(--bg-light);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(30px);
}

.category-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Featured Tools Section */
.featured-tools {
    padding: 120px 0;
    background: var(--white);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.tool-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.tool-icon i {
    font-size: 1.6rem;
    color: var(--white);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.tool-card p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
}

.btn-tool {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-tool:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* CTA Banner */
.cta-banner {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-cta {
    background: var(--white);
    color: var(--primary-color);
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-cta:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Coming Soon Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
    animation: modalSlideIn 0.4s ease-out forwards;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.modal-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-body {
    padding: 20px 30px;
}

.modal-body p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
}

.modal-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modal-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-features li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-footer .btn {
    flex: 1;
    max-width: 180px;
}

.modal-notify {
    background: var(--bg-light) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
}

.modal-notify:hover {
    background: var(--border-color) !important;
}

/* Coming Soon Category Hover Effect */
.coming-soon-category {
    position: relative;
    cursor: pointer;
}

.coming-soon-category::after {
    content: 'Coming Soon';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.coming-soon-category:hover::after {
    opacity: 1;
    transform: scale(1);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-hamburger {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-bg {
        height: 300px;
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .value-grid,
    .category-grid,
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tools-grid {
        max-width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
    }
    
    .floating-icon i {
        font-size: 1.2rem;
    }
    
    /* Modal responsive styles */
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .value-card,
    .category-card,
    .tool-card {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .why-moortools,
    .categories,
    .featured-tools {
        padding: 80px 0;
    }
    
    .cta-banner {
        padding: 60px 0;
    }
}
