/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: url('/images/taksila-bg.png') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background-size: cover;
    background-attachment: fixed;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 60px;
    font-weight: 600; /* Semi-bold */
    font-family: 'Inter', sans-serif;
    margin-bottom: 0.5rem;
    opacity: 1; /* Add this */
}

h2 {
    font-size: 80px;
    font-family: 'ITC New Baskerville', serif;
    font-style: normal;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 1rem;
    opacity: 1;
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 3;
    color: white;
    opacity: 1;
}

form {
    display: flex;
    justify-content: center;
}

input[type="email"] {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: none;
    background-color: transparent;
    color: white;
    width: 200px; /* Reduced from 250px */
    flex-grow: 1; /* Allow the input to grow, but not beyond the max-width of the form */
    transition: background-color 0.3s ease;
}

input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    padding: 20px 25px; /* Slightly reduced horizontal padding */
    font-size: 0.9rem;
    background-color: white;
    color: black;
    border: none;
    border-radius: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap; /* Prevent the button text from wrapping */
}

button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1.2em;
    }

    input[type="email"] {
        width: 200px;
    }
}

body {
    position: relative;
    background-image: url('/images/taksila-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Arial', sans-serif;
    color: white;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* Existing black tint */
    background-image: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Container adjustment */
.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 0; /* Remove bottom padding */
    margin-bottom: 0; /* Remove bottom margin */
    background-color: transparent; /* Set background to transparent */
}

/* Info section styling */
.info-section {
    position: relative;
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.info-section:first-of-type {
    margin-top: 0;
}

/* Section grid adjustment */
.section-grid {
    margin: 0;
    padding: 0;
    background: #ffffff;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    body {
        background: transparent !important;
        background-image: url('/images/taksila-bg.png') !important;
        background-size: 360% auto !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        overflow-x: hidden !important; /* Disable horizontal scrolling */
        max-width: 100vw; /* Ensure content doesn't exceed viewport width */
        position: relative; /* Needed for overflow to work properly */
    }

    /* Rest of your mobile styles remain the same */
    .hero-section {
        background-size: 360% auto !important;
        background-position: top center !important;
        background-attachment: scroll !important;
    }

    .container {
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 0;
        background: transparent !important;
    }

    .info-section {
        margin-top: 0;
        background: #ffffff !important;
    }

    .text-content {
        margin-top: 0;
        background: #ffffff !important;
    }

    .section-grid {
        background: #ffffff !important;
        margin: 0;
        padding: 0;
    }
}

.company-name {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.1),
        0 2px 4px rgba(0,0,0,0.1),
        0 4px 8px rgba(0,0,0,0.1),
        0 8px 16px rgba(0,0,0,0.1);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition-delay: 0.2s;
}

.company-name:hover {
    transform: none;
    box-shadow: none;
}

.email-form-container {
    margin-top: 40px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.email-form {
    display: flex;
    width: 100%;
    border-radius: 8px; /* Rounded edges for the form */
    overflow: hidden;
    background-color: #000; /* Black background for the form */
}

#emailInput {
    flex-grow: 1;
    border: none;
    padding: 10px 12px; /* Slightly reduced padding */
    background-color: transparent;
    color: white;
    width: calc(100% - 100px); /* Adjusted for shorter button */
    font-size: 14px;
}

#emailInput::placeholder {
    color: #aaa;
}

.email-form button {
    position: relative; /* Changed from absolute to relative */
    right: -1px; /* Removed right positioning */
    border: none;
    padding: 2px 8px; /* Reduced padding */
    background-color: white;
    color: black;
    border-radius: 6px; /* Rounded edges for the button */
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    margin: 5px; /* Slightly reduced margin */
}

email-form input[type="submit"] {
    background-color: white;
    color: black;
    border: none;
    padding: 5px 10px; /* Increased horizontal padding */
    cursor: pointer;
    font-size: 12px; /* Increased font size */
    font-weight: bold;
    white-space: nowrap;
    height: 10px; /* Increased height */
    margin: 20px;
    border-radius: 4px;
}

email-form input[type="submit"]:hover {
    background-color: #f0f0f0;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Lower z-index */
}

/* Add these new styles */

