/* Baloo font for DAY BUS brand name */
@font-face {
    font-family: 'Baloo';
    src: url('../font/baloo.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.daybus-brand {
    font-family: 'Baloo', sans-serif;
    letter-spacing: 0.05em;
}

/* Base Reset & Typography */
:root {
    --bg-color: #FAF9F6;
    --surface-color: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #555555;
    --accent-color: #E53935;
    /* Red - matching logo */
    --accent-hover: #C62828;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --radius-pill: 50px;
    --radius-card: 20px;
}

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

/* Lenis Smooth Scroll */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

html {
    scroll-padding-top: 80px;
}

/* Smooth Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #C62828);
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.5);
    transform-origin: left;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

button, 
.btn-pill-green, 
.btn-pill-outline,
a.btn-pill-green,
a.btn-pill-outline {
    outline: none !important;
}

button:focus, 
.btn-pill-green:focus, 
.btn-pill-outline:focus,
a.btn-pill-green:focus,
a.btn-pill-outline:focus {
    outline: none !important;
    box-shadow: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(229, 57, 53, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(229, 57, 53, 0.8);
    }
}

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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


/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.85rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.65rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.95rem;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    height: 50px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 300px;
    min-width: 150px;
    object-fit: contain;
    object-position: left center;
    transition: all 0.3s ease;
    display: block;
    vertical-align: middle;
}

.logo .dot {
    color: var(--accent-color);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: inline-block !important;
    line-height: 1;
    visibility: visible !important;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Buttons */
.btn-pill-green {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--accent-color);
    outline: none;
    transition: all 0.3s ease;
}

.btn-pill-green:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.2);
    border: 2px solid var(--accent-color);
}

.btn-pill-green:focus {
    outline: none;
    border: 2px solid var(--accent-color);
}

.btn-pill-green:active {
    outline: none;
    border: 2px solid var(--accent-color);
}

.btn-pill-outline {
    background-color: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.btn-pill-outline:hover {
    border-color: var(--text-primary);
    background-color: #fff;
    transform: translateY(-3px);
    border: 1px solid var(--text-primary);
}

.btn-pill-outline:focus {
    outline: none;
    border: 1px solid var(--text-primary);
}

.btn-pill-outline:active {
    outline: none;
    border: 1px solid var(--text-primary);
}

.w-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-color);
}

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

.hero-text-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-word {
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -3px;
    display: inline-block;
    white-space: nowrap;
    transform-origin: center;
    will-change: transform;
}

.bottom-row .hero-word {
    font-size: clamp(4rem, 10vw, 10rem);
}

.hero-actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.hero-actions .btn-pill-green,
.hero-actions .btn-pill-outline {
    padding: 0.68rem 1.5rem;
    font-size: 0.74rem;
    letter-spacing: 0.7px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 0;
    color: var(--text-secondary);
}

/* General Section Styles */
.section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
}

.stat-item p {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: var(--radius-card);
    overflow: hidden;
}

.reveal-image {
    height: 100%;
}

.reveal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Mission & Vision */
.mission-vision {
    background-color: var(--surface-color);
}

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

.mission-vision-card {
    background: var(--bg-color);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mission-vision-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.mission-vision-card p {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* Services */
.services {
    background-color: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--bg-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2.5rem;
    position: relative;
}

.service-card .icon {
    position: absolute;
    top: -30px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: var(--surface-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-text-stroke: 1px var(--text-secondary);
    opacity: 0.3;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.project-item {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #000;
}

.item-large {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 0.9;
}

.project-item:hover .project-img img {
    transform: scale(1.05);
    opacity: 0.6;
}

/* Disable hover effects in Why Choose section */
#projects .project-item:hover .project-img img {
    transform: none;
    opacity: 0.9;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* Disable hover effects in Why Choose section */
#projects .project-item:hover .project-info {
    transform: translateY(20px);
    opacity: 0;
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 700;
}

.project-info p {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact */
.contact {
    background-color: var(--surface-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.glass-form {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 249, 246, 0.98) 100%);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.4rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), inset 0 1px 2px rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(229, 57, 53, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.95);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(229, 57, 53, 0.2), 
                0 0 0 4px rgba(229, 57, 53, 0.1),
                inset 0 1px 2px rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    background: #fff;
    border-width: 2px;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.3;
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: var(--font-body);
    line-height: 1.7;
    padding-top: 1.4rem;
}

/* Add a subtle animated border effect on focus */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), #C62828);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.form-group:focus-within::after {
    width: calc(100% - 3rem);
}

.contact-form .btn-pill-green {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 1.4rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
    letter-spacing: 0.5px;
    outline: none;
    border: 2px solid var(--accent-color);
}

.contact-form .btn-pill-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(229, 57, 53, 0.4);
    background-color: var(--accent-hover);
    border: 2px solid var(--accent-hover);
}

.contact-form .btn-pill-green:focus {
    outline: none;
    border: 2px solid var(--accent-color);
}

