/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Variables */
:root {
    --primary-color: #0078d4; /* Microsoft Blue - Professional */
    --secondary-color: #00bcf2; /* Azure/Accent Blue */
    --text-dark: #1f2937;
    --text-light: #ffffff;
    --light-bg: #f3f4f6;
    --transition-speed: 0.3s;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 3.2em;
    color: var(--text-dark);
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 600;
    text-align: center;
}

h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

/* Header & Navigation */
header {
    background: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.logo-P, .logo-D {
    color: var(--primary-color);
}

.logo-sub {
    display: block;
    font-size: 0.5em;
    font-weight: 400;
    color: #6b7280;
}

nav a {
    margin-left: 25px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 5px 0;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

nav a:hover:after {
    width: 100%;
    left: 0;
    background: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-color: var(--secondary-color);
}

.secondary-btn:hover {
    background-color: #00a4d6;
    border-color: #00a4d6;
    transform: translateY(-2px);
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0, 120, 212, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 120, 212, 0); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e0f2ff, #ffffff);
    padding: 80px 0;
}

.hero-section .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.tagline {
    font-size: 1.2em;
    color: #555;
    margin: 20px 0 30px;
}

.hero-image-placeholder {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-image-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    object-fit: cover;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    transition: background-color var(--transition-speed);
}

.light-bg {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Why Choose Us / Features Grid */
.feature-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.feature-item {
    flex: 1;
    max-width: 300px;
    padding: 20px;
}

.feature-item h4 {
    font-size: 1.3em;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    font-style: italic;
    margin: 30px auto;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    background-color: #e6f0ff;
    color: #555;
    max-width: 600px;
}

/* Legal Links */
.legal-links-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.legal-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 6px;
    transition: background-color var(--transition-speed);
}

.legal-btn:hover {
    background-color: var(--secondary-color);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease;
    overflow: hidden;
}

.hidden-content {
    max-height: 0;
    opacity: 0;
    padding: 0 20px; /* Reset vertical padding when hidden */
}

.legal-content:not(.hidden-content) {
    max-height: 2000px; /* Allow content to expand */
    opacity: 1;
    padding: 20px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 188, 242, 0.2);
}

.contact-form textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--text-light);
    padding: 30px 0;
    font-size: 0.9em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-light);
    margin-left: 20px;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--secondary-color);
    opacity: 1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(31, 41, 55, 0.95); /* Dark background */
    color: var(--text-light);
    padding: 15px 20px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease-out, opacity 0.5s;
    opacity: 1;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

#accept-cookies:hover {
    background-color: var(--secondary-color);
}

/* --- ANIMATION STYLES (Used with JS Intersection Observer) --- */

/* Initial states for animation */
.slide-in-left, .slide-in-right, .fade-in-up {
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth cubic transition */
}

/* Visibility classes */
.animate-visible {
    opacity: 1;
    transform: none !important;
}

/* Specific initial transforms */
.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.fade-in-up {
    transform: translateY(20px);
}

/* Delays for staggered animation */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* --- Media Queries for Responsiveness --- */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5em;
    }
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image-placeholder {
        margin-top: 30px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.8em;
    }
    header .container {
        flex-direction: column;
    }
    nav {
        margin-top: 15px;
        text-align: center;
    }
    nav a {
        margin: 0 10px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    .feature-grid {
        flex-direction: column;
        align-items: center;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}