.fade-in {
    opacity: 1 !important; /* Force opacity to 1 */
    transform: translateY(0) !important; /* Reset any transform */
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.appear {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger the animations slightly */
.company-name { transition-delay: 0.1s; }
h1 { transition-delay: 0.2s; }
h2 { transition-delay: 0.3s; }
p { transition-delay: 0.4s; }
.email-form { transition-delay: 0.5s; }

/* Remove any dramatic hover effects */
.company-name:hover, h1:hover, h2:hover {
    transform: none;
    box-shadow: none;
}

/* ... rest of the existing styles ... */

.hero-subtitle {
    font-size: 1.5rem;
    color: #666;
    max-width: 600px;
    margin: 1rem auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.footer {
    background-color: transparent;
    color: #888;
    padding: 1rem 0;
    text-align: center;
    position: relative; /* Change from absolute to relative */
    width: 100%;
    z-index: 3;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
    
}

/* Ensure the main content doesn't overlap with the footer */
body {
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px; /* Adjust this value based on your footer's height */
}

/* Update the popup styles */
.popup {
    max-width: 280px;
    width: 80%;
    height: 100px; /* Reduced height */
    margin: 10px auto 0;
    background-color: #1c1c1e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1px;
}

.popup.show {
    opacity: 1;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.popup-header {
    margin-bottom: 15px;
    text-align: center;
}

.popup h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.popup p {
    color: #8e8e93;
    font-size: 13px;
    margin: 10px 0 0;
    font-style: normal;
    line-height: 1.4;
    max-width: 240px;
    text-align: center;
}

.taksila-labs-button {
    position: fixed;
    top: 20px;
    left: 40px; /* Changed from 20px to 40px */
    z-index: 1000;
    color: white;
    text-decoration: none;
    font-size: 24px;
    font-family: 'Frank Ruhl Libre', serif;
    font-weight: 300;
    transition: color 0.3s ease, transform 0.3s ease;
}

.taksila-labs-button:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.notification-popup {
    position: absolute;
    bottom: -60px; /* Adjusted to be closer to the form */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000; /* Fully opaque black background */
    color: white;
    padding: 12px 20px;
    border-radius: 4px; /* Less rounded corners for a more rectangular look */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 10;
    width: 100%; /* Make it full width of its container */
    max-width: 300px; /* Match the max-width of the email form container */
}

.notification-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px); /* Reduced the upward movement for subtlety */
}

.notification-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: flex-start;
}

.notification-icon {
    font-size: 20px;
    margin-right: 12px;
    color: white; /* Changed from #ff3b30 to white */
}

.notification-text {
    text-align: left;
    flex-grow: 1;
}

.notification-text p {
    margin: 0;
    font-size: 14px;
    opacity: 1; /* Fully opaque text */
    font-style: normal;
    line-height: 1.4;
    color: white; /* Changed from #ff3b30 to white */
}

/* Add this new rule to ensure proper positioning */
.email-form-container {
    position: relative;
}

/* New About Section Styles */
.about-section {
    background-color: white;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    z-index: 3; /* Ensure it's above the canvas */
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
    padding-right: 40px;
}

.about-title {
    color: #000;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 56px; /* Increased from 48px */
    margin-bottom: 40px;
    font-weight: 500; /* Changed from 300 to 500 for bold */
    letter-spacing: 0.02em;
    font-style: normal; /* Explicitly set to normal to remove italics */
}

.about-text {
    color: #333;
    font-family: 'Inter', sans-serif;
}

.about-text p {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: normal;
    text-align: left;
    max-width: none;
}

.about-text .tagline {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 24px;
    color: #000;
    font-weight: 300;
    margin-top: 40px;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arch-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Media Queries */
@media (max-width: 968px) {
    .about-container {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .about-content {
        padding-right: 0;
    }

    .about-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-title {
        font-size: 42px; /* Increased from 36px */
        font-weight: 500; /* Maintain bold weight at smaller sizes */
    }
}

@media (max-width: 480px) {
    .about-title {
        font-size: 36px; /* Increased from 32px */
        font-weight: 500; /* Maintain bold weight at smallest sizes */
    }

    .about-text p {
        font-size: 15px;
    }
}

/* Add smooth scrolling to the html element */
html {
    scroll-behavior: smooth;
}

/* Add these styles for the scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Added for better centering */
    color: white;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1s forwards;
    cursor: pointer;
    z-index: 1000;
    text-align: center; /* Ensure text is centered */
    width: auto; /* Let content determine width */
    min-width: 120px; /* Minimum width to ensure proper centering */
}

.scroll-indicator span {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap; /* Prevent text wrapping */
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important; /* Force hide on mobile */
        opacity: 0 !important; /* Ensure it's fully hidden */
        visibility: hidden !important; /* Triple ensure it's hidden */
        pointer-events: none !important; /* Prevent any interaction */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Add hover effect */
.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-indicator:hover svg {
    animation-play-state: paused;
}

/* Add/update these styles */

/* Enable smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enable hardware acceleration */
.container, .about-section {
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Update container for parallax */
.container {
    transform: translateZ(0);
    perspective: 1000px;
}

/* Update elements for parallax */
.container h1,
.container h2,
.container > p,
.email-form-container {
    will-change: transform, opacity;
    transform: translateZ(0);
    transition: transform 0.1s linear;
}

/* About section parallax */
.about-section {
    transform: translateZ(0);
    transition: transform 0.1s linear;
    will-change: transform;
}

/* Ensure smooth transitions */
.about-section.visible {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Add these new styles */
.aham-vidya-section {
    background-color: white;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.aham-vidya-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add Sanskrit font for the title */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;700&display=swap');

.aham-vidya-section .about-title {
    font-family: 'Noto Sans Devanagari', 'Frank Ruhl Libre', serif;
    letter-spacing: 0.02em;
}

/* Stagger paragraph animations for this section */
.aham-vidya-section .about-text p {
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.aham-vidya-section.visible .about-text p {
    opacity: 1;
    transform: translateY(0);
}

.aham-vidya-section .about-text p:nth-child(1) { transition-delay: 0.2s; }
.aham-vidya-section .about-text p:nth-child(2) { transition-delay: 0.4s; }
.aham-vidya-section .about-text p:nth-child(3) { transition-delay: 0.6s; }
.aham-vidya-section .about-text p:nth-child(4) { transition-delay: 0.8s; }

/* Ensure proper spacing between sections */
.about-section {
    margin-bottom: 0;
}

/* Update the image styles in the Aham Vidya section */
.aham-vidya-section .about-image {
    flex: 1.2; /* Increased from 1 to give more space to the image */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Add some padding around the image */
}

.aham-vidya-section .arch-image {
    max-width: 110%; /* Allow the image to be slightly larger than its container */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out;
}

/* Adjust the content width to accommodate the larger image */
.aham-vidya-section .about-content {
    flex: 0.8; /* Reduced from 1 to give more space to the image */
    padding-right: 60px; /* Increased padding */
}

/* Update media queries to handle the larger image responsively */
@media (max-width: 968px) {
    .aham-vidya-section .about-image {
        width: 100%;
        max-width: 600px; /* Increased from 500px */
        margin: 0 auto;
    }

    .aham-vidya-section .arch-image {
        max-width: 100%; /* Reset to 100% on mobile */
    }
}

/* Add/update these styles for the Good AI section */
.good-ai-section {
    background-color: white;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.good-ai-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.good-ai-section .about-text p {
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.good-ai-section.visible .about-text p {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger paragraph animations for this section */
.good-ai-section .about-text p:nth-child(1) { transition-delay: 0.2s; }
.good-ai-section .about-text p:nth-child(2) { transition-delay: 0.4s; }
.good-ai-section .about-text p:nth-child(3) { transition-delay: 0.6s; }

/* Ensure consistent spacing between sections */
.good-ai-section {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Update typography styles for all sections */
.about-section .about-title,
.aham-vidya-section .about-title,
.good-ai-section .about-title {
    color: #000000;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.about-section .about-text,
.aham-vidya-section .about-text,
.good-ai-section .about-text {
    color: #000000;
    font-family: 'Frank Ruhl Libre', serif;
}

.about-section .about-text p,
.aham-vidya-section .about-text p,
.good-ai-section .about-text p {
    color: #000000;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: normal;
    text-align: left;
    max-width: none;
    font-weight: 300;
}

.about-text .tagline {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 24px;
    color: #000000;
    font-weight: 300;
    margin-top: 40px;
}

/* Update responsive styles */
@media (max-width: 968px) {
    .about-section .about-title,
    .aham-vidya-section .about-title,
    .good-ai-section .about-title {
        font-size: 36px;
    }

    .about-section .about-text p,
    .aham-vidya-section .about-text p,
    .good-ai-section .about-text p {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .about-section .about-title,
    .aham-vidya-section .about-title,
    .good-ai-section .about-title {
        font-size: 32px;
    }

    .about-section .about-text p,
    .aham-vidya-section .about-text p,
    .good-ai-section .about-text p {
        font-size: 16px;
    }
}

/* Add these styles for the CTA section */
.cta-section {
    position: relative;
    width: 100%;
    padding: 100px 20px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.cta-section h2 {
    font-size: 42px;
    color: #000000;
    margin-bottom: 20px;
    font-family: 'ITC New Baskerville', serif;
    opacity: 1; /* Ensure visibility */
}

.cta-section p {
    font-size: 18px;
    color: #333333;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1; /* Ensure visibility */
}

.cta-button {
    padding: 15px 30px;
    font-size: 16px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 1; /* Ensure visibility */
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-button {
        padding: 14px 36px;
    }
}

/* Update the tagline style in the What is Taksila section */
.about-section .about-text .tagline {
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 24px;
    color: #000000;
    font-weight: 500; /* Changed from 300 to 500 for bold */
    margin-top: 40px;
    letter-spacing: 0.02em;
}

/* Responsive styles for tagline */
@media (max-width: 968px) {
    .about-section .about-text .tagline {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .about-section .about-text .tagline {
        font-size: 20px;
    }
}

/* Update text styles for consistent sizing */
.about-section .about-text p,
.aham-vidya-section .about-text p,
.good-ai-section .about-text p,
.about-section .about-text .tagline {
    color: #000000;
    font-family: 'Frank Ruhl Libre', serif;
    font-size: 18px; /* Keep consistent size for all text */
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: normal;
    text-align: left;
    max-width: none;
    font-weight: 300;
}

/* Only change the weight for the tagline, keeping the same size */
.about-section .about-text .tagline {
    font-weight: 500; /* Bold weight for tagline */
    margin-top: 40px;
    letter-spacing: 0.02em;
}

/* Update responsive styles to maintain consistency */
@media (max-width: 968px) {
    .about-section .about-text p,
    .aham-vidya-section .about-text p,
    .good-ai-section .about-text p,
    .about-section .about-text .tagline {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .about-section .about-text p,
    .aham-vidya-section .about-text p,
    .good-ai-section .about-text p,
    .about-section .about-text .tagline {
        font-size: 16px;
    }
}

p.fade-in {
    font-family: 'ITC New Baskerville', serif;
    font-size: 24px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 3;
    color: white;
    opacity: 1;
}

/* Add responsive adjustments */
@media (max-width: 768px) {
    h2 {
        font-size: 60px; /* Adjusted for mobile */
    }
    
    p.fade-in {
        font-size: 20px; /* Adjusted for mobile */
    }
}

/* Add some spacing between elements */
h2.fade-in {
    margin-top: 40px;
    margin-bottom: 0.2rem; /* Further reduced from 0.5rem */
}

p.fade-in {
    margin-top: 5px; /* Further reduced from 10px */
    margin-bottom: 1.5rem;
}

.email-form-container {
    margin-top: 40px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Adjust responsive behavior */
@media (max-width: 768px) {
    .container {
        padding-top: 140px;
    }
    
    h2.fade-in {
        margin-top: 30px;
        margin-bottom: 0.15rem;
    }
    
    p.fade-in {
        margin-top: 4px;
    }
    
    .email-form-container {
        margin-top: 30px;
    }
}

/* Add these new styles for the sections */
.about-section, .aham-vidya-section, .good-ai-section {
    position: relative;
    overflow: hidden;
    padding: 120px 40px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Mystic glow effect */
.about-section::before,
.aham-vidya-section::before,
.good-ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease-out;
    pointer-events: none;
}

.about-section.visible::before,
.aham-vidya-section.visible::before,
.good-ai-section.visible::before {
    opacity: 1;
}

/* Enhanced title styling */
.about-title {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
}

.visible .about-title {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative elements */
.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #000 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out 0.3s;
}

.visible .about-title::after {
    transform: scaleX(1);
}

/* Image container enhancement */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out, box-shadow 0.3s ease;
}

.visible .about-image {
    transform: translateY(0);
    opacity: 1;
}

.about-image:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Image animation */
.arch-image {
    transition: transform 0.6s ease-out;
}

.about-image:hover .arch-image {
    transform: scale(1.05);
}

/* Text animation */
.about-text p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible .about-text p {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger paragraph animations */
.visible .about-text p:nth-child(1) { transition-delay: 0.2s; }
.visible .about-text p:nth-child(2) { transition-delay: 0.4s; }
.visible .about-text p:nth-child(3) { transition-delay: 0.6s; }

/* Floating particles effect */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

/* Section-specific styling */
.aham-vidya-section {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.95));
}

.good-ai-section {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.95));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-section, .aham-vidya-section, .good-ai-section {
        padding: 80px 20px;
    }

    .about-title {
        font-size: 2.5rem;
    }
}

/* Enhanced section styling */
.about-section, .aham-vidya-section, .good-ai-section {
    position: relative;
    overflow: hidden;
    padding: 150px 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
    margin: 40px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Modern glass morphism effect */
.about-section::before,
.aham-vidya-section::before,
.good-ai-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 20%,
        transparent 70%
    );
    transform: rotate(-45deg);
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Enhanced title styling */
.about-title {
    font-size: 4rem;
    font-weight: 300;
    background: linear-gradient(135deg, #000 0%, #333 50%, #000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: left;
    letter-spacing: -0.02em;
}

/* Modern underline effect */
.about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #000 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* Enhanced image container */
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(50px) rotate(2deg);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Enhanced text styling */
.about-text p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Section-specific styling */
.aham-vidya-section {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 252, 246, 0.97) 100%
    );
}

.good-ai-section {
    background: linear-gradient(225deg, 
        rgba(255, 255, 252, 0.98) 0%,
        rgba(252, 255, 246, 0.97) 100%
    );
}

/* Floating animation for particles */
@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(5deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
}

.particle {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 4s infinite ease-in-out;
}

/* Enhanced hover effects */
.about-section:hover,
.aham-vidya-section:hover,
.good-ai-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.about-image:hover {
    transform: translateY(0) rotate(0deg) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .about-section, .aham-vidya-section, .good-ai-section {
        padding: 100px 30px;
        margin: 20px 10px;
    }

    .about-title {
        font-size: 3rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }
}

/* Modern Section Styling */
.about-section, .aham-vidya-section, .good-ai-section {
    position: relative;
    overflow: hidden;
    padding: 120px 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Grid Layout */
.modern-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.modern-grid.reverse {
    grid-template-columns: 1fr 1.2fr;
}

/* Section Headers */
.section-header {
    position: relative;
    margin-bottom: 40px;
}

.sanskrit-accent {
    position: absolute;
    top: -40px;
    left: -20px;
    font-size: 72px;
    opacity: 0.1;
    font-family: 'Noto Sans Devanagari', serif;
    color: #000;
    z-index: 0;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #000;
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 1.2;
}

/* Sacred Geometry Patterns */
.sacred-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,...'); /* Add sacred geometry SVG pattern */
    opacity: 0.05;
    pointer-events: none;
}

.neural-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #000 1px, transparent 1px),
                linear-gradient(-45deg, #000 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
    animation: flow 20s linear infinite;
}

.quantum-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, #000 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.03;
    animation: pulse 4s ease-in-out infinite;
}

/* Image Frames */
.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.image-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.arch-image {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

/* Section-specific styles */
.about-section {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
}

.aham-vidya-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.good-ai-section {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
}

/* Animations */
@keyframes flow {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.02; }
    50% { opacity: 0.05; }
}

/* Hover Effects */
.image-frame::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-frame:hover::after {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .modern-grid.reverse {
        grid-template-columns: 1fr;
    }
    
    .about-title {
        font-size: 2.5rem;
    }
    
    .sanskrit-accent {
        font-size: 48px;
        top: -30px;
    }
}

@media (max-width: 768px) {
    .about-section, .aham-vidya-section, .good-ai-section {
        padding: 80px 30px;
    }
    
    .about-title {
        font-size: 2rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    .sanskrit-accent {
        font-size: 70px;
        top: -35px;
    }
}

/* Add these new visual effects and animations */

/* Glowing accent for Sanskrit characters */
.sanskrit-accent {
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.1; text-shadow: 0 0 30px rgba(0, 0, 0, 0.1); }
    50% { opacity: 0.2; text-shadow: 0 0 40px rgba(0, 0, 0, 0.2); }
}

/* Enhanced section transitions */
.about-section, .aham-vidya-section, .good-ai-section {
    position: relative;
    overflow: hidden;
    padding: 150px 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 30px;
    margin: 40px 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    will-change: transform, opacity;
}

/* Animated gradient borders */
.about-section::after,
.aham-vidya-section::after,
.good-ai-section::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 30px;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    animation: borderFlow 8s linear infinite;
}

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

/* Enhanced image effects */
.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: lightSweep 4s infinite ease-in-out;
}

/* Section-specific patterns */
.sacred-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(0,0,0,0.02) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(0,0,0,0.02) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(0,0,0,0.02) 75%);
    background-size: 40px 40px;
    animation: patternFloat 30s infinite linear;
    opacity: 0.5;
}

.neural-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0,0,0,0.03) 1px, transparent 1px),
        radial-gradient(circle at 0% 0%, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridPulse 4s infinite ease-in-out;
    opacity: 0.7;
}

/* Enhanced Animations */
@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes patternFloat {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

/* Enhanced Hover Effects */
.about-section:hover,
.aham-vidya-section:hover,
.good-ai-section:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 0 120px rgba(0, 0, 0, 0.1);
}

/* Section-specific Accents */
.about-section::before,
.aham-vidya-section::before,
.good-ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.05) 50%,
        transparent 100%
    );
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .about-section, .aham-vidya-section, .good-ai-section {
        padding: 120px 40px;
        margin: 60px 20px;
    }

    .modern-grid,
    .modern-grid.reverse {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-title {
        font-size: 4rem;
    }

    .sanskrit-accent {
        font-size: 120px;
        top: -60px;
    }
}

@media (max-width: 768px) {
    .about-section, .aham-vidya-section, .good-ai-section {
        padding: 80px 30px;
        margin: 40px 15px;
    }

    .about-title {
        font-size: 3rem;
    }

    .sanskrit-accent {
        font-size: 90px;
        top: -45px;
    }

    .about-text p {
        font-size: 1.1rem;
        padding-right: 0;
    }
}

/* Ambient Background Patterns */
.sacred-pattern, .neural-grid, .quantum-grid {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.sacred-pattern {
    background-image: 
        repeating-linear-gradient(45deg,
            #000 0px,
            #000 1px,
            transparent 1px,
            transparent 20px
        );
    animation: patternShift 30s linear infinite;
}

.neural-grid {
    background: 
        radial-gradient(circle at 50% 50%, #000 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes patternShift {
    from { transform: translateX(0) rotate(0deg); }
    to { transform: translateX(20px) rotate(1deg); }
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.02; }
    50% { opacity: 0.04; }
}

/* Enhanced Modern Section Styling with Ancient Inspiration */
.about-section, .aham-vidya-section, .good-ai-section {
    position: relative;
    overflow: hidden;
    padding: 200px 100px;
    background: rgba(252, 251, 249, 0.95);
    backdrop-filter: blur(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 140px 60px;
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.08),
        0 0 160px rgba(0, 0, 0, 0.03);
}

/* Sophisticated Grid Layout */
.modern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
}

/* Enhanced Sanskrit Accent */
.sanskrit-accent {
    position: absolute;
    top: -100px;
    left: -20px;
    font-size: 200px;
    font-family: 'Noto Sans Devanagari', serif;
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(30px) rotate(-8deg);
    filter: blur(0.5px);
    opacity: 0;
    animation: sanskritFloat 1.5s forwards ease-out;
}

@keyframes sanskritFloat {
    to {
        opacity: 1;
        transform: translateY(0) rotate(-8deg);
        filter: blur(0);
    }
}

/* Sophisticated Title Styling */
.about-title {
    font-size: 4.5rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 3rem;
    line-height: 1.1;
    position: relative;
    transform: translateX(-100px);
    opacity: 0;
    animation: slideTitle 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideTitle {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Elegant Text Styling */
.about-text p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #2c2c2c;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
    padding-right: 40px;
}

.about-text p:nth-child(2) { animation-delay: 0.2s; }
.about-text p:nth-child(3) { animation-delay: 0.4s; }

/* Sophisticated Image Treatment */
.image-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    transform: perspective(1000px) rotateY(-12deg) translateZ(0);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 40px 80px rgba(139, 69, 19, 0.15),
        0 0 40px rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    z-index: 2;
}

.arch-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Section-Specific Styling */
.about-section {
    background: linear-gradient(135deg,
        rgba(252, 251, 249, 0.97) 0%,
        rgba(251, 249, 246, 0.95) 100%
    );
}

.aham-vidya-section {
    background: linear-gradient(135deg,
        rgba(249, 251, 252, 0.97) 0%,
        rgba(246, 249, 251, 0.95) 100%
    );
}

.good-ai-section {
    background: linear-gradient(135deg,
        rgba(251, 252, 249, 0.97) 0%,
        rgba(249, 251, 246, 0.95) 100%
    );
}

/* Sophisticated Hover Effects */
.image-frame:hover {
    transform: perspective(1000px) rotateY(-5deg) translateZ(50px);
    box-shadow: 
        0 60px 100px rgba(139, 69, 19, 0.2),
        0 0 60px rgba(139, 69, 19, 0.15);
}

.image-frame:hover .arch-image {
    transform: scale(1.05);
}

/* Ancient-Inspired Decorative Elements */
.section-header {
    position: relative;
    margin-bottom: 60px;
}

.section-header::before {
    content: '॥';
    position: absolute;
    top: -60px;
    left: -40px;
    font-size: 40px;
    color: var(--accent-1);
    opacity: 0.2;
    transform: rotate(-15deg);
}

/* Ambient Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* Subtle Entry Animations */
    .about-content {
        opacity: 0;
        animation: fadeUp 0.6s ease forwards;
    }

    .about-content.visible {
        opacity: 1;
    }

    /* Modern Link Styling */
    .about-text a {
        color: var(--highlight);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    .about-text a:hover {
        color: var(--accent-1);
    }

    /* Clean Button Styling */
    .cta-button {
        background: var(--accent-1);
        color: white;
        padding: 12px 24px;
        border-radius: 6px;
        font-weight: 500;
        font-size: 1rem;
        transition: background-color 0.2s ease;
        border: none;
        cursor: pointer;
    }

    .cta-button:hover {
        background: var(--accent-2);
    }

    /* Modern List Styling */
    .about-text ul {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0;
    }

    .about-text li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
        color: var(--text-secondary);
    }

    .about-text li::before {
        content: "→";
        position: absolute;
        left: 0;
        color: var(--highlight);
    }

    /* Clean Responsive Design */
    @media (max-width: 1024px) {
        .modern-grid {
            grid-template-columns: 1fr;
            gap: 60px;
        }

        .about-section, .aham-vidya-section, .good-ai-section {
            padding: 120px 40px;
        }

        .about-title {
            font-size: 3rem;
        }
    }

    @media (max-width: 768px) {
        .about-section, .aham-vidya-section, .good-ai-section {
            padding: 80px 24px;
        }

        .about-title {
            font-size: 2.5rem;
        }

        .about-text p {
            font-size: 1.125rem;
        }
    }

    /* Modern Feature Grid */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 40px;
        margin-top: 3rem;
    }

    .feature-item {
        padding: 24px;
        background: var(--secondary-bg);
        border-radius: 12px;
        transition: transform 0.3s ease;
    }

    .feature-item:hover {
        transform: translateY(-4px);
    }

    /* Clean Quote Styling */
    blockquote {
        border-left: 4px solid var(--highlight);
        padding-left: 1.5rem;
        margin: 2rem 0;
        font-style: italic;
        color: var(--text-secondary);
    }

    /* Modern Stats Display */
    .stats-container {
        display: flex;
        gap: 40px;
        margin: 2rem 0;
    }

    .stat-item {
        flex: 1;
    }

    .stat-number {
        font-size: 2.5rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }

    .stat-label {
        color: var(--text-secondary);
        font-size: 1rem;
    }

    /* Clean Section Transitions */
    .section-transition {
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            var(--border) 50%,
            transparent 100%
        );
        margin: 0;
    }

    /* Modern Code Snippet Display */
    .code-block {
        background: var(--secondary-bg);
        padding: 20px;
        border-radius: 8px;
        font-family: 'Menlo', monospace;
        font-size: 0.9rem;
        overflow-x: auto;
        margin: 1.5rem 0;
    }

    /* Clean Tag Styling */
    .tag {
        display: inline-block;
        padding: 4px 12px;
        background: var(--secondary-bg);
        border-radius: 16px;
        font-size: 0.875rem;
        color: var(--text-secondary);
        margin-right: 8px;
        margin-bottom: 8px;
    }

    /* Modern Split Layout Styling */
    .about-section, .aham-vidya-section, .good-ai-section {
        position: relative;
        display: flex;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        background: #ffffff;
        overflow: hidden;
    }

    /* Grid Layout */
    .modern-grid {
        display: flex;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Content Side */
    .about-content {
        width: 50%;
        padding: 120px 80px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        background: #ffffff;
        position: relative;
    }

    /* Image Side */
    .about-image-container {
        width: 50%;
        height: 100vh;
        position: relative;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .image-frame {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        transform: none;
        border-radius: 0;
    }

    .arch-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        margin: 0;
        padding: 0;
        transform: none;
        transition: none;
    }

    /* Alternating Layout */
    .aham-vidya-section .modern-grid {
        flex-direction: row-reverse;
    }

    /* Remove ALL transforms and effects */
    .about-section, 
    .aham-vidya-section, 
    .good-ai-section,
    .modern-grid,
    .about-content,
    .about-image-container,
    .image-frame,
    .arch-image {
        transform: none !important;
        transition: none !important;
        perspective: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
        .modern-grid {
            flex-direction: column;
        }

        .about-content,
        .about-image-container {
            width: 100%;
        }

        .about-image-container {
            height: 50vh;
        }

        .aham-vidya-section .modern-grid {
            flex-direction: column;
        }
    }
}

/* Section Styling */
.info-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
}

