/* styles.css - External stylesheet for Frozen Analysis website */

/* -------------- Global Styles -------------- */

:root {
    /* Color palette */
    --primary-dark: #1a2a40;
    --primary-medium: #264d73;
    --primary-light: #336699;
    --accent: #00e6f6;
    --accent-glow: #b3fcff;
    --text-light: #e6f7ff;
    --text-dark: #333;
    --bg-light: #f0f8ff;
    --secondary: #87ceeb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: linear-gradient(to bottom right, var(--primary-dark), var(--primary-medium), var(--primary-light));
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 230, 246, 0.5);
}

img {
    max-width: 100%;
    height: auto;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 0 15px rgba(0, 230, 246, 0.5);
}

.cta-button:hover {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 230, 246, 0.8);
}

/* -------------- Wave Animation -------------- */

.wave {
    display: inline-block;
    animation: wave-animation 2s infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-animation {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    45% { transform: rotate(14deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

/* -------------- Header & Navigation -------------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 42, 64, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 70px;
}

.brand {
    margin-right: auto;
    margin-left: 20px;
}

.brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 230, 246, 0.5);
    margin: 0;
}

.brand p {
    font-size: 0.9rem;
    color: var(--text-light);
}

nav .nav-menu {
    display: flex;
    list-style: none;
}

nav .nav-menu li {
    margin-left: 20px;
}

nav .nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav .nav-menu a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav .nav-menu a:not(.cta-button):hover {
    color: var(--accent);
}

nav .nav-menu a:not(.cta-button):hover::after {
    width: 100%;
}

nav .nav-menu .cta-button {
    padding: 8px 20px;
    margin-top: -8px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--text-light);
    transition: all 0.3s ease;
}

/* -------------- Hero Section -------------- */

.hero {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 230, 246, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-left: 40px;
}

/* -------------- Services Section -------------- */

.services {
    background: rgba(26, 42, 64, 0.7);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 230, 246, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, rgba(38, 77, 115, 0.9), rgba(26, 42, 64, 0.9));
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 230, 246, 0.3);
}

.service-card .icon {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-dark);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 230, 246, 0.5);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* -------------- About Section -------------- */

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 3;
}

.about-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    flex: 2;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 230, 246, 0.2);
}

/* -------------- Testimonials Section -------------- */

.testimonials {
    background: linear-gradient(to right, rgba(26, 42, 64, 0.8), rgba(38, 77, 115, 0.8));
    position: relative;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 230, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    background: rgba(51, 102, 153, 0.3);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 350px;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 230, 246, 0.2);
}

.testimonial .quote {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial .quote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(0, 230, 246, 0.1);
    position: absolute;
    top: -20px;
    left: -15px;
    z-index: -1;
    font-family: Georgia, serif;
}

.client {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 600;
    color: var(--accent);
}

.client-business {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* -------------- Contact Section -------------- */

.contact {
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item .icon {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-dark);
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 230, 246, 0.4);
    flex-shrink: 0;
}

.contact-item .text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--accent);
}

.contact-item .text p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.contact-form {
    background: rgba(38, 77, 115, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom color for the Subject dropdown text and its list options */
#subject {
    color: var(--accent);
}

#subject option {
    background-color: var(--primary-dark);
    color: var(--accent);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 230, 246, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-button {
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    box-shadow: 0 0 15px rgba(0, 230, 246, 0.4);
}

.submit-button:hover {
    background: var(--accent-glow);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 230, 246, 0.6);
}

/* -------------- Footer -------------- */

footer {
    background: var(--primary-dark);
    padding: 70px 0 30px;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about .footer-logo {
    width: 80px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h3,
.footer-services h3,
.footer-social h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-services li {
    opacity: 0.8;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 230, 246, 0.5);
}

.newsletter {
    margin-top: 20px;
}

.newsletter p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px 0 0 5px;
    color: var(--text-light);
}

.newsletter-form button {
    background: var(--accent);
    border: none;
    padding: 10px 15px;
    color: var(--primary-dark);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-glow);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* -------------- Back to Top Button -------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--primary-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(0, 230, 246, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--accent-glow);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 230, 246, 0.8);
}

/* -------------- Responsive Design -------------- */

@media screen and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about .container {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 40px;
        width: 100%;
    }
    
    .about-content .section-title {
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    /* Reduced hero padding for mobile to fix large top gap */
    .hero {
        padding-top: 70px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        padding-left: 0;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 2000;
    }
    
    nav .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 350px;
        background: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        z-index: 1500;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    nav .nav-menu.active {
        right: 0;
    }
    
    nav .nav-menu li {
        margin: 15px 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 576px) {
    header .container {
        padding: 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-slider {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial {
        width: 100%;
    }
}