/* SoftwareGenie24 Custom Styles */

:root {
    --primary-color: #005A9E;
    --primary-dark: #004275;
    --primary-light: #0070BD;
    --accent-color: #00C8FF;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --light-gray: #b8c2cc;
    
    /* Wavy underline SVG patterns */
    --wavy-primary: url("data:image/svg+xml,%3Csvg width='100' height='3' viewBox='0 0 100 3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5 Q 5 0, 10 1.5 T 20 1.5 T 30 1.5 T 40 1.5 T 50 1.5 T 60 1.5 T 70 1.5 T 80 1.5 T 90 1.5 T 100 1.5' stroke='%23005A9E' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    --wavy-accent: url("data:image/svg+xml,%3Csvg width='100' height='3' viewBox='0 0 100 3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5 Q 5 0, 10 1.5 T 20 1.5 T 30 1.5 T 40 1.5 T 50 1.5 T 60 1.5 T 70 1.5 T 80 1.5 T 90 1.5 T 100 1.5' stroke='%2300C8FF' stroke-width='3' fill='none'/%3E%3C/svg%3E");
    --wavy-primary-sm: url("data:image/svg+xml,%3Csvg width='100' height='2' viewBox='0 0 100 2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1 Q 5 0, 10 1 T 20 1 T 30 1 T 40 1 T 50 1 T 60 1 T 70 1 T 80 1 T 90 1 T 100 1' stroke='%23005A9E' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    --wavy-accent-sm: url("data:image/svg+xml,%3Csvg width='100' height='2' viewBox='0 0 100 2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1 Q 5 0, 10 1 T 20 1 T 30 1 T 40 1 T 50 1 T 60 1 T 70 1 T 80 1 T 90 1 T 100 1' stroke='%2300C8FF' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    --wavy-white: url("data:image/svg+xml,%3Csvg width='100' height='2' viewBox='0 0 100 2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1 Q 5 0, 10 1 T 20 1 T 30 1 T 40 1 T 50 1 T 60 1 T 70 1 T 80 1 T 90 1 T 100 1' stroke='rgba(255,255,255,0.3)' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    
    /* Animation durations */
    --wavy-transition-fast: 0.3s;
    --wavy-transition-slow: 0.5s;
    
    /* Spacing */
    --card-padding: 1.25rem 1.5rem;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navigation Improvements */
.navbar-dark.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.navbar-brand {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: rotate(5deg);
}

.text-accent {
    color: var(--accent-color) !important;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 0.2rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-link-contact {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    color: white !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 200, 255, 0.3);
}

.nav-link-contact:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.4);
}

.nav-link-small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.nav-link i {
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
    background-size: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M20 20h10v10H20zM40 40h10v10H40zM60 20h10v10H60zM80 60h10v10H80z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.1) 0%, transparent 70%);
    animation: heroRotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-section .btn {
    position: relative;
    z-index: 2;
}

.hero-section > * {
    position: relative;
    z-index: 1;
}

/* Section Styles */
.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: none;
    position: relative;
    display: inline-block;
}

/* Wavy underline for section titles */
.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-image: var(--wavy-primary);
    background-size: 100px 3px;
    background-repeat: repeat-x;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-image: var(--wavy-accent);
    background-size: 100px 3px;
    background-repeat: repeat-x;
    transition: width var(--wavy-transition-slow) ease;
}

.section-title:hover::after {
    width: 100%;
}

/* Make lead text more engaging */
.lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 300;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Wavy underlines for h2 and h3 headings */
h2:not(.section-title), h3 {
    position: relative;
    display: inline-block;
}

h2:not(.section-title)::after, h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: var(--wavy-primary-sm);
    background-size: 100px 2px;
    background-repeat: repeat-x;
    opacity: 0;
    transition: opacity var(--wavy-transition-fast) ease;
}

h2:not(.section-title):hover::after, h3:hover::after {
    opacity: 1;
}

.feature-box {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 90, 158, 0.1);
    position: relative;
    overflow: hidden;
}

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

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

.feature-box:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,90,158,0.2);
    border-color: var(--accent-color);
}

.feature-box h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
    transition: left 0.3s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,90,158,0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-width: 2px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-outline-primary:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,90,158,0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.card::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;
    z-index: 1;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,90,158,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    border: none;
    padding: var(--card-padding);
    position: relative;
    z-index: 2;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background-image: var(--wavy-white);
    background-size: 100px 2px;
    background-repeat: repeat-x;
}

/* Lists */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.check-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 90, 158, 0.25);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Honeypot - Hidden spam protection field */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Footer */
footer {
    margin-top: auto;
}

.footer-modern {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

.footer-brand img {
    opacity: 0.9;
}

.text-light-gray {
    color: var(--light-gray) !important;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-image: var(--wavy-accent-sm);
    background-size: 100px 2px;
    background-repeat: repeat-x;
    transition: width var(--wavy-transition-fast) ease;
}

.footer-links a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links i {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
    }
    
    .feature-box {
        margin-bottom: 1.5rem;
    }
    
    .navbar-brand span {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
    position: relative;
}

.bg-light-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 90, 158, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 200, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-padding {
    padding: 50px 0;
}

/* Wavy underline utility classes */
.wavy-underline {
    position: relative;
    display: inline-block;
}

.wavy-underline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-image: var(--wavy-primary-sm);
    background-size: 100px 2px;
    background-repeat: repeat-x;
}

/* Accent color variant - use together with .wavy-underline */
.wavy-underline.wavy-underline-accent::after {
    background-image: var(--wavy-accent-sm);
}

/* Hover variant - use together with .wavy-underline */
.wavy-underline.wavy-underline-hover::after {
    width: 0;
    transition: width var(--wavy-transition-fast) ease;
}

.wavy-underline.wavy-underline-hover:hover::after {
    width: 100%;
}

/* Cool modern animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.feature-icon {
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.05);
    animation: none;
}

/* Fade in animations for sections */
.hero-section {
    animation: fadeInUp 0.8s ease-out;
}

.feature-box {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature-box:nth-child(1) { animation-delay: 0.1s; }
.feature-box:nth-child(2) { animation-delay: 0.2s; }
.feature-box:nth-child(3) { animation-delay: 0.3s; }
.feature-box:nth-child(4) { animation-delay: 0.4s; }

.card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* Disable motion-based animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .feature-box,
    .card,
    .feature-icon {
        animation: none !important;
    }
    
    .hero-section::after {
        animation: none !important;
    }
    
    * {
        scroll-behavior: auto !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Disable parallax for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section {
        background-attachment: scroll;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Add glow effect to important elements */
.btn-light:hover,
.btn-outline-light:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Subtle scale on hover for content images only */
.feature-box img,
.card-body img,
main article img {
    transition: transform 0.3s ease;
}

.feature-box img:hover,
.card-body img:hover,
main article img:hover {
    transform: scale(1.02);
}