/* Grid Layout */
.section-grid {
    display: flex;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.section-grid.reverse {
    flex-direction: row-reverse;
}

/* Text Content */
.text-content {
    width: 50%;
    padding: 80px 60px; /* Reduced side padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Title Styling */
.section-title {
    font-size: 64px;
    font-weight: normal;
    color: #00264d; /* Added dark blue color */
    margin: 0 0 40px 0;
    line-height: 1.1;
    font-family: 'ITC New Baskerville', serif;
    text-align: left;
    padding-right: 0;
}

/* Text Wrapper */
.text-wrapper {
    width: 100%; /* Take full width */
    text-align: left;
    padding-right: 0; /* Remove right padding */
}

/* Paragraph Styling */
.text-wrapper p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 24px 0;
    font-family: 'ITC New Baskerville', serif;
    font-weight: normal;
    text-align: left;
    max-width: none; /* Remove max-width constraint */
    padding-right: 0; /* Remove right padding */
}

/* Image Container */
.image-container {
    width: 50%;
    height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 3D Model Section - Clean version */
.model-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #000000;
    overflow: visible;
    margin: 0;
    padding: 0; /* Removed padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex; /* Added flex */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.model-container {
    position: relative;
    width: 100%;
    height: 60vh;
    background: #000000;
    display: flex; /* Added flex */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#temple3D {
    width: 100%;
    height: 100%;
    outline: none;
    display: block;
    position: relative; /* Changed from absolute */
    touch-action: pan-x pan-y;
}

.model-overlay {
    position: absolute;
    top: 40px;
    left: 40px;
    color: #fff; /* Changed to white for dark background */
    z-index: 10;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.7); /* Darker background */
    padding: 20px;
    border-radius: 12px;
}

.model-overlay h3 {
    color: #fff;
}

.model-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

.model-loading {
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
}

/* CTA Section Styling */
.cta-section {
    position: relative;
    width: 100%;
    padding: 100px 20px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.cta-section h2 {
    font-size: 42px;
    color: #00264d; /* Added dark blue color */
    margin-bottom: 20px;
    font-family: 'ITC New Baskerville', serif;
    opacity: 1; /* Ensure visibility */
}

.cta-section p {
    font-size: 18px;
    color: #333333;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1; /* Ensure visibility */
}

.cta-button {
    padding: 15px 30px;
    font-size: 16px;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    opacity: 1; /* Ensure visibility */
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-button {
        padding: 14px 36px;
    }
}

/* Focus Area Headings */
.focus-area h3 {
    font-size: 24px;
    font-weight: 700;
    color: #00264d; /* Already dark blue */
    margin-bottom: 16px;
    font-family: 'ITC New Baskerville', serif;
    text-align: left;
}

/* Rest of the focus area styling */
.focus-area {
    margin-bottom: 32px;
}

.focus-area p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-family: 'ITC New Baskerville', serif;
    font-weight: normal;
    text-align: left;
}

/* Add these responsive styles */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
    /* Section layouts */
    .section-grid {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .text-content, 
    .image-container {
        width: 100%;
        height: auto;
    }

    .text-content {
        padding: 60px 40px;
        order: 1; /* Text always appears first */
    }

    .image-container {
        height: 50vh;
        order: 2;
    }

    /* Typography adjustments */
    .section-title {
        font-size: 42px;
        margin-bottom: 30px;
    }

    .text-wrapper p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* Focus areas */
    .focus-area h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .focus-area {
        margin-bottom: 24px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Container adjustments */
    .container {
        padding: 60px 20px;
    }

    /* Hero section */
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 48px;
    }

    /* Section adjustments */
    .text-content {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 36px;
    }

    /* 3D Model section */
    .model-container {
        height: 50vh;
    }

    /* CTA section */
    .cta-section {
        padding: 60px 20px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    h2 {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .text-wrapper p {
        font-size: 15px;
    }

    .focus-area h3 {
        font-size: 18px;
    }
}

/* Handle very tall screens */
@media (min-height: 1000px) {
    .model-container {
        height: 40vh;
    }
}

/* Handle landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .model-container {
        height: 70vh;
    }

    .image-container {
        height: 60vh;
    }
}

/* Existing styles remain the same until media queries */

/* Mobile-First Responsive Design */
@media (max-width: 1024px) {
    /* Section layouts */
    .section-grid {
        flex-direction: column;
        height: auto;
    }

    .text-content, 
    .image-container {
        width: 100%;
    }

    .text-content {
        padding: 60px 24px; /* Reduced padding */
        order: 1;
    }

    .image-container {
        height: 60vh; /* Taller images on mobile */
        order: 2;
    }

    /* Typography adjustments */
    .section-title {
        font-size: 36px;
        margin-bottom: 24px;
        line-height: 1.2;
    }

    .text-wrapper {
        width: 100%;
    }

    .text-wrapper p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    /* Focus areas */
    .focus-area {
        margin-bottom: 32px;
    }

    .focus-area h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    /* Hero section */
    .container {
        padding: 40px 24px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 42px;
    }

    /* 3D Model section */
    .model-section {
        height: 60vh; /* Shorter on mobile */
        min-height: auto;
    }

    .model-container {
        height: 100%;
    }

    /* CTA section */
    .cta-section {
        padding: 60px 24px;
    }

    .cta-section h2 {
        font-size: 32px;
        line-height: 1.2;
    }

    .cta-section p {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .cta-button {
        width: 100%;
        max-width: none;
        padding: 16px 24px;
    }

    /* Email form */
    .email-form-container {
        width: 100%;
        padding: 0 24px;
    }

    .email-form {
        width: 100%;
    }

    #emailInput {
        width: 100%;
        padding: 16px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .text-content {
        padding: 40px 20px;
    }

    .section-title {
        font-size: 32px;
    }

    .text-wrapper p {
        font-size: 15px;
    }

    .focus-area h3 {
        font-size: 18px;
    }

    .image-container {
        height: 50vh;
    }

    h2 {
        font-size: 36px;
    }
}

/* Handle landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .model-section {
        height: 100vh;
    }

    .image-container {
        height: 100vh;
    }

    .text-content {
        padding: 40px 24px;
    }
}

/* Add specific mobile adjustments */
@media (max-width: 768px) {
    body {
        background-size: 250%; /* Scale down the background image */
        background-position: top center; /* Position from top */
        background-attachment: scroll; /* Better mobile performance */
    }

    .container {
        padding-top: 60px; /* Reduced top padding */
    }

    h2 {
        font-size: 42px; /* Smaller title on mobile */
    }

    p {
        font-size: 16px; /* Adjusted text size */
        max-width: 300px; /* Narrower text container */
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    body {
        background-size: 300%; /* Further scale down for smaller screens */
    }

    h2 {
        font-size: 36px;
    }
}

/* Add this to your existing styles */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none; /* Hide scroll indicator on mobile */
    }
}

/* Add this to your existing media queries */
@media (max-width: 1024px) {
    /* Section layouts */
    .section-grid {
        flex-direction: column;
        height: auto;
    }

    .text-content, 
    .image-container {
        width: 100%;
    }

    /* Default order for first section */
    .info-section:nth-child(odd) .image-container {
        order: 1; /* Image first */
    }
    
    .info-section:nth-child(odd) .text-content {
        order: 2; /* Text second */
    }

    /* Reverse order for second section */
    .info-section:nth-child(even) .image-container {
        order: 1; /* Image first */
    }
    
    .info-section:nth-child(even) .text-content {
        order: 2; /* Text second */
    }

    /* Reset any reverse layouts */
    .section-grid.reverse {
        flex-direction: column;
    }

    /* Image sizing */
    .image-container {
        height: 50vh;
    }

    /* Text content spacing */
    .text-content {
        padding: 60px 24px;
    }
}

/* Optimize for mobile */
@media (max-width: 768px) {
    .model-section {
        height: 50vh; /* Reduce height on mobile */
    }

    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    /* Optimize rendering */
    .model-container {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
        will-change: transform;
    }

    /* Reduce image quality on mobile */
    img {
        image-rendering: optimizeSpeed;
    }

    /* Reduce section height on mobile */
    .model-section {
        height: 50vh;
    }
}

/* Add loading state styles */
.model-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 10;
}

@media (max-width: 768px) {
    .model-section {
        display: none;
    }
}

/* Add font-display to ensure text remains visible during webfont load */
@font-face {
    font-family: 'ITC New Baskerville';
    font-display: swap;
    src: url(...);
}

/* Use progressive image loading */
.section-image {
    background-color: #f0f0f0; /* Placeholder color */
    transition: opacity 0.3s ease;
}

.section-image.loaded {
    opacity: 1;
}
