@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #1a2a44;
    --accent-color: #d4af37;
    --text-color: #333;
    --bg-color: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll Animation Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Logo Fly-in Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

/* Flash prevention for returning visits */
.skip-intro #preloader {
    display: none !important;
}

.skip-intro .logo-ca-icon {
    opacity: 1 !important;
}

.skip-intro .entrance-fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.fly-logo {
    width: 120px;
    height: auto;
    z-index: 10001;
    transition: all 1s cubic-bezier(0.7, 0, 0.3, 1);
    position: fixed;
    object-fit: cover;
    object-position: top center;
    clip-path: inset(0 0 10% 0);
    /* Match the main logo crop */
}

/* Initially hide navbar logo icon to prevent duplicate ONLY on home page with preloader */
/* Initially hide navbar logo icon to prevent duplicate ONLY on home page with preloader */
.main-logo-img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show logo in all other cases */
.main-logo-img.visible,
body:not(:has(#preloader)) .main-logo-img,
.footer .main-logo-img {
    opacity: 1 !important;
}

/* Entrance Animations */
.entrance-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.loaded .entrance-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 1.1s;
}

.delay-2 {
    transition-delay: 1.3s;
}

.delay-3 {
    transition-delay: 1.5s;
}

.header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.main-logo-img {
    height: 70px;
    /* Adjusted height for better visibility */
    width: auto;
    object-fit: cover;
    object-position: top center;
    /* Crop bottom 10% to remove Agrawal text */
    clip-path: inset(0 0 10% 0);
    display: block;
    transform: scale(1.15);
    /* Slight zoom */
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap to compensate for image scaling */
    transition: var(--transition);
}

.logo-details {
    display: flex;
    flex-direction: column;
}

.main-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    line-height: 1.2;
}

.sub-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    opacity: 0.8;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Page 1 - Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Light overlay for readability */
    z-index: -1;
}

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

.page1-header {
    margin-bottom: 30px;
}

.hero-title {
    color: var(--primary-color);
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(26, 42, 68, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Page 2 - Excellency Section Styles remain the same */

/* Reviews Section */
.reviews {
    padding: 100px 0;
    background: #fff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.review-card {
    background: #f8faff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.stars {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 20px;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.8;
}

.client-name {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.client-title {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

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

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

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

/* Page 2 - Excellency Section */
.page2 {
    padding: 100px 0;
    background: #f8faff;
}

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

.excellence-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.section-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-title {
    color: var(--primary-color);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-desc {
    font-size: 18px;
    color: #666;
    margin-bottom: 35px;
}

/* Services Page Specifics */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    opacity: 0.8;
}

@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        min-height: 120px;
    }
}

/* Page 2 - Excellency Section Stats (Small squares on Home/About) */
.excellence-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

/* Footer Section */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.icai-mention {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    font-style: italic;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: inline-block;
}

.footer-hours p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-map {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map iframe {
    width: 100%;
    height: 100%;
}

.footer-brand .logo-text {
    margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4,
.footer-hours h4 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after,
.footer-hours h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.footer-contact p svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.footer-contact p a {
    transition: var(--transition);
}

.footer-contact p a:hover {
    color: var(--accent-color) !important;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.watermark {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.watermark:hover {
    opacity: 1;
    color: var(--accent-color);
}

@media screen and (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* Sub-page Header Styles */
.sub-header {
    background: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.sub-header h1 {
    font-size: 48px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Mobile Navigation Styles */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

@media screen and (max-width: 768px) {

    /* Header adjustments for mobile */
    .main-logo-img {
        height: 50px;
    }

    .main-name {
        font-size: 16px;
    }

    .sub-name {
        font-size: 8px;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: 100vh;
        background: #fff;
        width: 70%;
        padding: 50px 20px;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .content {
        padding: 0 20px;
    }

    .page1-header {
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page2 {
        padding: 60px 0;
    }

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

    .section-desc {
        font-size: 16px;
    }

    .reviews {
        padding: 60px 0;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer mobile adjustments */
    .footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-links h4::after,
    .footer-contact h4::after,
    .footer-hours h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}