/* Custom CSS for Alpharomeo.in Digital Marketing Agency */

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

/* Root Variables */
:root {
    --primary-navy: #0F172A;
    --accent-blue: #00E0FF;
    --accent-blue-light: #40E8FF;
    --text-light: #F8FAFC;
    --text-gray: #94A3B8;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 224, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-accent: linear-gradient(135deg, #00E0FF 0%, #0EA5E9 100%);
    --gradient-card: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-primary);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
}

/* Prevent text breaking in spans */
span.text-accent-blue {
    white-space: nowrap;
}

/* Prevent specific long headings from breaking */
.whitespace-nowrap {
    white-space: nowrap;
}

/* Contact page hero title specific styling */
.contact-hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    white-space: nowrap;
    line-height: 1.1;
}

/* For very small screens, allow wrapping but prevent bad breaks */
@media (max-width: 640px) {
    .contact-hero-title {
        white-space: normal;
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
        line-height: 1.2;
        word-spacing: -0.1em;
    }
}

/* For extra small screens */
@media (max-width: 480px) {
    .contact-hero-title {
        font-size: 1.6rem !important;
        line-height: 1.1;
    }
    
    /* Control mobile line breaking */
    .mobile-break {
        white-space: nowrap;
    }
    
        .consultation-title {
        line-height: 1.2;
        font-size: 1.5rem !important;
    }
}

/* Additional mobile text improvements */
@media (max-width: 375px) {
    .contact-hero-title {
        font-size: 1.4rem !important;
    }
    
    .consultation-title {
        font-size: 1.3rem !important;
    }
}

/* iPhone 12/13/14 and similar screen widths */
@media (max-width: 390px) and (min-width: 376px) {
    .contact-hero-title {
        font-size: 1.45rem !important;
    }
    
    .consultation-title {
        font-size: 1.35rem !important;
    }
}

/* iPhone 12/13/14 Pro Max and similar large phone screens */
@media (max-width: 428px) and (min-width: 391px) {
    .contact-hero-title {
        font-size: 1.5rem !important;
    }
    
    .consultation-title {
        font-size: 1.4rem !important;
    }
}

/* Services page hero title specific styling */
.services-hero-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* Mobile specific adjustments for services hero title */
@media (max-width: 768px) {
    .services-hero-title {
        text-align: center !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: translateX(0) !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

/* Extra small screens - additional centering */
@media (max-width: 480px) {
    .services-hero-title {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin: 0 auto !important;
        padding: 0 0.5rem !important;
    }
}

/* Business Card Styles */
.business-card-container {
    position: relative;
    overflow: hidden;
}

.business-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.1) 0%, rgba(0, 224, 255, 0.05) 100%);
    border-radius: inherit;
    z-index: 1;
}

.business-card-container .glass-card {
    position: relative;
    z-index: 2;
}

.business-card-image {
    position: relative;
    z-index: 3;
}

.business-card-image img {
    filter: brightness(1.05) contrast(1.1);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 224, 255, 0.1);
}

.business-card-image img:hover {
    filter: brightness(1.1) contrast(1.15);
    box-shadow: 0 25px 50px rgba(0, 224, 255, 0.2);
    transform: scale(1.05) rotateY(5deg);
}

/* Business Card Mobile Responsive */
@media (max-width: 768px) {
    .business-card-image img {
        max-width: 100%;
        height: auto;
    }
    
    .business-card-container {
        margin-bottom: 2rem;
    }
}

/* Business Card Animation on Scroll */
@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateY(2deg);
    }
}

.business-card-image:hover img {
    animation: cardFloat 2s ease-in-out infinite;
}

/* For medium to large screens */
@media (min-width: 768px) {
    .contact-hero-title {
        white-space: nowrap;
        font-size: clamp(2.5rem, 4vw, 3.5rem) !important;
    }
}

/* For extra large screens */
@media (min-width: 1200px) {
    .contact-hero-title {
        font-size: 3.5rem !important;
    }
}

/* Mobile Typography */
@media (max-width: 640px) {
    h1, h2, h3 {
        line-height: 1.1;
        word-spacing: -0.05em;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    /* Fix long words breaking layout */
    .text-reveal, .scale-in, .fade-in-up {
        word-break: keep-all;
        overflow-wrap: break-word;
    }
}

/* Responsive text sizing improvements */
@media (max-width: 480px) {
    .text-4xl {
        font-size: 1.875rem !important; /* 30px */
    }
    
    .text-5xl {
        font-size: 2.25rem !important; /* 36px */
    }
    
    .text-6xl {
        font-size: 2.5rem !important; /* 40px */
    }
    
    .text-7xl {
        font-size: 3rem !important; /* 48px */
    }
    
    /* Service cards mobile optimization */
    .service-card h3,
    .testimonial-card h4,
    .team-card h3 {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.3;
    }
    
    /* Better paragraph spacing on mobile */
    .hero-subtitle,
    .fade-in-up p {
        font-size: 1rem !important; /* 16px */
        line-height: 1.5;
    }
}

/* Glassmorphism Effects */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-blue);
}

/* Custom Button Styles */
.btn-primary {
    background: var(--gradient-accent);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-blue);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--accent-blue);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-decoration: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--accent-blue);
    transition: all 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Ensure 3D backgrounds don't interfere with content */
.hero-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-content {
    z-index: 10;
    position: relative;
}

/* Ensure all section content stays above 3D backgrounds */
section.relative > .container {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Allow hero title to wrap on very small screens */
@media (max-width: 640px) {
    .hero-title {
        white-space: normal;
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Service Cards */
.service-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    animation: pulse 2s infinite;
}

/* Team Member Cards */
.team-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    overflow: hidden;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-blue);
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.5);
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-blue);
    opacity: 0.3;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.star-rating {
    color: #FCD34D;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

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

.form-input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.3);
}

.form-input::placeholder {
    color: var(--text-gray);
}

/* Select dropdown styling */
.form-input select {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-light);
}

.form-input option {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-light);
    padding: 0.5rem;
}

/* Ensure dropdown options are visible and styled properly */
select.form-input option {
    background-color: #0F172A;
    color: #ffffff;
    padding: 8px 12px;
}

select.form-input option:hover {
    background-color: #1e293b;
}

select.form-input option:checked {
    background-color: var(--accent-blue);
}

/* Additional select styling for better visibility */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 3rem;
}

/* Force dark styling on select options for webkit browsers */
select.form-input {
    color-scheme: dark;
}

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

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

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: left 0.3s ease;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 2rem;
}

.mobile-nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .service-card,
    .team-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .team-card,
    .testimonial-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue-light);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.video-modal video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-close:hover {
    color: var(--accent-blue);
    transform: scale(1.1);
}