.contact-form .btn-pill-green:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
    outline: none;
    border: 2px solid var(--accent-color);
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 249, 246, 0.98) 100%);
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(229, 57, 53, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(250, 249, 246, 1) 100%);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, rgba(229, 57, 53, 0.05) 100%);
    border-radius: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.2) 0%, rgba(229, 57, 53, 0.1) 100%);
    transform: scale(1.1);
    color: var(--accent-hover);
}

.contact-card:hover .contact-icon svg {
    transform: scale(1.1);
}

.contact-content {
    flex: 1;
}

.contact-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.contact-content a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-content a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
    padding-left: 5px;
}

.contact-content a:last-child {
    margin-bottom: 0;
}

.contact-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.map-link {
    color: var(--accent-color) !important;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.map-link:hover {
    text-decoration: underline !important;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: #111;
    color: #fff;
    text-align: center;
}

.footer-content {
    flex-direction: column;
    gap: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-word {
        font-size: 3.5rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .logo-img {
        height: 40px;
        max-width: 180px;
        min-width: 100px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        background: #fff;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active .bar {
        background-color: #000;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
    
    .item-large {
        grid-column: span 1;
        aspect-ratio: 1/1;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .contact-info h2 {
        text-align: center;
    }

    .contact-intro {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .glass-form {
        padding: 2rem;
    }
}

/* Utility Animations */
.animate-hidden {
    opacity: 0;
}

.fade-up {
    animation: fadeInUp 0.8s forwards ease-out;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
}

/* Custom Cursor - Magnetic & Spotlight */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--text-primary);
    transition: transform 0.2s ease;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-radius 0.2s, transform 0.2s;
}

/* Magnetic Lock State */
.cursor-outline.magnetic-lock {
    background-color: rgba(229, 57, 53, 0.1);
    border-color: var(--accent-color);
    transition: all 0.1s ease;
    /* Faster transition when locking */
}

body.magnetic-active .cursor-dot {
    transform: translate(-50%, -50%) scale(0);
    /* Hide dot when locked */
}

/* Spotlight Effect for Cards */
.service-card {
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    /* Ensure background is solid */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(229, 57, 53, 0.06),
            transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .service-content,
.service-card .service-img {
    position: relative;
    z-index: 2;
}

/* Text Outline Effect for Headings */
h1, h2 {
    position: relative;
    display: inline-block;
    text-align: center !important;
}

@media (max-width: 767.98px) {
    h1,
    h2,
    .section-title {
        text-align: left !important;
    }
}

/* Exclude section titles and h3 from outline effect */
.section-title,
h3 {
    position: relative;
}

.section-title .text-outline-container,
.section-title .text-fill-mask,
h3 .text-outline-container,
h3 .text-fill-mask {
    display: none !important;
}

/* Exclude green buttons and headings from outline effect */
.btn-pill-green,
.btn-pill-outline,
.btn-pill-green h1,
.btn-pill-green h2,
.btn-pill-green h3,
.btn-pill-outline h1,
.btn-pill-outline h2,
.btn-pill-outline h3,
a.btn-pill-green,
a.btn-pill-outline {
    position: relative;
}

.btn-pill-green .text-outline-container,
.btn-pill-outline .text-outline-container,
.btn-pill-green .text-fill-mask,
.btn-pill-outline .text-fill-mask {
    display: none !important;
}

/* Exclude service cards (Our Expertise section) from outline effect */
.service-card h1,
.service-card h2,
.service-card h3,
.service-card p,
.service-card .text-outline-container,
.service-card .text-fill-mask {
    position: relative;
}

.service-card .text-outline-container,
.service-card .text-fill-mask {
    display: none !important;
}

/* Exclude project-info headings (Why Choose section) from outline effect */
.project-info h3,
.project-info p,
.project-info .text-outline-container,
.project-info .text-fill-mask {
    position: relative;
}

.project-info .text-outline-container,
.project-info .text-fill-mask {
    display: none !important;
}

.text-fill-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
    will-change: clip-path;
    transform: translateZ(0); /* Force hardware acceleration */
}

.text-outline-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
    will-change: contents;
}

.text-outline-clone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke-width: 2.5px;
    -webkit-text-stroke-color: var(--original-color, currentColor);
    text-fill-color: transparent;
    text-stroke-width: 2.5px;
    text-stroke-color: var(--original-color, currentColor);
    color: transparent;
    display: inline-block;
    line-height: inherit;
    will-change: clip-path;
    transform: translateZ(0); /* Force hardware acceleration */
    word-wrap: break-word;
    word-break: break-word;
}

/* Enhanced Animations */
.hero-word {
    animation: float 6s ease-in-out infinite;
}

.hero-word:nth-child(1) {
    animation-delay: 0s;
}

.hero-word:nth-child(2) {
    animation-delay: 1s;
}

.hero-word:nth-child(3) {
    animation-delay: 2s;
}

/* Stats Animation */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    animation: pulse 1s ease-in-out;
}

.stat-item h3 {
    transition: all 0.3s ease;
}

