/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Fixed Header/Navbar */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

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

.company-name {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.company-name-text {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px;
    line-height: 1.2;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo-link:hover .company-name-text {
    color: #e74c3c;
}

.logo h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.navbar {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    transform: translateY(-2px);
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        padding-top: 100px;
    }
    
    .navbar.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 2rem;
        height: 100%;
        justify-content: flex-start;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 1rem;
        opacity: 0;
        transform: translateY(20px);
        animation: none;
    }
    
    .navbar.active .nav-menu li {
        animation: slideInFromLeft 0.4s ease forwards;
    }
    
    .navbar.active .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .navbar.active .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .navbar.active .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .navbar.active .nav-menu li:nth-child(4) { animation-delay: 0.4s; }
    .navbar.active .nav-menu li:nth-child(5) { animation-delay: 0.5s; }
    .navbar.active .nav-menu li:nth-child(6) { animation-delay: 0.6s; }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.2rem;
        font-weight: 600;
        color: #333;
        border-radius: 15px;
        background: rgba(0, 123, 255, 0.05);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .nav-menu li a:hover,
    .nav-menu li a:active {
        background: rgba(0, 123, 255, 0.1);
        border-color: rgba(0, 123, 255, 0.3);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
        color: #007bff;
    }
    
    /* Logo adjustment for mobile */
    .logo-img {
        height: 40px;
    }
    
    .company-name-text {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
}

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

/* Tablet responsive */
@media (max-width: 992px) and (min-width: 769px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .header-container {
        padding: 0 0.8rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .company-name-text {
        font-size: 0.8rem;
        letter-spacing: 0.2px;
    }
    
    .logo-link {
        gap: 10px;
    }
    
    .nav-menu {
        padding: 1.5rem;
    }
    
    .nav-menu li a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Moving Background with Transform Animation - Optimized for performance */
.moving-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../assets/img/background.webp');
    background-size: cover;
    background-position: 50% center;
    background-repeat: no-repeat;
    z-index: -1;
    will-change: background-position;
    animation: panRight 65s ease-in-out infinite;
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    contain: layout style paint;
}

/* Hide moving background after section 2 */
.section-new-bg ~ * .moving-background,
.section-new-bg .moving-background {
    display: none;
}

/* Keyframe animation to pan across the image itself - starts from center */
@keyframes panRight {
    0% {
        background-position: 50% center;
    }
    50% {
        background-position: 100% center;
    }
    100% {
        background-position: 50% center;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 80px; /* Space for fixed header */
}

.hero-content {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 600px;
    margin: 0 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.3rem;
    color: black;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, #0056b3, #004085);
}

.hero-button.secondary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.hero-button.secondary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

/* Banner Button Styles */
.banner-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.banner-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

/* Content Sections */
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
        background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 2rem 0;
}

/* New background section (after section 2) */
.section-new-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('../assets/img/4.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

.section-new-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 700px;
    text-align: center;
}

/* Special styling for new background section */
.section-new-bg .content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-new-bg .content-wrapper h2 {
    color: #000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-new-bg .content-wrapper p {
    color: #000;
}

/* Project Features Grid */
.project-features {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.feature-item h3 {
    color: #000;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.feature-item p {
    color: #000;
    line-height: 1.6;
    font-size: 0.95rem;
    
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info h3 {
    color: #000;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.content-wrapper h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.content-wrapper p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
}

/* Phone Contact Styling */
.phone-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding: 15px 40px;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    font-size: 1.2rem;
}

.phone-contact:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, #0056b3, #004085);
}

.phone-contact .phone-icon {
    font-size: 1.5rem;
    animation: phoneRing 2s infinite;
}

.phone-contact a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.phone-contact a:hover {
    color: white;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Special styling for phone contact in new background section */
.section-new-bg .phone-contact {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
}

.section-new-bg .phone-contact:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.4);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: visible;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 28px;
    height: 28px;
    fill: white;
    animation: whatsappPulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: rgba(0, 0, 0, 0.9);
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

.tooltip-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.whatsapp-tooltip .phone-number {
    display: block;
    font-size: 0.8rem;
    color: #25D366;
    font-weight: 500;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 120px;
        max-width: 150px;
    }
    
    .logo h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-menu li a {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
    
    .hero-content {
        padding: 2.5rem;
        margin: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-button {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 250px;
    }
    
    .content-wrapper {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 2rem;
    }
    
    .project-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .phone-contact {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .phone-contact a {
        font-size: 1.1rem;
    }
    
    /* WhatsApp Button Responsive */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-tooltip {
        right: 60px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .fixed-header {
        padding: 0.8rem 0;
    }
    
    .logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-menu li a {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.8rem;
    }
    
    .project-features {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-item h3 {
        font-size: 1rem;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.1rem;
    }
    
    .phone-contact {
        padding: 0.8rem 1rem;
        gap: 0.4rem;
    }
    
    .phone-contact .phone-icon {
        font-size: 1.2rem;
    }
    
    .phone-contact a {
        font-size: 1rem;
    }
    
    /* WhatsApp Button Mobile */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }
    
    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }
    
    .whatsapp-tooltip {
        right: 55px;
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .tooltip-text {
        font-size: 0.8rem;
    }
    
    .whatsapp-tooltip .phone-number {
        font-size: 0.7rem;
    }
}
