/* Core Variables */
:root {
    --svss-navy: #1E1E2F;
    --svss-white: #FFFFFF;
    --svss-teal: #40E0D0;
    --svss-green: #90EE90;
    --svss-yellow: #FFD700;
    --svss-orange: #FFA500;
    --svss-red: #FF4444;
    --svss-bkgd: #302f44;
}

/* Base Styles */
body {
    background-color: var(--svss-navy) !important;
}

/* Typography */
h1, h2, h3, .page-title, .service-title {
    color: var(--svss-white) !important;
    margin-bottom: 2rem;
    font-weight: bold;
}

.page-title {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-muted {
    color: hsl(51, 100%, 67%) !important;
}

/* Navigation & Header */
.navbar, .navbar-dark {
    background-color: var(--svss-bkgd) !important;
    padding: 0.5rem 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.navbar .navbar-brand {
    padding: 0 !important;
    margin: 0 !important;
}

/* NAVBAR LOGO */
.navbar .navbar-brand img,
.navbar-brand img,
nav .navbar-brand img {
    height: 40px !important;
    width: auto !important;
    max-height: 40px !important;
    max-width: none !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background-color: rgba(30, 30, 47, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Logo Container */
.logo-container {
    text-align: center !important;
    padding: 2rem 0 !important;
    margin-bottom: 2rem !important;
}

.logo-container img,
.logo-container > img {
    max-width: 400px !important;
    width: 400px !important;
    height: auto !important;
    border-radius: 50px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

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

.service-description {
    margin: 1.5rem 0;
    color: var(--svss-navy);
    line-height: 1.6;
}

/* Category Cards */
.category-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.icon-container {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Category Theme Colors */
.category-theme-teal {
    background-color: var(--svss-teal);
    color: var(--svss-navy);
}

.category-theme-green {
    background-color: var(--svss-green);
    color: var(--svss-navy);
}

.category-theme-yellow {
    background-color: var(--svss-yellow);
    color: var(--svss-navy);
}

.category-theme-orange {
    background-color: var(--svss-orange);
    color: var(--svss-navy);
}

.category-theme-red {
    background-color: var(--svss-red);
    color: var(--svss-navy);
}

/* Service Cards with Category Colors */
.service-card.category-theme-teal {
    background-color: color-mix(in srgb, var(--svss-teal) 70%, white);
    color: var(--svss-navy);
}

.service-card.category-theme-green {
    background-color: color-mix(in srgb, var(--svss-green) 70%, white);
    color: var(--svss-navy);
}

.service-card.category-theme-yellow {
    background-color: color-mix(in srgb, var(--svss-yellow) 70%, white);
    color: var(--svss-navy);
}

.service-card.category-theme-orange {
    background-color: color-mix(in srgb, var(--svss-orange) 70%, white);
    color: var(--svss-navy);
}

.service-card.category-theme-red {
    background-color: color-mix(in srgb, var(--svss-red) 70%, white);
    color: var(--svss-navy);
}

/* Service Footer */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-price {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--svss-navy);
}

/* Buttons */
.btn-primary {
    background-color: var(--svss-teal);
    border-color: var(--svss-teal);
}

.learn-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background-color: var(--svss-navy);
    color: var(--svss-white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.learn-more-btn:hover {
    opacity: 0.9;
}

/* Card Components - with slight opacity for better readability */
.card {
    background-color: rgba(30, 30, 47, 0.85) !important; /* Semi-transparent navy */
    border: 1px solid rgba(64, 224, 208, 0.3) !important;
    color: var(--svss-white) !important;
    backdrop-filter: blur(5px); /* Optional: adds a subtle blur effect */
}

.card-body {
    background-color: inherit !important;
    color: inherit !important;
}

.card-header {
    background-color: rgba(30, 30, 47, 0.9) !important; /* Slightly more opaque for headers */
    color: var(--svss-white) !important;
    border-bottom: 1px solid rgba(64, 224, 208, 0.3) !important;
}

/* For elements inside cards that need better contrast */
.card .text-muted {
    color: rgba(255, 215, 0, 0.8) !important; /* Golden color with opacity */
}

/* Make sure white/light content inside cards has good contrast */
.card .badge,
.card .alert {
    background-color: rgba(30, 30, 47, 0.9) !important;
}

/* Specific fix for that white area in Recent Invoices */
.card .bg-light,
.card .bg-white {
    background-color: rgba(30, 30, 47, 0.7) !important;
    color: var(--svss-white) !important;
}

/* Billing portal colored cards - override for specific Bootstrap classes */
.card.bg-primary {
    background-color: #0d6efd !important;
    color: white !important;
}

.card.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.card.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.card.bg-success {
    background-color: #198754 !important;
    color: white !important;
}

/* Network Lines Background Effect - SINGLE DEFINITION */
.network-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -10;
    overflow: hidden;
}

#networkCanvas {
    width: 100%;
    height: 100%;
    opacity: 0.6;
    pointer-events: auto;
    z-index: -5;
}

/* Z-index management - keep it simple */
.navbar {
    z-index: 1030;
}

.container, main {
    position: relative;
    z-index: 1;
}

/* Interactive elements */
a, button, input, select, textarea {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-row {
        flex-direction: column;
    }
    
    .category-card {
        margin: 1rem 0;
    }
    
    .service-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container img,
    .logo-container > img {
        max-width: 300px !important;
        width: 300px !important;
    }
}

/* Service Description Formatting */
.service-description p {
    margin-bottom: 1.5rem;
}

.service-description ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-description li {
    margin-bottom: 0.5rem;
}

.service-description h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Misc */
.payment-success-message {
    text-decoration-color: #FFD700;
}

/* Footer Styling */
.footer {
    background-color: rgba(30, 30, 47, 0.95) !important;
    color: var(--svss-white) !important;
    border-top: 2px solid rgba(64, 224, 208, 0.3);
    padding: 2rem 0 1rem 0;
    margin-top: auto;
    backdrop-filter: blur(5px);
}

.footer h5 {
    color: var(--svss-teal) !important;
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer p {
    color: var(--svss-white) !important;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--svss-teal) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--svss-yellow) !important;
    text-decoration: underline;
}

/* Footer columns responsive spacing */
.footer .col-md-4 {
    margin-bottom: 1.5rem;
}

/* Footer contact info styling */
.footer .col-md-4:first-child p {
    margin-bottom: 0.3rem;
}

/* Footer service areas styling */
.footer .col-md-4:nth-child(2) p {
    margin-bottom: 0.3rem;
}

/* Footer hours styling */
.footer .col-md-4:last-child p {
    margin-bottom: 0.3rem;
}

/* Optional: Add a subtle footer bottom border */
.footer::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(64, 224, 208, 0.5), 
        transparent
    );
    margin-top: 1rem;
}

/* Make sure footer stays at bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
}

/* Enhanced Category Cards */
.category-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.category-card {
    position: relative;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Gradient Text Effects for Titles */
.category-card h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 1.5rem 0;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Business Web Solutions - Gradient Text */
.category-theme-green h3 {
    background: linear-gradient(45deg, #000000, #2d2d2d, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Smart Home - Gradient Text */
.category-theme-yellow h3 {
    background: linear-gradient(45deg, #1a1a1a, #333333, #1a1a1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* Residential Services - Gradient Text */
.category-theme-red h3 {
    background: linear-gradient(45deg, #ffffff, #f0f0f0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* Enhanced Icons */
.icon-container {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.category-card .icon-container i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.category-card:hover .icon-container i {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Description Text */
.category-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1.5rem 0 2rem 0;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Learn More Buttons */
.learn-more-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--svss-navy), #2a2a3e);
    color: var(--svss-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learn-more-btn:hover {
    background: linear-gradient(45deg, #2a2a3e, var(--svss-navy));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--svss-white);
}

/* Glowing effect on hover */
.category-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(64, 224, 208, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .category-card h3 {
        font-size: 1.8rem;
    }
    
    .icon-container {
        font-size: 3rem;
    }
    
    .learn-more-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Fix white cards in billing section */
.alert, .alert-light {
    background-color: rgba(30, 30, 47, 0.9) !important;
    border: 1px solid rgba(64, 224, 208, 0.3) !important;
    color: var(--svss-white) !important;
}

/* Specific fix for payment processing security notice */
.alert-light {
    background-color: rgba(30, 30, 47, 0.85) !important;
    border-color: rgba(64, 224, 208, 0.4) !important;
}

/* Fix any remaining white/light backgrounds in billing */
.bg-light {
    background-color: rgba(30, 30, 47, 0.8) !important;
    color: var(--svss-white) !important;
}

/* Payment method cards styling */
.payment-method-card {
    background-color: rgba(30, 30, 47, 0.9) !important;
    border: 2px solid rgba(64, 224, 208, 0.3) !important;
    color: var(--svss-white) !important;
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: rgba(64, 224, 208, 0.6) !important;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.2) !important;
}

/* Selected payment method styling */
.payment-method-card.border-primary {
    border-color: var(--svss-teal) !important;
    background-color: rgba(64, 224, 208, 0.1) !important;
}

/* Payment buttons styling */
.btn-success {
    background-color: var(--svss-teal) !important;
    border-color: var(--svss-teal) !important;
}

.btn-success:hover {
    background-color: var(--svss-green) !important;
    border-color: var(--svss-green) !important;
}

/* Security notice icon */
.alert .bi-shield-lock-fill {
    color: var(--svss-teal) !important;
}

/* Make sure all text in alerts is visible */
.alert h6 {
    color: var(--svss-white) !important;
    font-weight: bold;
}

.alert p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Payment method text colors */
.text-success {
    color: var(--svss-teal) !important;
}

.text-warning {
    color: var(--svss-yellow) !important;
}

/* Form styling for payment page */
.form-check-input:checked {
    background-color: var(--svss-teal) !important;
    border-color: var(--svss-teal) !important;
}

.form-check-label {
    color: var(--svss-white) !important;
}

/* Fix table styling in billing section */
.table-light {
    background-color: rgba(48, 47, 68, 0.8) !important; /* Use your --svss-bkgd color */
    color: var(--svss-white) !important;
}

.table-light th {
    background-color: rgba(48, 47, 68, 0.9) !important;
    color: var(--svss-white) !important;
    border-color: rgba(64, 224, 208, 0.3) !important;
}

/* Fix table in invoice totals */
.table-primary {
    background-color: rgba(64, 224, 208, 0.2) !important;
    color: var(--svss-white) !important;
}

.table-primary td {
    background-color: rgba(64, 224, 208, 0.2) !important;
    color: var(--svss-white) !important;
    border-color: rgba(64, 224, 208, 0.4) !important;
}

/* Fix all table styling in cards */
.card .table {
    background-color: transparent !important;
    color: var(--svss-white) !important;
}

.card .table tbody tr {
    background-color: transparent !important;
}

.card .table tbody td {
    background-color: transparent !important;
    color: var(--svss-white) !important;
    border-color: rgba(64, 224, 208, 0.2) !important;
}

/* Fix table borderless styling */
.table-borderless td,
.table-borderless th {
    border: none !important;
    background-color: transparent !important;
    color: var(--svss-white) !important;
}

/* Fix invoice totals table specifically */
.card-body .table-borderless {
    background-color: transparent !important;
}

.card-body .table-borderless td {
    background-color: transparent !important;
    color: var(--svss-white) !important;
}

/* Fix any remaining white backgrounds in billing tables */
.billing .table,
[class*="invoice"] .table,
[class*="billing"] .table {
    background-color: transparent !important;
    color: var(--svss-white) !important;
}

/* Ensure text visibility in all table cells */
.table td,
.table th {
    color: var(--svss-white) !important;
}

/* Fix table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(64, 224, 208, 0.1) !important;
    color: var(--svss-white) !important;
}

.table-hover tbody tr:hover td {
    background-color: rgba(64, 224, 208, 0.1) !important;
    color: var(--svss-white) !important;
}

/* Hero Section */
.hero-section {
    padding: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.1) 0%, 
        rgba(30, 30, 47, 0.95) 50%, 
        rgba(144, 238, 144, 0.1) 100%);
    border-radius: 20px;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--svss-teal), var(--svss-green), var(--svss-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: none;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--svss-white);
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 300;
    line-height: 1.6;
}

/* Fancy Hero Section - Replace the old green section */
.fancy-hero-section {
    position: relative;
    padding: 4rem 0;
    text-align: center;
    border-radius: 25px;
    margin: 4rem 0;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Gradient Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.9;
}

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

/* Overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 30, 47, 0.7);
    backdrop-filter: blur(1px);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-code {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: float-up 20s linear infinite;
    white-space: nowrap;
}

@keyframes float-up {
    0% {
        transform: translateY(120vh) translateX(0);
        opacity: 0;
    }
    15% {
        opacity: 0.7;
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-150px) translateX(50px);
        opacity: 0;
    }
}

.floating-icon {
    position: absolute;
    color: rgba(64, 224, 208, 0.4);
    font-size: 24px;
    animation: float-diagonal 25s linear infinite;
}

@keyframes float-diagonal {
    0% {
        transform: translate(-50px, 100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translate(100px, -100px) rotate(360deg);
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    padding: 2rem;
}

.fancy-hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ffffff, #40e0d0, #90ee90, #ffd700);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradientShift 8s ease infinite;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

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

.fancy-hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Feature Grid */
.fancy-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.fancy-feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fancy-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.fancy-feature-item:hover::before {
    left: 100%;
}

.fancy-feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(64, 224, 208, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fancy-feature-item i {
    font-size: 2.5rem;
    color: var(--svss-teal);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(64, 224, 208, 0.5));
}

.fancy-feature-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

/* CTA Buttons */
.fancy-cta-section {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.fancy-cta-button {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.fancy-cta-button.btn-primary {
    background: linear-gradient(45deg, var(--svss-teal), var(--svss-green));
    color: var(--svss-navy);
    font-weight: 700;
}

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

.fancy-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.fancy-cta-button.btn-primary:hover {
    background: linear-gradient(45deg, var(--svss-green), var(--svss-yellow));
    color: var(--svss-navy);
}

.fancy-cta-button.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--svss-teal);
    color: white;
}

/* Parallax Elements */
.parallax-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.parallax-1 {
    top: 10%;
    left: 10%;
    font-size: 100px;
    color: var(--svss-teal);
    animation: rotate 30s linear infinite;
}

.parallax-2 {
    top: 20%;
    right: 15%;
    font-size: 80px;
    color: var(--svss-green);
    animation: rotate 25s linear infinite reverse;
}

.parallax-3 {
    bottom: 15%;
    left: 20%;
    font-size: 90px;
    color: var(--svss-yellow);
    animation: rotate 35s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .fancy-hero-title {
        font-size: 2.5rem;
    }
    
    .fancy-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .fancy-feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fancy-cta-section {
        flex-direction: column;
        align-items: center;
    }
    
    .fancy-cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Main Service Section */
.main-service-section {
    margin: 4rem 0;
}

.main-service-section .service-card {
    padding: 4rem 3rem;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.main-service-section .icon-container {
    font-size: 4rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.main-service-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.main-service-section p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Service Features Grid */
.service-features {
    margin: 3rem 0;
    position: relative;
    z-index: 2;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
}

.feature-item i {
    font-size: 2rem;
    opacity: 0.8;
}

.feature-item span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--svss-white);
}

.btn-outline-light:hover {
    background-color: var(--svss-white);
    color: var(--svss-navy);
    border-color: var(--svss-white);
}

/* Simple Partners Section - Replace the existing marquee CSS with this */

/* Partners Section */
.partners-section {
    margin: 5rem 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        rgba(30, 30, 47, 0.95) 0%, 
        rgba(48, 47, 68, 0.95) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.partners-title {
    text-align: center;
    color: var(--svss-white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Partners Grid Layout */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem 2rem;
    justify-items: center;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Individual Partner Logo Items */
.partner-logo-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-height: 80px;
    min-width: 180px;
    backdrop-filter: blur(5px);
}

.partner-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(64, 224, 208, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

/* Partner Logos */
.partner-logo {
    max-height: 150px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.95) contrast(1.05);
    transition: all 0.3s ease;
}

.partner-logo-item:hover .partner-logo {
    filter: brightness(1) contrast(1);
}

/* Partner Logo Placeholders */
.partner-logo-placeholder {
    width: 140px;
    height: 50px;
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.7), 
        rgba(144, 238, 144, 0.7));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--svss-navy);
    text-align: center;
    line-height: 1.2;
    padding: 8px;
    transition: all 0.3s ease;
}

.partner-logo-item:hover .partner-logo-placeholder {
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.9), 
        rgba(144, 238, 144, 0.9));
    transform: scale(1.02);
}

/* Shine Overlay Effect */
.shine-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 70%
    );
    transform: translateX(-200%) translateY(-200%) rotate(45deg);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

/* Hover Shine Effect */
.partner-logo-item:hover .shine-overlay {
    transform: translateX(200%) translateY(200%) rotate(45deg);
}

/* Global Shine Animation */
.partner-logo-item.global-shine .shine-overlay {
    animation: globalShine 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes globalShine {
    0% {
        transform: translateX(-200%) translateY(-200%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) translateY(200%) rotate(45deg);
    }
}

/* Staggered Animation Delays for Global Shine */
.partner-logo-item:nth-child(1) { --delay: 0s; }
.partner-logo-item:nth-child(2) { --delay: 0.1s; }
.partner-logo-item:nth-child(3) { --delay: 0.2s; }
.partner-logo-item:nth-child(4) { --delay: 0.3s; }
.partner-logo-item:nth-child(5) { --delay: 0.4s; }
.partner-logo-item:nth-child(6) { --delay: 0.5s; }
.partner-logo-item:nth-child(7) { --delay: 0.6s; }
.partner-logo-item:nth-child(8) { --delay: 0.7s; }

/* Subtle floating animation */
.partner-logo-item {
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

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

.partner-logo-item:hover {
    animation-play-state: paused;
}

/* Link styling */
.partner-logo-item a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 2rem 1rem;
        padding: 1rem;
    }
    
    .partner-logo-item {
        min-width: 160px;
        min-height: 70px;
        padding: 1rem;
    }
    
    .partner-logo {
        max-height: 40px;
        max-width: 120px;
    }
    
    .partner-logo-placeholder {
        width: 120px;
        height: 40px;
        font-size: 11px;
    }
    
    .partners-section {
        padding: 3rem 0;
        margin: 3rem 0;
    }
    
    .partners-title {
        font-size: 1.7rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
    
    .partner-logo-item {
        min-width: 140px;
        min-height: 60px;
    }
    
    .partner-logo {
        max-height: 35px;
        max-width: 100px;
    }
    
    .partner-logo-placeholder {
        width: 100px;
        height: 35px;
        font-size: 10px;
    }
}

/* Final CTA Section */
.final-cta-section {
    margin: 5rem 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        rgba(64, 224, 208, 0.1) 0%, 
        rgba(30, 30, 47, 0.95) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    border-radius: 25px;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--svss-white);
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--svss-white);
    opacity: 0.9;
    margin-bottom: 3rem;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.btn-xl i {
    margin-right: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .main-service-section .service-card {
        padding: 2.5rem 1.5rem;
    }
    
    .main-service-section h2 {
        font-size: 2.2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-section,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button,
    .btn-xl {
        width: 100%;
        max-width: 300px;
    }
    
    .partners-track {
        gap: 2rem;
    }
    
    .partner-logo {
        max-height: 50px;
        max-width: 120px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* Override box styles for cleaner logo display */
.partner-logo-item.minimal-logo {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
    min-width: auto !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

/* Optional: still allow shine overlay to animate */
.partner-logo-item.minimal-logo .shine-overlay {
    pointer-events: none;
    z-index: 5;
}

/* Optional: clean up image spacing */
.partner-logo-item.minimal-logo .partner-logo {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

.shine-target {
    display: block;
    width: 100%;
    height: auto;
}

/* Restrict shine effect to opaque parts of the image */
.masked-shine {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 40%,
        transparent 80%
    );
    transform: translateX(-100%);
    mix-blend-mode: lighten;
    mask-image: url('{{ partner.logo.url }}');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    animation: shineOnlyVisible 1.2s ease-in-out;
}

/* Triggered by JS */
.logo-shine.global-shine .masked-shine {
    animation: shineOnlyVisible 1.2s ease-in-out;
}

/* Keyframes */
@keyframes shineOnlyVisible {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
