/* 
 * Project Infra Landing Page Styles
 * A clean, modern design with white, black, and gray color scheme
 */

/* Base Styles & Variables */
:root {
    --color-primary: #333;
    --color-secondary: #808080;
    --color-light: #f2f2f2;
    --color-dark: #1a1a1a;
    --color-accent: #444444;
    --color-white: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Prevent scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-primary);
    background-color: var(--color-white);
}

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

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    line-height: 1.2;
}

p {
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style-type: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-header p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.section-intro {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.bg-dark h2:after {
    background-color: var(--color-white);
}

.bg-dark a {
    color: var(--color-white);
}

.bg-dark a:hover {
    color: var(--color-light);
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.bg-dark .btn-primary {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.bg-dark .btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--color-white);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 700;
}

.logo span {
    color: var(--color-accent);
}

nav ul {
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 30px;
}

nav a {
    font-weight: 500;
}

nav a.btn-primary {
    padding: 8px 20px;
}

/* Hero Section */
#hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
    flex: 1;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}



.hero-benefits {
    background-color: var(--color-light);
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.hero-benefits h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.hero-benefits ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
}

.hero-benefits ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-accent);
    font-weight: bold;
}

.hero-image {
    position: relative;
    max-width: 500px;
    flex: 1;
}

.image-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.transition-image {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 250px;
    z-index: 2;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Problem Section */
.problem-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.problem-content, .problem-image {
    flex: 1;
}

.problem-content h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.problem-content ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.problem-content ul li:before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0;
    color: #ff6b6b;
    font-weight: bold;
    background: rgba(255, 107, 107, 0.2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 14px;
}

.warning {
    font-size: 20px;
    font-weight: 600;
    font-style: italic;
    margin-top: 30px;
    padding: 20px;
    border-left: 4px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.problem-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Solution Section */
.solution-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.solution-content, .solution-image {
    flex: 1;
}

.solution-content h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.solution-content ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.solution-content ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-accent);
    font-weight: bold;
}

.solution-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card .icon {
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonial {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.quote {
    position: relative;
    padding: 0 40px;
    margin-bottom: 30px;
}

.quote:before, .quote:after {
    content: '"';
    font-family: var(--font-heading);
    font-size: 70px;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
}

.quote:before {
    top: -20px;
    left: 0;
}

.quote:after {
    bottom: -70px;
    right: 0;
}

.quote p {
    font-size: 22px;
    line-height: 1.6;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 20px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--color-secondary);
    margin-bottom: 0;
}

/* Call to Action Section */
.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
}

.cta-content h3 {
    font-size: 28px;
    margin-top: -15px;
    margin-bottom: 30px;
}

.urgency {
    font-style: italic;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Footer */
footer {
    padding: 40px 0 30px;
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

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

.footer-links a {
    color: var(--color-light);
    font-size: 14px;
    transition: var(--transition);
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.8;
}

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

.copyright a:hover {
    color: var(--color-white);
    text-decoration: underline;
    opacity: 1;
}

/* Media Queries */
@media (max-width: 992px) {
    #hero .container,
    .problem-container,
    .solution-container {
        flex-direction: column;
        gap: 60px;
    }
    
    .hero-content,
    .hero-image,
    .problem-content,
    .problem-image,
    .solution-content,
    .solution-image {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-image {
        margin-top: 30px;
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }
    
    #hero {
        padding: 150px 0 80px;
    }
    
    .benefit-card {
        margin-bottom: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

/* Mobile Menu Icon (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--color-white);
    z-index: 100;
    padding: 80px 30px 30px;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav ul li {
    margin: 15px 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 90;
}

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

/* Larger Tablets */
@media (max-width: 992px) {
    #hero .container,
    .problem-container,
    .solution-container {
        flex-direction: column;
        gap: 60px;
    }
    
    .hero-content,
    .hero-image,
    .problem-content,
    .problem-image,
    .solution-content,
    .solution-image {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-image {
        margin-top: 30px;
        order: 1;
    }
    
    .hero-content {
        order: 2;
    }
    
    #hero {
        padding: 150px 0 80px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
}

/* Medium Tablets & Small Laptops */
@media (max-width: 768px) {
    header nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links ul {
        justify-content: center;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    .cta-content h3 {
        font-size: 24px;
    }
}

/* Small Tablets & Large Phones */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .hero-content p,
    .section-intro {
        font-size: 16px;
    }
    
    .hero-benefits {
        padding: 15px;
    }
    
    .hero-benefits h2 {
        font-size: 20px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
    
    .cta-content h3 {
        font-size: 20px;
    }
    
    #hero {
        padding: 130px 0 60px;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 22px;
    }
    
    .hero-content h1 {
        font-size: 26px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .quote {
        padding: 0 15px;
    }
    
    .quote p {
        font-size: 16px;
    }
    
    .quote:before, .quote:after {
        font-size: 50px;
    }
    
    .author img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 24px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .cta-content h2 {
        font-size: 30px;
    }
    
    .cta-content h3 {
        font-size: 22px;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .quote {
        padding: 0 20px;
    }
    
    .quote p {
        font-size: 18px;
    }
}