/* Service Cards Enhanced Animations */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    animation: glow 2s ease-in-out infinite;
}

.service-card .icon {
    transition: all 0.5s ease;
}

.service-card:hover .icon {
    transform: scale(1.2) rotate(5deg);
    animation: pulse 1.5s ease-in-out infinite;
}

.service-card h3 {
    transition: all 0.3s ease;
}

.service-card:hover h3 {
    transform: translateX(5px);
    color: var(--accent-color);
}

/* Project Items Enhanced */
.project-item {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.project-item:hover {
    transform: scale(1.03);
}

.project-item:hover .project-img img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1);
}

.project-info {
    transition: all 0.4s ease;
}

.project-item:hover .project-info {
    transform: translateY(-10px);
}

/* Form Animations - Additional styling */
.form-group {
    animation: slideUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

/* Social Links Animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2) rotate(5deg);
    color: var(--accent-color);
    animation: bounce 0.6s ease-in-out;
}

/* Logo Animation */
.logo {
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo-img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo .dot {
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

/* Nav Links Enhanced */
.nav-links a {
    transition: all 0.3s ease;
}

.nav-links a:hover {
    transform: translateY(-2px);
}

/* Button Enhanced Animations */
.btn-pill-green,
.btn-pill-outline {
    position: relative;
    transition: all 0.3s ease;
}

.btn-pill-green::before,
.btn-pill-outline::before {
    display: none;
}

.btn-pill-green:hover::before,
.btn-pill-outline:hover::before {
    display: none;
}

/* Stats Counter Animation */
.stat-item.animate-counter h3 {
    animation: counter 0.8s ease-out;
}

/* Smooth Scroll Reveal */
@keyframes reveal {
    from {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0% 0 0);
    }
}

.reveal-image {
    animation: reveal 1s ease-out;
}

/* Image Hover Effects */
.service-img img,
.project-img img,
.about-image img {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .service-img img {
    transform: scale(1.15) rotate(1deg);
}

/* Section Title Animation */
.section-title {
    position: relative;
    display: block;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 80%;
    animation: glow 2s ease-in-out infinite;
}

/* Smooth Scroll Animations */
.section {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform;
}

/* Enhanced Scroll Animations */
.animate-on-scroll {
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1 !important;
}

/* Smooth Fade In for Sections */
.section {
    opacity: 1;
    animation: fadeInSection 1s ease-out;
}

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

/* Parallax Elements */
.hero,
.about-image,
.service-card,
.project-item {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Smooth Scroll Stagger Animation */
.services-grid > *,
.projects-grid > *,
.stats > * {
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Enhanced Scroll Reveal */
@keyframes scrollReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.scroll-reveal {
    animation: scrollReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth Navbar on Scroll */
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Smooth Section Transitions */
.section {
    scroll-margin-top: 100px;
}

/* Enhanced Easing for Scroll Animations */
.fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-right {
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-left {
    animation: slideInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.scale-up {
    animation: scaleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-right {
    animation: fadeRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-left {
    animation: fadeLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bootstrap 5 Responsive Overrides */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem !important;
    }
    
    .hero-section h1,
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .display-1 {
        font-size: 3rem !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .navbar .container {
        justify-content: space-between;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .hero-section h1,
    .hero h1 {
        font-size: 2rem !important;
    }

    .navbar {
        padding: 0.65rem 0;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 70px;
    }

    .hero-text-row {
        flex-wrap: wrap;
        gap: 0;
    }

    .hero-word {
        font-size: clamp(2.2rem, 13vw, 3.2rem);
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-top: 0;
        padding: 0 0.5rem;
    }

    .hero-actions {
        width: 100%;
        margin-top: 1rem;
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn-pill-green,
    .hero-actions .btn-pill-outline {
        width: min(100%, 280px);
        justify-content: center;
        padding: 0.68rem 1.3rem;
        font-size: 0.74rem;
    }
    
    .display-1 {
        font-size: 2.5rem !important;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
    
    .about-container {
        grid-template-columns: 1fr !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .hero-section h1,
    .hero h1 {
        font-size: 1.75rem !important;
    }

    .hero {
        padding-top: 110px;
        padding-bottom: 56px;
    }

    .hero-text-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0.5rem;
    }

    .hero-word {
        font-size: clamp(2rem, 12vw, 2.8rem);
    }

    .display-1 {
        font-size: 2rem !important;
    }
    
    .btn-pill-green,
    .btn-pill-outline {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    .service-card {
        padding: 1rem !important;
    }
    
    .service-card h3 {
        font-size: 0.9rem !important;
    }
    
    .service-card p {
        font-size: 0.8rem !important;
    }
    
    .contact-container {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .contact-info,
    .contact-form {
        width: 100% !important;
        padding: 1.5rem !important;
    }
    
    .contact-item {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .contact-item .icon {
        margin: 0 auto !important;
    }
    
    .hero-section {
        padding: 100px 0 60px !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    .navbar-brand img {
        height: 32px !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    h4 {
        font-size: 1rem !important;
    }
}