/* Base Styles */
:root {
    --primary-color: #003366;
    --secondary-color: #ff9800;
    --accent-color: #e6f2ff;
    --text-color: #333;
    --light-text: #fff;
    --dark-text: #222;
    --light-bg: #f9f9f9;
    --border-color: #ddd;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #002244;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    color: var(--primary-color);
    padding: 8px 15px;
    text-decoration: underline;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Policy Page Styles */
.policy-content {
    padding: 60px 0;
    background: var(--light-bg);
}

.policy-section {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.policy-section h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.policy-section p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.policy-section ul {
    margin: 20px 0;
    padding-left: 30px;
}

.policy-section li {
    margin-bottom: 10px;
    position: relative;
}

.policy-section li:before {
    content: '•';
    color: var(--secondary-color);
    font-size: 18px;
    position: absolute;
    left: -20px;
}

@media (max-width: 768px) {
    .policy-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    .policy-section h2 {
        font-size: 24px;
    }
}

.section-header p {
    color: #666;
    font-size: 18px;
    max-width: 700px;
    margin: 20px auto 0;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
}

.logo .highlight {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('../images/team-professionals.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

.hero-content h1 {
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.hero-content h1:hover {
    transform: scale(1.05);
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hero-content p {
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero-content p:hover {
    transform: translateY(-5px);
    color: var(--secondary-color);
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
    visibility: visible;
    transition: all 0.4s ease;
}

.hero-content .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    visibility: visible;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out forwards;
    opacity: 1;
    visibility: visible;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 1;
    visibility: visible;
}

/* Services Section */
.services {
    background: linear-gradient(rgba(249, 249, 249, 0.9), rgba(249, 249, 249, 0.9)), url('../images/financial-growth.png');
    background-size: cover;
    background-position: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

@media screen and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition-medium);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Animation classes */
.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Performance optimizations */
.lazy-image {
    transition: opacity 0.3s ease;
}

/* Exclusive professional styling enhancements */
.testimonial-card {
    transition: var(--transition-medium);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.2);
    outline: none;
}

/* Improve mobile responsiveness */
@media (max-width: 768px) {
    .animate-in {
        animation: fadeIn 0.5s ease-out forwards;
    }
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: #fff;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    margin: 20px;
    box-shadow: var(--shadow);
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-content p {
    font-style: italic;
    font-size: 18px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '"';
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-content p:before {
    top: -20px;
    left: -10px;
}

.testimonial-content p:after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 14px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background-color: transparent;
    border: none;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

.testimonial-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* About Section */
.about {
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
}

.about-text ul {
    margin-bottom: 25px;
}

.about-text li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-text li:before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.info-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

#formStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

#formStatus.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

#formStatus.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo a {
    color: var(--light-text);
    font-size: 24px;
    font-weight: 700;
}

.footer-logo .highlight {
    color: var(--secondary-color);
}

.footer-logo p {
    margin-top: 15px;
    font-size: 14px;
}

.footer-links h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -10px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Email Signup Card */
.email-signup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(100%);
    opacity: 0;
}

.email-signup.show {
    transform: translateY(0);
    opacity: 1;
}

.signup-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signup-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 18px;
    cursor: pointer;
}

.signup-body {
    padding: 20px;
}

.signup-body p {
    margin-bottom: 15px;
    font-size: 14px;
}

#signupStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    font-size: 14px;
}

#signupStatus.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
    display: block;
}

#signupStatus.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
    display: block;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    z-index: 1000;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Blog Page Styles */
.blog-header {
    background: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('../images/digital-analytics.png');
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 120px 0 60px;
}

.blog-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.blog-content {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-post {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-date {
    font-size: 14px;
    color: #666;
    margin: 20px 20px 10px;
}

.blog-post h2 {
    font-size: 20px;
    margin: 0 20px 15px;
    line-height: 1.4;
}

.blog-post p {
    color: #666;
    margin: 0 20px 20px;
    font-size: 15px;
}

.blog-post .btn {
    margin: 0 20px 20px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .email-signup {
        width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}