/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern variables for consistent theming */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --background-color: #ffffff;
    --spacing-unit: 1rem;

    /* Primary colors */
    --dark-blue: #002B5B;     /* Darker, richer navy */
    --light-blue: #1B4B79;    /* More visible medium blue */
    --gold: #C4A02D;          /* Slightly darker gold for better contrast */
    
    /* Supporting colors */
    --white: #FFFFFF;
    --off-white: #F5F6F8;     /* Slightly cooler off-white */
    --text-dark: #1A1A1A;     /* Near-black for main text */
    --text-light: #F8F9FA;    /* Off-white for text on dark backgrounds */
    
    /* Other variables remain the same */
    --max-width: 1400px;
    --grid-gap: 2rem;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-container {
    flex: 1 0 auto;
}

header {
    position: relative;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 0.5rem 0;
    width: 100%;
}

.logo-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 3rem;  /* Reduced padding for better spacing */
    grid-column: 1 / -1;   /* Make it span full width */
}

.logo-wrapper {
    position: relative;
    background: white;
    padding: 1.2rem;  /* Slightly reduced padding */
    border-radius: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
    transform: translateY(25%);
    z-index: 10;
    width: fit-content;  /* Added to ensure wrapper only takes needed space */
}

.logo {
    display: block;
    max-width: 200px;  /* Slightly reduced for better mobile display */
    height: auto;
}

.header-content {
    grid-column: 2 / 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1, h2, h3 {
    color: #1a237e;  /* Dark blue color */
}

h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.tagline {
    font-style: italic;
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 500;  /* Slightly bolder for better visibility */
}

main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

section {
    margin: 3rem 0;
}

h2 {
    font-size: 3rem;
    text-align: left;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.intro {
    grid-column: 1 / 13;
    text-align: left;
    padding: 2rem 0;
    max-width: none;
    margin-top: 5rem;  /* Increased from 4rem to 5rem to prevent overlap */
}

.intro h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.intro .tagline {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--gold);
    font-family: 'Raleway', sans-serif;
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: left;
    max-width: none;
    margin-bottom: 1.5rem;
    white-space: normal;
}

.service-item {
    background-color: var(--off-white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.cta {
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    color: var(--text-light);
    padding: 4rem;
    border-radius: 16px;
    margin: 6rem 0;
    grid-column: 2 / 12;
}

.cta p {
    max-width: 800px;
    margin: 1rem auto;
    font-size: 1.2rem;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.8;
    white-space: normal;
    text-align: center;
}

.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    background-color: var(--gold);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--dark-blue);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.phone-number {
    color: var(--gold);
    font-size: 1.4rem;
    margin: 2rem 0 0.5rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.phone-number:hover {
    color: var(--white);
    transform: translateY(-2px);
}

footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1200px) {
    .intro h1 {
        font-size: 3.5rem;
    }
    
    .intro .tagline {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .grid-container {
        padding: 0 2rem;
    }
    
    .intro h1 {
        font-size: 2.8rem;
    }
    
    .intro .tagline {
        font-size: 1.4rem;
    }
    
    .intro p {
        font-size: 1.1rem;
    }

    header {
        padding: 0.75rem 0;  /* Slightly smaller padding on tablets */
    }

    .logo {
        max-width: 180px;  /* 20% smaller on tablets */
    }

    .logo-wrapper {
        padding: 1.25rem;  /* Slightly reduced padding */
    }

    .logo-container {
        padding-bottom: 2rem;
    }

    .logo-wrapper {
        padding: 1rem;
        transform: translateY(20%);
    }

    .logo {
        max-width: 160px;  /* Smaller on mobile */
    }

    .intro {
        margin-top: 3rem;  /* Reduced top margin on mobile */
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .intro .tagline {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;  /* Even smaller padding on mobile */
    }

    .logo {
        max-width: 150px;  /* Even smaller on mobile */
    }

    .logo-wrapper {
        padding: 0.8rem;
        transform: translateY(15%);
    }

    .logo-container {
        padding-bottom: 2.5rem;  /* Reduced bottom padding */
    }

    .intro {
        margin-top: 2.5rem;
    }

    .grid-container {
        padding: 0 0.8rem;
    }
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--grid-gap);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;  /* Reduced padding for better mobile display */
    width: 100%;
}

.founding-partners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--grid-gap);
    grid-column: 2 / 12;
    margin-top: 2rem;
}

/* Add this new style */
.founding-partners .section-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

/* Card Design */
.partner-card {
    background-color: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
}

.why-choose-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    align-items: center;
}

