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

@keyframes textShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

html {
    scroll-behavior: smooth;
    min-height: 100vh;
    /* Fixed background that extends beyond viewport for overscroll effect */
    background: #1a1a1a;
    background-attachment: fixed;
    background-size: cover;
    /* Prevent horizontal overscroll, allow vertical */
    overscroll-behavior-x: none;
    overscroll-behavior-y: auto;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    /* Transparent body so html background shows through on overscroll */
    background: transparent;
    /* Prevent horizontal scroll, allow vertical */
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Content wrapper with matching background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1a1a1a;
    z-index: -1;
    pointer-events: none;
}

/* Prevent scrolling during loading screen */
body.loading-active {
    overflow: hidden;
    height: 100vh;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    padding: 20px;
    box-sizing: border-box;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
    z-index: -1;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    margin-bottom: 2rem;
}

.loading-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #F57F9F, #042538);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    margin-bottom: 2rem;
    position: relative;
    animation: textShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    -webkit-text-stroke: 1px white;
}

/* Loading Overlay for Form Submissions */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .loading-content {
    text-align: center;
    color: white;
    background: rgba(26, 26, 26, 0.9);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.loading-overlay .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-overlay .loading-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
}

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

/* This keyframe is already defined above */

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

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content.fade-in {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1a1a1a;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
    width: auto;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    /* Add text outline for better visibility against blue background */
    -webkit-text-stroke: 1px #F57F9F;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    /* push nav links to the right while keeping the logo on the left */
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #F57F9F, #042538);
}

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

/* Admin Link Styles */
.admin-link {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.admin-link:hover {
    background: linear-gradient(45deg, #0d1b69, #1e3a8a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.admin-link::after {
    display: none;
}

.admin-link i {
    margin-right: 5px;
}

.admin-link.active {
    background: linear-gradient(45deg, #0d1b69, #1e3a8a);
}

.logout-link {
    margin-left: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: #1e3a8a;
    font-weight: 500;
}

.logout-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #e53e3e !important;
}

.logout-link::after {
    background: linear-gradient(45deg, #e53e3e, #c53030);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

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

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Hide the normal menu */
    }
    
    .mobile-menu-btn {
        display: block; /* Show the hamburger menu button */
    }
    
    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #1a1a1a;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        text-align: center;
        z-index: 999;
    }
    
    .nav-link {
        margin: 10px 0;
    }

    .wave-container-bottom {
        display: none;
    }
}

.nav-menu.active {
    display: flex;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1a1a1a;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    z-index: 999;
}

/* Animated Wave */
.wave-container {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave {
    position: relative;
    display: block;
    width: calc(120% + 1.3px);
    height: 120px;
    animation: wave 10s ease-in-out infinite alternate;
}

.shape-fill {
    fill: #F57F9F;
}

@keyframes wave {
    0% {
        transform: translateX(-50px);
    }
    100% {
        transform: translateX(0px);
    }
}

/* Bottom Wave */
.wave-container-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    transform: rotate(180deg);
}

.wave-bottom {
    position: relative;
    display: block;
    width: calc(120% + 1.3px);
    height: 120px;
    animation: wave 10s ease-in-out infinite alternate;
}

.shape-fill-bottom {
    fill: #1a1a1a;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
    background: #1a1a1a;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    color: white;
    background-size: 200% 100%;
    position: relative;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: heroTextShimmer 10s ease-in-out infinite;
}

@keyframes heroTextShimmer {
    0%, 75% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.85;
}

.location-text {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.bahamas-text {
    color: #40E0D0; /* Lighter aquamarine */
    font-weight: 600;
    animation: bahamas-colors 18s ease-in-out infinite;
}

@keyframes bahamas-colors {
    0%, 100% {
        color: #40E0D0; /* Lighter aquamarine */
        transform: scale(1);
        text-shadow: none;
    }
    33% {
        color: #FFD700; /* Yellow */
        transform: scale(1.02);
        text-shadow: none;
    }
    66% {
        color: #000000; /* Black */
        transform: scale(1.05);
        text-shadow: 0 0 3px #ffffff, 0 0 6px #ffffff; /* White glow for visibility */
    }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #764ba2, #042538);
    color: white;
    -webkit-text-stroke: 1px #F57F9F;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    animation: float 6s ease-in-out infinite;
}

.element-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 40%;
    animation: float 8s ease-in-out infinite reverse;
}

.element-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 10%;
    animation: float 7s ease-in-out infinite;
}

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

