/* Common Styles - Used by both index.html and invertor.html */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: #344864;
    background: #fafbfc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(109, 171, 210, 0.03) 0%, transparent 50%),
        radial-gradient(at 100% 100%, rgba(151, 189, 88, 0.03) 0%, transparent 50%);
    min-height: 100vh;
}

.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(52, 72, 100, 0.08);
    border-bottom: 1px solid rgba(109, 171, 210, 0.2);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #344864;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: #344864;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #6dabd2;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #97bd58 0%, #6dabd2 100%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

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

.hero {
    background: white;
    border-radius: 24px;
    padding: 5rem 3rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 
        0 4px 6px rgba(52, 72, 100, 0.05),
        0 20px 60px rgba(52, 72, 100, 0.08);
    border: 1px solid rgba(109, 171, 210, 0.12);
    scroll-margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #97bd58 0%, #6dabd2 50%, #344864 100%);
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: #344864;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: #5a6b7f;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.section {
    background: white;
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    margin: 2rem 0;
    box-shadow: 
        0 2px 4px rgba(52, 72, 100, 0.04),
        0 16px 48px rgba(52, 72, 100, 0.06);
    border: 1px solid rgba(109, 171, 210, 0.1);
    scroll-margin-top: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 8px rgba(52, 72, 100, 0.06),
        0 20px 56px rgba(52, 72, 100, 0.1);
}

.section h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: #344864;
    position: relative;
    padding-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #97bd58 0%, #6dabd2 100%);
    border-radius: 4px;
}

.contact-info {
    background: linear-gradient(135deg, #fafbfc 0%, #f5f8fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2rem;
    text-align: center;
    border: 2px solid rgba(109, 171, 210, 0.15);
    transition: all 0.3s ease;
}

.contact-info:hover {
    border-color: rgba(109, 171, 210, 0.3);
    box-shadow: 0 4px 12px rgba(109, 171, 210, 0.1);
}

.contact-info a {
    color: #6dabd2;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.contact-info a:hover {
    color: #97bd58;
    background: rgba(151, 189, 88, 0.1);
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: 2rem;
    color: #5a6b7f;
    margin-top: 2rem;
}

/* FAB Button Styles */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #97bd58 0%, #85a84a 100%);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 
        0 8px 24px rgba(151, 189, 88, 0.4),
        0 4px 12px rgba(151, 189, 88, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    animation: shake 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.fab:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(151, 189, 88, 0.5),
        0 8px 20px rgba(151, 189, 88, 0.4);
    background: linear-gradient(135deg, #a5c968 0%, #97bd58 100%);
    animation: none;
}

.fab:active {
    transform: scale(0.95);
}

@keyframes shake {
    0% { transform: translateX(0) translateY(0); }
    6% { transform: translateX(-6px); }
    12% { transform: translateX(6px); }
    18% { transform: translateX(-6px); }
    25% { transform: translateX(0) translateY(0); }
    85% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(0) translateY(0); }
}

.fab-icon {
    font-size: 1.3rem;
}

/* Common Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 2rem 0.67rem;
    }

    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 1rem 1rem;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
        gap: 0.8rem;
        font-size: 0.9rem;
    }

    .nav-links a::after {
        display: none;
    }

    .logo {
        height: 40px;
        margin-bottom: 0.5rem;
        gap: 0.5rem;
    }

    .logo img {
        max-width: 150px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hero {
        scroll-margin-top: 140px;
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 2rem 1rem;
        scroll-margin-top: 140px;
    }

    .fab {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .fab-icon {
        font-size: 1.1rem;
    }
}

