:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #ecf0f1;
    --overlay-color: rgba(44, 62, 80, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background: linear-gradient(-45deg, #2c3e50, #3498db, #2980b9, #1abc9c);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    overflow-x: hidden;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header Styles */
header {
    padding: 1rem 5%;
    position: fixed;  /* Change from absolute to fixed */
    top: 0;          /* Change from 50% to 0 */
    left: 0;         /* Add this */
    width: 100%;     /* Add this */
    background: rgba(44, 62, 80, 0.9); /* Add semi-transparent background */
    backdrop-filter: blur(10px);
    z-index: 100;
    transform: none;  /* Remove the transform */
    animation-delay: 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
}

.nav-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.nav-btn:active {
    transform: translateY(0);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* This centers vertically */
    align-items: center;    /* This centers horizontally */
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.0&auto=format&fit=crop&w=2000&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 0;
    margin-top: 0; /* Remove any top margin */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.75); /* Slightly darker overlay for better text readability */
    z-index: 1;
}

#hero * {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Limit text width for better readability */
    margin: 0 auto;
}

#hero .content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    z-index: 2;
}

#hero h1 {
    font-size: 4rem; /* Increased size for better visibility */
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Added shadow for better text contrast */
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease, glowText 2s ease-in-out infinite alternate;
    animation-delay: 0.6s;
}

.cta-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
    animation-delay: 1.2s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.6);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.4);
}

/* Services Section */
#services {
    padding: 5rem 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5%;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:nth-child(2) {
    animation-delay: 1s;
}

.service-card:nth-child(3) {
    animation-delay: 2s;
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

/* Reviews Section */
#reviews {
    padding: 5rem 2rem;
    background: rgba(44, 62, 80, 0.3);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.reviewer-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Remove or comment out the .reviewer-img styles since we're not using images anymore */
/* .reviewer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
} */

.reviewer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.company {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.stars {
    color: #f1c40f;
    margin: 1rem 0;
}

.stars i {
    margin: 0 2px;
}

.review-text {
    font-style: italic;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #3498db;
    }
    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #3498db;
    }
}

/* Add typing animation for hero text */
.typing-text {
    overflow: hidden;
    border-right: 3px solid #fff;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff }
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(52, 152, 219, 0.7);
    }
    100% {
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    }
}

/* Footer */
footer {
    padding: 2rem 5%;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.95), rgba(52, 152, 219, 0.95));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    transition: all 0.3s ease;
}

.footer-logo:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(52, 152, 219, 0.8);
}

.social-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

/* Add tooltip styles */
.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.social-links a:hover::after {
    opacity: 1;
    visibility: visible;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links a:hover::before {
    transform: scale(1);
}

.social-links i {
    position: relative;
    z-index: 1;
}

/* Add floating icons animation */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%); /* Center the floating icons vertically */
}

.floating-icon {
    position: absolute;
    opacity: 0.1;
    animation: floatIcon 15s linear infinite;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; left: 80%; animation-delay: 3s; }
.floating-icon:nth-child(3) { top: 40%; left: 40%; animation-delay: 6s; }
.floating-icon:nth-child(4) { top: 80%; left: 20%; animation-delay: 9s; }

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-200px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes glowText {
    from {
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.5),
                     0 0 20px rgba(52, 152, 219, 0.3),
                     0 0 30px rgba(52, 152, 219, 0.2);
    }
    to {
        text-shadow: 0 0 20px rgba(52, 152, 219, 0.8),
                     0 0 30px rgba(52, 152, 219, 0.5),
                     0 0 40px rgba(52, 152, 219, 0.3);
    }
}

/* Add animation for initial load */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

/* Adjust animation delays for staggered effect */
#hero p {
    animation-delay: 0.9s;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.footer-address i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.footer-address p {
    line-height: 1.4;
}