/*=============================================
=            Variables & Resets               =
=============================================*/
:root {
    /* Colors */
    --primary: #2563eb; /* Modern Blue */
    --primary-dark: #1d4ed8;
    --secondary: #0f172a; /* Slate Dark */
    --accent: #3b82f6; /* Light Blue Accent */
    --bg-light: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --error: #ef4444;
    --success: #10b981;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

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

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

ul {
    list-style: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/*=============================================
=            Layout Components                =
=============================================*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--secondary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--primary);
    bottom: -5px;
    left: 25%;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

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

/*=============================================
=            Buttons & Cards                  =
=============================================*/
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
    backdrop-filter: blur(5px);
}

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

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
    display: block;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

/*=============================================
=            Navigation Header                =
=============================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo, 
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--secondary);
}

.navbar.scrolled .logo span {
    color: var(--primary);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
}

.navbar.scrolled .hamburger {
    color: var(--secondary);
}

/*=============================================
=            Hero Section                     =
=============================================*/
.hero {
    height: 100vh;
    min-height: 750px;
    background: url('https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    z-index: 2;
    animation: fadeIn 1s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 30px;
    animation: slideDown 0.8s ease forwards;
}

.trust-badge .stars {
    color: #fbbf24;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1;
}

.trust-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 35px;
    color: #e2e8f0;
    max-width: 700px;
    font-weight: 300;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-features i {
    color: #3b82f6; /* Accent Blue */
    font-size: 1.25rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.hero-btns .btn {
    padding: 15px 35px;
    font-size: 1.15rem;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/*=============================================
=            Services Section                 =
=============================================*/
.service-card {
    text-align: center;
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background-color: var(--primary);
    color: var(--white);
}

.service-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
}

/*=============================================
=            Pricing Section                  =
=============================================*/
.pricing-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price span:first-child {
    font-size: 1.5rem;
    align-self: flex-start;
    margin-top: 10px;
}

.price span:last-child {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.features {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features li {
    margin-bottom: 10px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.features li i {
    color: var(--primary);
    margin-right: 10px;
}

/*=============================================
=            Testimonials Section             =
=============================================*/
.testimonial-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: #fbbf24;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.client-info h4 {
    color: var(--secondary);
    font-size: 1.1rem;
}

.client-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/*=============================================
=            Contact Section                  =
=============================================*/
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.info-item i {
    color: var(--primary);
    background-color: rgba(37, 99, 235, 0.1);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.1rem;
}

.info-item h4 {
    color: var(--secondary);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.error-msg {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.success-msg {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.invalid input,
.invalid textarea {
    border-color: var(--error);
}

.invalid .error-msg {
    display: block;
}

/*=============================================
=            Footer                           =
=============================================*/
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-about h3 span {
    color: var(--primary);
}

.footer-about p {
    color: #94a3b8;
    margin-bottom: 20px;
    max-width: 400px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-services h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-services a {
    color: #94a3b8;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #0f172a;
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

/*=============================================
=            Scroll Animations                =
=============================================*/
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger for grid items so they animate in sequence */
.grid > .reveal:nth-child(1) { transition-delay: 0.1s; }
.grid > .reveal:nth-child(2) { transition-delay: 0.3s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.5s; }

/*=============================================
=            Responsive Design                =
=============================================*/
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 850px;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .trust-badge {
        flex-direction: column;
        gap: 5px;
        padding: 10px 15px;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
        gap: 20px;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links a:not(.btn) {
        color: var(--secondary);
    }
    
    .hamburger {
        display: block;
    }
    
    .navbar {
        background-color: var(--secondary);
        padding: 15px 0;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}
