/* style.css - Global Styles for GoBiz Tools Frontend */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a3a52; /* Dark Blue for text */
    background: #ffffff;
    direction: ltr;
    text-align: left;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Navbar and Mobile Menu */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

/* LOGO UPDATE: Increased max-width */
.logo-section img {
    max-width: 240px; /* Increased from 200px */
    height: auto;
    margin-right: 15px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #1a3a52;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2ba9d6;
}

/* Hamburger Icon Styling (Hidden on Desktop) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 200;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #1a3a52;
    transition: all 0.3s linear;
    border-radius: 5px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero h1 {
    font-size: 3em;
    color: #1a3a52;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3em;
    color: #5a6c7d;
    margin-bottom: 40px;
}

/* General CTA Button Style */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #2ba9d6;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(43, 169, 214, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #248fb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 169, 214, 0.4);
}

/* Sections */
.services, .features {
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.features {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 2.5em;
    color: #1a3a52;
    margin-bottom: 60px;
    font-weight: 700;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
    text-align: left;
}

.service-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--border-color, #2ba9d6);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2ba9d6 0%, #7ac943 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5em;
    color: white;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.feature-check {
    width: 30px;
    height: 30px;
    background: #7ac943;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: #1a3a52;
    color: white;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9em;
}

.footer p {
    margin: 10px 0;
    opacity: 0.85;
}

.footer a {
    color: #2ba9d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #7ac943;
}

/* Product Page Specific CSS (for product.php) */
.product-hero {
    padding: 80px 20px;
    background: #f0f4f7;
    text-align: center;
}

.product-hero h1 {
    font-size: 3.5em;
    color: #1a3a52;
    margin-bottom: 10px;
}

.product-hero p {
    font-size: 1.4em;
    color: #5a6c7d;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-section {
    padding: 40px 20px;
    background-color: #ffffff;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.content-section {
    padding: 60px 20px;
    text-align: center;
}

.content-section p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1em;
    line-height: 1.8;
    text-align: left;
}

.cta-banner {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(90deg, #2ba9d6 0%, #7ac943 100%);
    color: white;
}

.cta-banner h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.cta-banner .cta-button {
    background: white;
    color: #1a3a52;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Signup Page Specific CSS (for signup.php) */
.signup-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.signup-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.full-width {
    grid-column: 1 / -1;
}
.signup-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a3a52;
}
.signup-form input, .signup-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
}
.signup-form button {
    grid-column: 1 / -1;
    padding: 15px 40px;
    background: #7ac943; 
    color: white;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(122, 201, 67, 0.4);
}
.signup-form button:hover {
    background: #60a539;
}
.message {
    grid-column: 1 / -1;
    padding: 15px;
    margin-top: 15px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}
.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.section-header {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 5px;
    color: #2ba9d6;
    font-size: 1.4em;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 900px) {
    /* MOBILE MENU ACTIVATION */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        /* HIDDEN MENU STATE */
        position: absolute;
        top: 65px; 
        left: 0;
        width: 100%;
        background-color: #f8f9fa; 
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        display: none; 
        text-align: center;
        z-index: 90;
    }

    .nav-links.active {
        /* VISIBLE MENU STATE */
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-links a {
        padding: 10px 20px;
        display: block;
        border-bottom: 1px solid #eee;
    }
    
    /* HAMBURGER ANIMATION */
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }
}

@media (max-width: 600px) {
    .signup-form {
        grid-template-columns: 1fr; /* Single column on mobile for signup */
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .logo-section img {
        max-width: 180px;
    }
}