/* Custom Properties */
:root {
    --primary-color: #0d3349; /* Dark Navy Blue */
    --secondary-color: #c9a84c; /* Elegant Gold */
    --background-color: #1a1a1a; /* Deep Charcoal */
    --text-color: #f8f9fa; /* Off-White */
    --accent-color: #264f73; /* Lighter Navy for accents */
    --hover-overlay-color: rgba(201, 168, 76, 0.1); /* Subtle gold overlay */
    --card-border-color: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.6s;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    /* Added new custom property for the contact form */
    --form-background: #2a2a2a;
    --form-border-color: rgba(255, 255, 255, 0.15);
    --form-focus-color: var(--secondary-color);
}

/* Global Styles & Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    letter-spacing: 0.5px;
    overflow-x: hidden;
    position: relative;
    /* Custom cursor fixed: SVG syntax errors corrected, and proper URL encoding used */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'></circle><line x1='12' y1='16' x2='12' y2='12'></line><line x1='12' y1='8' x2='12.01' y2='8'></line></svg>"), auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animations */

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

@keyframes morphBlob {
    0% {
        transform: scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        transform: scale(1.1);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        transform: scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Site Header */
.site-header {
    background-color: rgba(26, 26, 26, 0.8); /* Slightly transparent dark */
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    /* Moved mobile nav to be directly inside the header for better encapsulation */
    position: absolute;
    top: 100%; /* Positioned below the header */
    left: 0;
    width: 100%;
    background-color: var(--background-color); /* Matches body background */
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: none; /* Hidden by default, controlled by JS */
    z-index: 999; /* Ensure it's above other content but below header */
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
}

.mobile-nav li {
    margin: 1rem 0;
}

.mobile-nav a {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color); /* Fallback background */
}

.hero-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Ensure video covers the entire section */
    z-index: 0; /* Behind overlay content */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1; /* Above video, below content */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2; /* Above overlay */
    padding: 0 20px; /* Ensure content isn't too close to edges */
}

.animated-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(201, 168, 76, 0.3); /* Gold translucent */
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    animation: morphBlob 15s infinite ease-in-out alternate, float 5s infinite ease-in-out alternate;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.5rem); /* Responsive font size */
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: shimmer 8s linear infinite alternate;
    background: linear-gradient(90deg, var(--text-color), var(--text-color), var(--secondary-color), var(--text-color));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0; /* Initially hidden for fade-in */
    animation: fadeUp 1s forwards, shimmer 8s linear infinite alternate;
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0; /* Initially hidden for fade-in */
    animation: fadeUp 1s forwards;
    animation-delay: 1s;
}

.hero-cta {
    opacity: 0; /* Initially hidden for fade-in */
    animation: fadeUp 1s forwards;
    animation-delay: 1.5s;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    margin: 0 10px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer; /* Ensure custom cursor applies */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Section Styling */
section {
    padding: 80px 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

/* About Section */
.about-section {
    background-color: var(--background-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.focus-areas h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.focus-areas ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.focus-areas li {
    background-color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color var(--transition-speed) ease;
}

.focus-areas li:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Investment Thesis Section */
.thesis-section {
    background-color: #222; /* Slightly different dark for contrast */
}

.thesis-content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.thesis-content li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    opacity: 0; /* Initially hidden for fade-in */
}

.thesis-content li::before {
    content: '◆'; /* Diamond shape */
    color: var(--secondary-color);
    font-size: 1.2rem;
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thesis-content li:hover {
    transform: translateY(-10px);
    background-color: rgba(201, 168, 76, 0.1);
}

.thesis-content li:hover::before {
    opacity: 1;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--background-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--primary-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Ensure custom cursor applies */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px;
    text-align: center;
    min-height: 250px;
}

.portfolio-card-3d-effect { /* Added for potential 3D effect via JS */
    transform-style: preserve-3d;
}

.portfolio-card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.portfolio-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(201, 168, 76, 0.5);
}

.portfolio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.portfolio-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
    transition: background-color 0.3s ease;
    border-radius: 12px; /* Match parent */
}

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-card:hover .card-overlay {
    background-color: var(--hover-overlay-color);
}

/* New Contact Section Styles */
.contact-section {
    background-color: var(--background-color);
    padding: 80px 0;
}

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

.contact-content p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
}

#contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--form-background);
    border: 1px solid var(--form-border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--form-focus-color);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.3);
}

#contact-form .btn-primary {
    width: fit-content;
    margin: 20px auto 0 auto; /* Center the submit button */
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Added social links styling */
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between copyright and social links */
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.social-links svg {
    width: 24px;
    height: 24px;
    stroke: currentColor; /* Inherit color from parent */
}


/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .thesis-content ul {
        grid-template-columns: 1fr;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 1rem;
        margin: 10px 5px;
    }

    .animated-blob {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }

    /* Adjust form styling for smaller screens */
    #contact-form .btn-primary {
        width: 100%; /* Make button full width on smaller screens */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: 70vh; /* Adjust height for smaller screens */
    }

    .btn {
        display: block;
        margin: 10px auto;
        width: fit-content;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 80%; /* Make buttons take up more width on small screens */
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group textarea {
        padding: 12px;
    }
}