/* Projects Section */
.projects {
    padding: 100px 0;
    background: #1a1a1a;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
    -webkit-text-stroke: 1px #F57F9F;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Ensure consistent card heights */
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #F57F9F, #042538);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-card p {
    color: #cccccc;
    margin-bottom: auto; /* Push content up, link to bottom */
    line-height: 1.6;
    flex: 1; /* Allow paragraph to grow and fill space */
}

/* Service list styling */
.service-list {
    color: #cccccc;
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
    line-height: 1.8;
}

.service-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.service-list li::before {
    content: '•';
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: -1.2rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
    width: 100%; /* Make it full width for better centering */
}

.project-link:hover {
    color: #764ba2;
}

/* 'Coming Soon' badge for projects under development */
.badge-dev {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(90deg, #F57F9F 0%, #764ba2 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(118,75,162,0.12);
}

/* Disabled project link style */
.project-link.disabled {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #999;
    cursor: default;
    pointer-events: none;
}

.project-link.disabled i {
    color: #b3b3b3;
}

/* CayVPN highlight styling */
.cayvpn-highlight {
    position: relative;
}

/* Flagship card styling - makes it appear lifted */
.flagship-card {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(245, 127, 159, 0.1);
    border: 1px solid rgba(245, 127, 159, 0.2);
    position: relative;
}

.flagship-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(245, 127, 159, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.7;
}

.cayvpn-highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* 'New' badge for CayVPN */
.badge-new {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    z-index: 2;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

/* 'Open Source' badge for CayVPN */
.badge-opensource {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(90deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(45, 55, 72, 0.3);
    z-index: 2;
    letter-spacing: 0.5px;
}

/* 'Flagship' badge for Caynetic Flow */
.badge-flagship {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(90deg, #F57F9F 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 127, 159, 0.3);
    z-index: 2;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

/* 'Affordable' badge for Basic Website Package */
.badge-affordable {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    z-index: 2;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    background: #1a1a1a;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.experience-section h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.experience-item {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.experience-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #042538, #F57F9F);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.experience-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.experience-item p {
    color: #cccccc;
    line-height: 1.6;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    background: linear-gradient(45deg, #F57F9F 0%, #F57F9F 70%, #042538 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat p {
    color: #cccccc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Newsletter Section */
.newsletter {
    padding: 100px 0;
    background: #1a1a1a;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title {
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 2.5rem;
}

.newsletter .section-title {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.subscribe-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 10px;
    display: none;
}

.subscribe-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.subscribe-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

/* Contact Form Messages */
.message {
    display: none;
    padding: 10px 20px;
    margin: 1rem auto 1.5rem;
    border-radius: 10px;
    position: relative;
    animation: slideIn 0.3s ease-out;
    text-align: center;
    max-width: 500px;
}

.message.success {
    background: transparent;
    color: white;
    border: none;
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.5);
}

.message.show {
    display: block;
}

.message-icon {
    display: none; /* Hide the icon for success messages */
}

.message-text {
    font-weight: 500;
    display: inline;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 0 0 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    display: inline;
    vertical-align: baseline;
}

.message-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid #000621;
    border-radius: 14px;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    color: #fff;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    text-align: center;
}

.modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.modal-icon.success {
    color: #4caf50;
}

.modal-icon.error {
    color: #f44336;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.modal-message {
    font-size: 1rem;
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 20px;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    -webkit-text-stroke: 1px #F57F9F;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(45deg, #F57F9F, #042538);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.powered-by {
    font-size: 0.9rem;
    opacity: 0.8;
}

.flask-text {
    color: #667eea;
    font-weight: 600;
    background: linear-gradient(45deg, #F57F9F, #042538);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Add text outline helper class */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

/* Apply outline to brand name */
.brand-name {
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.3);
}

/* Add stronger outline to Stay Updated section title */
.newsletter .section-title {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

/* Add outline to gradient text in hero section */
.gradient-text {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.25);
}

/* Mission & Vision Section */
.mission {
    padding: 100px 0;
    background: #1a1a1a;
}

.mission-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.mission-text {
    flex: 1;
}

.mission-text p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-visual {
    flex: 1;
    text-align: center;
}

.mission-visual i {
    color: #667eea;
    animation: heartPulse 3s ease-in-out infinite;
}

/* Why Choose Caynetic Section */
.why-choose {
    padding: 100px 0;
    background: #2a2a2a;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #F57F9F, #042538);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.why-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.why-item p {
    color: #cccccc;
    line-height: 1.6;
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background: #1a1a1a;
}

.experience .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experience-item {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.experience-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #F57F9F, #042538);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.experience-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.experience-item p {
    color: #cccccc;
    line-height: 1.6;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: #1a1a1a;
}

.team-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: #2a2a2a;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.team-member p {
    color: #cccccc;
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background: #1a1a1a;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-card {
    background: #2a2a2a;
    border: none;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
}

.faq-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.faq-card h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.4;
}

/* Modal styling for FAQ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid #000621;
    border-radius: 14px;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    color: #fff;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-content h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: #ddd;
    line-height: 1.5;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal .close:hover {
    color: #fff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 85vh;
        padding: 15px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #2a2a2a;
}

.contact p {
    text-align: center;
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    color: #cccccc;
}

.contact-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    border: 2px solid #333;
    border-radius: 10px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .mission-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-info {
        gap: 2rem;
    }
    
    .why-grid,
    .team-grid,
    .experience-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQ Mobile Styles */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-card {
        padding: 1.5rem 1rem;
    }
    
    .faq-card h3 {
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }

    /* Hero Mobile Styles */
    .hero {
        padding: 100px 20px 140px; /* Increased bottom padding to accommodate wave */
        min-height: auto;
        height: auto;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-location {
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Ensure bottom wave is fully visible on mobile */
    .wave-container-bottom {
        height: 120px; /* Match the wave height */
        margin-bottom: -2px; /* Remove any gap between wave and next section */
    }
    
    .wave-bottom {
        height: 120px;
    }
    
    /* Remove top padding from projects section to connect with wave */
    .projects {
        padding-top: 20px; /* Minimal padding for spacing */
        margin-top: 0;
        z-index: 2;
    }
    
    /* Adjust hero bottom padding to account for wave */
    .hero {
        padding-bottom: 20px; /* Reduced padding since wave provides visual separation */
    }
    
    /* Add scroll margin to all sections so headings appear below navbar on mobile */
    section {
        scroll-margin-top: 80px;
    }
    
    /* Reduce top padding for all sections on mobile to match Solutions */
    .about,
    .mission,
    .why-choose,
    .team,
    .faq,
    .contact {
        padding-top: 20px;
    }
}

/* Heart Animation */
@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
        color: #667eea;
        filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3));
    }
    25% {
        transform: scale(1.1);
        color: #764ba2;
        filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.5));
    }
    50% {
        transform: scale(2);
        color: #F57F9F;
        filter: drop-shadow(0 0 30px rgba(245, 127, 159, 0.7));
    }
    75% {
        transform: scale(1.1);
        color: #764ba2;
        filter: drop-shadow(0 0 20px rgba(118, 75, 162, 0.5));
    }
}

.mission-visual i {
    color: #667eea;
    animation: heartPulse 8s ease-in-out infinite;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid #000621;
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-icon.success {
    color: #4CAF50;
}

.modal-icon.error {
    color: #f44336;
}

.modal-content h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal-close-btn {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Contact Message Styles */
.contact-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: messageSlideIn 0.3s ease-out;
    position: relative;
}

.contact-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.contact-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.contact-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-message span {
    flex: 1;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes messageSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Mobile Footer Fixes */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin: 0;
    }
    
    .footer-links a {
        padding: 0.5rem;
        white-space: nowrap;
    }
    
    .footer-social {
        justify-content: center;
    }
}