@tailwind base;
@tailwind components;
@tailwind utilities;

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

@font-face {
    font-family: geograph-regular;
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-regular.eot);
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-regular.woff);
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-regular.woff2);
}

@font-face {
    font-family: geograph-regular-italic;
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-regular-italic.eot);
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-regular-italic.woff);
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-regular-italic.woff2);
}

@font-face {
    font-family: geograph-medium;
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-medium.eot);
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-medium.woff);
    src: url(//www.cefalo.com/hubfs/Fonts/geograph_font/geograph-web-medium.woff2);
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
}

* {
    scroll-behavior: smooth;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fade-in 2s ease-in-out;
}

body {
    background: #f7f7f7;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scroll animation for anchor links */
html {
    scroll-padding-top: 80px;
}

:focus {
    outline: none !important;
}

h1, h2, h3, h4, h5, h6, input, label, p, select, span, strong, textarea {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
}

h1 {
    font-size: 46px;
}

h1, h2 {
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 14px;
}

h2 {
    font-size: 36px;
}

header {
    background: #ffffff;
    color: #fff;
    padding: 1rem 0;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
}

.nav-link {
    position: relative;
    color: #1e40af;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

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

main {
    padding: 2rem 1rem;
}

section {
    margin-bottom: 2rem;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input, form textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form button {
    padding: 0.5rem;
    border: none;
    background: #333;
    color: #fff;
    cursor: pointer;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Custom animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

/* Custom focus styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
}

/* Image hover effect */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Button hover animation */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

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

.btn-hover-effect:hover::after {
    left: 100%;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Logo styles */
.logo-container img {
    transition: transform 0.3s ease;
}

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

/* Mobile menu enhancements */
#mobile-menu {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
}

/* Team cards hover effects */
.team-card {
    backface-visibility: hidden;
}

.team-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.team-card .group img {
    transition: transform 0.5s ease;
}

.team-card:hover .group img {
    transform: scale(1.05);
}

/* Team social links hover effect */
.team-card .group a {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card .group:hover a {
    transform: translateY(0);
    opacity: 1;
}

.team-card .group a:nth-child(2) {
    transition-delay: 0.1s;
}