.why-choose-content {
    padding-right: 2rem;
}

.why-choose-title {
    font-size: 3.5rem;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.why-choose-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-blue);
    margin-bottom: 2rem;
}

.why-choose-card {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    height: 100%;
}

.why-choose-card p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: var(--white);
    color: var(--dark-blue);
}

@media (max-width: 768px) {
    .why-choose-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 1rem;
    }
    
    .why-choose-content {
        padding-right: 0;
    }
    
    .why-choose-title {
        font-size: 2.5rem;
    }
}

/* Add these to your existing CSS file */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.advisory-vs-consultancy,
.why-choose-us {
    grid-column: 2 / 12;
    margin: 4rem 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .grid-container {
        padding: 0 1rem;
    }

    .founding-partners {
        grid-template-columns: 1fr;
        grid-column: 1 / -1;
        padding: 0 1rem;
    }

    .partner-card {
        margin-bottom: 2rem;
    }

    .advisory-vs-consultancy,
    .why-choose-us {
        grid-column: 1 / -1;
        padding: 0 1rem;
    }

    .cta {
        grid-column: 1 / -1;
        margin: 3rem 1rem;
        padding: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .intro p {
        font-size: 1rem;
    }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
    .logo {
        max-width: 200px;
    }

    h1 {
        font-size: 2rem;
    }

    .cta {
        padding: 1.5rem;
    }
}

/* Modern container with responsive max-width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Responsive navigation */
nav ul {
    display: flex;
    gap: var(--spacing-unit);
    list-style: none;
    padding: var(--spacing-unit);
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Modern card style */
.card {
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-unit);
    margin: var(--spacing-unit) 0;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Modern button style */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: var(--secondary-color);
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    .container {
        padding: 0 calc(var(--spacing-unit) / 2);
    }
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes elegantReveal {
    0% {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Add animation classes */
.animate-entry {
    opacity: 0;
    animation: elegantReveal 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Add animation delays for smoother sequence */
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
    .animate-entry,
    .animate-fade,
    .intro h1,
    .intro .tagline,
    .partner-card {
        animation: none;
        opacity: 1;
    }
}

/* Accessibility improvements */
:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: white;
    color: black;
    text-decoration: none;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
}

/* Improve partner card focus states */
.partner-card:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

/* Improve button focus states */
.cta-button:focus,
.contact-button:focus {
    outline: 3px solid var(--white);
    outline-offset: 2px;
}

/* Enhanced text animations for specific elements */
.intro h1 {
    animation: slideInLeft 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.intro .tagline {
    animation: elegantReveal 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s forwards;
}

.partner-card {
    opacity: 0;
    animation: elegantReveal 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Enhanced hover effects */
.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Ensure smooth transitions */
.cta-button,
.phone-number,
.partner-card {
    transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Services Section */
.services {
    grid-column: 2 / 12;
    margin: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    background-color: var(--off-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Contact Info Styling */
.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.phone-number {
    font-size: 1.6rem;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .services {
        grid-column: 1 / -1;
        padding: 0 1rem;
    }
    
    .service-item {
        padding: 2rem;
    }
}

/* Scroll Animation Updates */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for scroll animations */
.scroll-delay-1 { transition-delay: 0.2s; }
.scroll-delay-2 { transition-delay: 0.4s; }
.scroll-delay-3 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.advisory-vs-consultancy .content-wrapper,
.why-choose-us .content-wrapper {
    text-align: left;
    max-width: 800px;
    margin: 0;
}