:root {
    --primary-color: #0066cc;
    --secondary-color: #001f3f;
    --accent-color: #7cb9e8;
    --text-color: #333;
    --light-bg: #f5f8fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-color);
}

.header {
    background: var(--secondary-color);
    padding: 1.5rem;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.hero {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 12rem 2rem 5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.8s ease forwards;
}

.hero-content .dynamic-text {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-content .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInFromRight 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-button.outline {
    color: white;
    border: 2px solid white;
    background: transparent;
}

.hero-button.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-button:not(.outline) {
    background: white;
    color: var(--secondary-color);
    border: 2px solid white;
}

.hero-button:not(.outline):hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.section {
    padding: 4rem 2rem;
}

.section:nth-child(even) {
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.project-logo {
    width: 100%;
    height: auto;
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.card:hover .project-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
}

.card-link:hover .card {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer {
    background: var(--secondary-color);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 1rem 6rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        text-align: center;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
    margin-top: 2rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

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

.info-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin: 4rem 0 2rem;
}

.cta-links {
    text-align: center;
    margin-top: 3rem;
}

.text-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

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

.approach-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-5px);
}

.approach-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.approach-card p {
    color: var(--text-color);
    line-height: 1.6;
}

.investment-principles {
    margin-top: 4rem;
    text-align: center;
}

.investment-principles h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.principles-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.principles-list li {
    background: white;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 968px) {
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

.social-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: white;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

.twitter-icon {
    width: 20px;
    height: 20px;
}

.social-link span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Typing animation for the heading */
.typing-text {
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    margin: 0 auto 1rem;
    text-align: center;
    display: inline-block;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

/* Fade-in animation for the subtext */
.fade-in-text {
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
    animation-delay: 2s; /* Starts after typing animation */
}

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

/* Media query adjustments */
@media (max-width: 768px) {
    .typing-text {
        font-size: 1.8rem;
    }
    
    .fade-in-text {
        font-size: 1rem;
    }
}

.dynamic-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.typed-text {
    font-weight: 600;
    color: var(--accent-color);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #fff;
    margin-left: 2px;
    animation: blink 1s infinite;
}

.cursor.typing {
    animation: none;
}

@keyframes blink {
    0%  { background-color: #fff; }
    49% { background-color: #fff; }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100%  { background-color: #fff; }
}

/* Update media queries as needed */
@media (max-width: 768px) {
    .dynamic-text {
        font-size: 1rem;
    }
}

/* New class for smaller page headers */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 7rem 2rem 3rem;  /* Smaller padding than hero */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Media query for responsive design */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 1rem 3rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

/* Add the animation keyframes */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Update mobile responsiveness */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .dynamic-text {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-button {
        width: 100%;
        text-align: center;
    }
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

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

.about-card {
    background: #f8f0ff;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    opacity: 0;
    transform: scale(0.9);
    animation: popIn 0.5s ease forwards;
}

/* Add different delays for each card */
.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }
.about-card:nth-child(5) { animation-delay: 0.5s; }

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card.wide {
        grid-column: span 1;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Add this new style for the separator */
.section-separator {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    height: 1px;
    background: #eee;
}

/* Update the section spacing */
.section {
    padding: 4rem 2rem;
}

/* Adjust the projects grid margin */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin: 4rem 0 2rem;
}

/* Add the pop-in animation keyframes */
@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#about {
    padding-top: 2rem;
    scroll-margin-top: 80px; /* Adjust based on your header height */
}

.section-separator {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    height: 1px;
    background: #eee;
}

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

/* Your existing about-card styles */
