/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@700&family=Lora:wght@400&display=swap');

/* Base Styles */
:root {
    --primary: #3F51B5;
    --primary-light: #5C6BC0;
    --primary-dark: #303F9F;
    --background: #F8F9FF;
    --text-dark: #212121;
    --text-light: #757575;
    --white: #FFFFFF;
    --accent: #FF5722;
    --border: #E0E0E0;
    --card-shadow: 0 4px 10px rgba(0,0,0,.06);
    --transition: all 0.3s ease;
    --radius: 8px;
    --padding-section: clamp(1.5rem, 5vw, 3.5rem);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

a:hover, a:focus {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--padding-section);
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: bold;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover, .btn:focus {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

section {
    padding: 5rem 0;
    position: relative;
}

.card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition: var(--transition);
}

.section-slant {
    position: relative;
    z-index: 1;
    padding-bottom: 6rem;
}

.section-slant::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    background-color: var(--background);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
    z-index: -1;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

/* Logo Styling */
.logo {
    font-family: 'Merriweather Sans', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.logo a {
    color: inherit;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

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

.logo img {
    max-height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    position: relative;
    padding: 0.5rem 0;
}

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

.main-nav a:hover::after,
.main-nav a:focus::after {
    width: 100%;
}

/* Dot Navigation */
.dot-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
}

.dot-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dot-nav .dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background-color: transparent;
    transition: var(--transition);
}

.dot-nav .dot.active,
.dot-nav .dot:hover {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8rem 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/diagonal-stripes.svg');
    background-size: cover;
    opacity: 0.1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.video-container {
    flex: 1;
    transform: perspective(800px) rotateY(-15deg);
}

.video-mock {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.video-mock img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grid Layouts */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.modules {
    counter-reset: module;
}

.module-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    counter-increment: module;
}

.module-card::before {
    content: counter(module);
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8rem;
    font-weight: bold;
    color: rgba(63, 81, 181, 0.05);
    line-height: 1;
    font-family: 'Merriweather Sans', sans-serif;
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: calc(100% - 40px);
    background-color: var(--primary-light);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 40px;
    width: 15px;
    height: 10px;
    background-color: transparent;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid var(--primary);
}

.timeline-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

/* Scroll Container */
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 1.5rem;
    margin: 0 -1rem;
    padding: 1rem;
}

.testimonial {
    scroll-snap-align: start;
    min-width: 280px;
    width: 85%;
    flex-shrink: 0;
}

.testimonial-content {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    height: 100%;
}

.testimonial-content img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.testimonial-content h3,
.testimonial-content p {
    padding: 0 1.5rem;
}

.testimonial-content h3 {
    margin-top: 1rem;
}

.testimonial-content p {
    padding-bottom: 1.5rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info,
.contact-form {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Lora', serif;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.2);
}

/* Contact Form Thank You Message */
.thank-you-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.thank-you-message.show {
    opacity: 1;
    visibility: visible;
}

.thank-you-message .card {
    max-width: 400px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.thank-you-message.show .card {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--text-light);
    margin-top: 1rem;
}

.btn-secondary:hover, 
.btn-secondary:focus {
    background-color: var(--text-dark);
}

.contact-form {
    position: relative;
}

/* Footer Styles */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
}

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

.company-details {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Placeholder Pages */
.page-content {
    padding: 8rem 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-section {
    max-width: 700px;
    margin: 0 auto;
}

.construction-notice {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.placeholder-section .btn {
    margin-top: 2rem;
}

/* Responsive Design */
@media screen and (min-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-container {
        flex-direction: row;
    }
    
    .contact-info,
    .contact-form {
        flex: 1;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .timeline {
        flex-direction: row;
    }
    
    .timeline::before {
        left: 0;
        top: 20px;
        width: calc(100% - 40px);
        height: 2px;
    }
    
    .timeline-item {
        flex: 1;
        padding-left: 0;
        padding-top: 40px;
    }
    
    .timeline-item::before {
        left: 10px;
        top: 16px;
    }
    
    .timeline-item::after {
        transform: rotate(-90deg);
        left: 10px;
        top: 30px;
    }
    
    .testimonial {
        width: 300px;
    }
}

@media screen and (min-width: 992px) {
    main {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    section {
        grid-column: span 3;
    }
    
    .hero .container {
        min-height: 500px;
    }
    
    .grid-layout.modules {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dot-nav {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .hero .container {
        flex-direction: column;
    }
    
    .video-container {
        transform: none;
        width: 100%;
    }
    
    .dot-nav {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
} 