/* Base styles for body */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0F172A; /* Navy dark background */
    color: #E2E8F0; /* Light gray text */
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure body takes full viewport height */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations outside slider */
}

/* Keyframe for fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Keyframe for subtle floating effect (for WhatsApp button) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

/* Apply fade-in animation to sections */
.animated-section {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0; /* Start hidden */
}

/* Specific link hover effect */
.footer-link-hover:hover, .nav-link-hover:hover {
    color: #60A5FA; /* Blue-400 for hover */
    transform: translateX(5px); /* Slight slide effect */
}

/* Button hover effect */
.btn-hover:hover {
    background-color: #3B82F6; /* Blue-600 */
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); /* Glowing shadow */
    transform: translateY(-2px); /* Slight lift */
}

/* Input focus effect */
.input-focus:focus {
    border-color: #3B82F6; /* Blue-600 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5); /* Focus ring */
}

/* Social icon hover effect */
.social-icon-hover:hover {
    color: #60A5FA; /* Blue-400 */
    transform: scale(1.1); /* Slight zoom */
}

/* Transition properties for smooth animations */
.transition-colors-transform {
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.transition-all-effects {
    transition: all 0.3s ease-in-out;
}

/* Hero section specific gradient and glow effect */
.hero-gradient {
    background: linear-gradient(to right, #00BFFF, #87CEEB); /* Brighter cyan to sky blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback for non-webkit browsers */
    /* Add subtle text shadow for glowing effect */
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.6), /* Cyan glow */
                 0 0 15px rgba(0, 191, 255, 0.4); /* Larger glow */
}

/* Portfolio slider styles for horizontal scrolling */
.portfolio-slider {
    scroll-snap-type: x mandatory; /* Snap to card start */
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    overflow-x: auto; /* Enable horizontal scrolling */
    display: flex; /* Use flexbox to arrange cards horizontally */
    gap: 1.5rem; /* Space-x-6 translates to 1.5rem gap */
    padding: 1rem; /* p-4 translates to 1rem padding */
    margin-left: -1rem; /* -mx-4 translates to -1rem margin-left */
    margin-right: -1rem; /* -mx-4 translates to -1rem margin-right */
    background-color: rgba(30, 41, 59, 0.5); /* bg-gray-800/50 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); /* shadow-inner */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
}
.portfolio-slider::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.portfolio-card {
    scroll-snap-align: start; /* Snap to the start of the card */
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 320px; /* Fixed width for horizontal slider */
    max-width: 90vw;
    background-color: #1F2937; /* bg-gray-800 */
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
    padding: 1.5rem; /* p-6 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s ease-in-out; /* transition-all-effects */
}

@media (min-width: 768px) {
    .portfolio-card {
        width: 350px;
    }
}
@media (min-width: 1024px) {
    .portfolio-card {
        width: 370px;
    }
}

/* WhatsApp floating button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: float 2s ease-in-out infinite;
}
.whatsapp-float-btn:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Hide pages by default */
.page-content {
    display: none;
}
.page-content.active {
    display: block;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Footer specific adjustments for compactness */
footer {
    padding-top: 3rem; /* Reduced from py-16 (4rem) to py-12 (3rem) */
    padding-bottom: 2.5rem; /* Reduced from py-16 (4rem) to py-10 (2.5rem) */
    background-color: rgba(15, 23, 42, 0.95); /* Slightly more opaque background */
}
footer .text-base { /* Adjusting general text in footer for better compactness */
    font-size: 0.95rem; /* Slightly smaller for compactness */
}
footer .text-lg { /* Adjusting specific larger texts like slogan */
    font-size: 1.05rem; /* Slightly smaller for compactness */
}
footer .text-xl { /* Adjusting titles like "Company", "Services" */
    font-size: 1.15rem; /* Slightly smaller for compactness */
    margin-bottom: 0.75rem; /* Reduced spacing */
}
footer .text-3xl { /* Branding logo text */
    font-size: 2rem; /* Slightly smaller */
    margin-bottom: 0.75rem; /* Reduced spacing */
}
footer .space-y-2 > li {
    padding-top: 0.25rem; /* Reduce vertical padding of list items */
    padding-bottom: 0.25rem; /* Reduce vertical padding of list items */
}
footer .mb-4 { /* Reduce margins for CTA, Newsletter headings */
    margin-bottom: 0.75rem;
}
footer .px-6.py-3 { /* Keep button size but reduce its surrounding space if necessary */
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
footer .social-icon-hover {
    font-size: 2rem; /* Keep social icons prominent */
}
footer .pt-8 { /* Top padding for social media section */
    padding-top: 1.5rem; /* Reduced top padding */
}
footer .mt-4 { /* Margin top for legal section */
    margin-top: 1rem; /* Reduced margin */
}