/* ===========================
   West Golf - Custom Styles
   =========================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* ===========================
   Navigation
   =========================== */

#mainNav {
    transition: all 0.3s ease;
    background: rgba(33, 37, 41, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
}

#mainNav.scrolled {
    background: rgba(33, 37, 41, 0.95);
    box-shadow: var(--shadow-md);
}

#mainNav .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

#mainNav .navbar-brand:hover {
    transform: scale(1.05);
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
    color: #ffffff;
}

#mainNav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#mainNav .nav-link:hover::after {
    width: 80%;
}

.app-icon-nav {
    border-radius: 10px;
    transition: transform 0.3s ease;
    margin-top: -2px;
}

.app-icon-nav:hover {
    transform: rotate(-5deg) scale(1.1);
}

#langSwitcher {
    margin-top: 3px;
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-video,
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-background {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.phone-mockup {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.screenshot-hero {
    max-width: 350px;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* ===========================
   Buttons
   =========================== */

.btn-download {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-download:active {
    transform: translateY(-1px);
}

/* ===========================
   Feature Cards
   =========================== */

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.featured {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.feature-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-icon-wrapper {
    display: inline-block;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: white;
}

.feature-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.feature-card-small {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon-small {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.5rem;
}

.feature-image-small {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 12px;
    margin: 0 auto;
    display: block;
}

/* ===========================
   Screenshots Gallery
   =========================== */

.screenshot-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.screenshot-card img,
.screenshot-card video {
    transition: transform 0.3s ease;
}

.screenshot-card:hover img,
.screenshot-card:hover video {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-card:hover .screenshot-overlay {
    transform: translateY(0);
}

.video-card {
    position: relative;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.video-card.playing .play-button {
    opacity: 0;
    pointer-events: none;
}

/* ===========================
   Download Section
   =========================== */

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.app-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

/* ===========================
   Back to Top Button
   =========================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 1000;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.3s ease;
}

/* ===========================
   Animations
   =========================== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    80% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.fade-in-up[data-delay="0"] {
    animation-delay: 0s;
}

.fade-in-up[data-delay="100"] {
    animation-delay: 0.1s;
}

.fade-in-up[data-delay="200"] {
    animation-delay: 0.2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }

    .display-2 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    #mainNav .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .app-icon-large {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
    }

    .display-2 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    .screenshot-hero {
        max-width: 250px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .app-icon-large {
        width: 120px;
        height: 120px;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }

    .hero-video,
    video {
        display: none !important;
    }
}

/* ===========================
   Accessibility
   =========================== */

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===========================
   Screenshot Carousel Modal
   =========================== */

.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content-wrapper {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-media-container {
    position: relative;
    max-width: 100%;
    max-height: calc(90vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalMediaZoomIn 0.4s ease;
}

#modalMediaContent {
    transition: opacity 0.2s ease;
}

#modalMediaContent img,
#modalMediaContent video {
    max-width: 90vw;
    max-height: calc(90vh - 100px);
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.modal-nav-prev {
    left: 20px;
}

.modal-nav-next {
    right: 20px;
}

.modal-caption {
    margin-top: 20px;
    text-align: center;
    color: white;
}

.modal-caption h4 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-caption p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalMediaZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .modal-nav-prev {
        left: 10px;
    }

    .modal-nav-next {
        right: 10px;
    }

    .modal-close {
        top: -45px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    #modalMediaContent img,
    #modalMediaContent video {
        max-width: 95vw;
        max-height: calc(90vh - 80px);
    }

    .modal-caption h4 {
        font-size: 1.2rem;
    }
}

/* ===========================
   Contact Information
   =========================== */

.contact-info a {
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.contact-info i {
    color: #667eea;
    width: 20px;
}

/* ===========================
   Privacy Policy Pages
   =========================== */

.privacy-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.privacy-header {
    position: relative;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.privacy-header h1 {
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.privacy-meta p {
    font-size: 0.95rem;
    color: #718096;
}

.privacy-meta strong {
    color: #4a5568;
}

.language-switch .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-switch .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.privacy-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.privacy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.privacy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-section h2 {
    color: #2d3748;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.privacy-section h3 {
    color: #4a5568;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-section p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-section ul,
.privacy-section ol {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.privacy-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.highlight {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.note {
    background: #f7fafc;
    border-left: 4px solid #4299e1;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 5px;
}

.note i {
    color: #4299e1;
}

.privacy-section .contact-info {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.contact-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    margin-top: 1.5rem;
}

.contact-box h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-box p {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
}

.contact-box i {
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.contact-box a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-box a:hover {
    border-bottom-color: white;
}

.privacy-footer {
    border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.privacy-footer .btn {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.privacy-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Privacy Pages Responsive */
@media (max-width: 767.98px) {
    .privacy-content {
        padding: 1.5rem;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
    }

    .privacy-section h3 {
        font-size: 1.1rem;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .privacy-header h1 {
        font-size: 2rem;
    }
}

@media print {
    .language-switch,
    .privacy-footer {
        display: none !important;
    }

    .privacy-container {
        background: white;
    }

    .privacy-content {
        box-shadow: none;
    }
}

/* ===========================
   Flag Icons (Windows Compatible)
   =========================== */

.flag-icon {
    display: block;
    width: 1.5em;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
}

#langSwitcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
    margin-top: 7px;
}

@media (max-width: 991.98px) {
    #langSwitcher {
        margin-top: 0;
    }
}

.language-switch .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    line-height: 1;
}
