/* Animations and Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 124, 74, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(74, 124, 74, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

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

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

/* Smooth transitions for all elements */
*, *::before, *::after {
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0f0a;
    overflow-x: hidden;
    height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 3vw, 3rem);
}

h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #2d5a2d, #4a7c4a);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 90, 45, 0.3);
}

.btn-primary::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;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(45, 90, 45, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.btn-outline {
    background: transparent;
    color: #4a7c4a;
    border: 2px solid #4a7c4a;
}

.btn-outline:hover {
    background: #4a7c4a;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    animation: fadeInDown 0.8s ease-out;
}



.navbar {
    padding: 1rem 0;
}

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

.nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.nav-logo img:hover {
    transform: scale(1.1) rotate(2deg);
}



.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.telegram-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.telegram-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.telegram-icon img {
    filter: brightness(0) invert(1);
}



/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0a0f0a 0%, #1a2e1a 100%);
    padding: 80px 20px 60px;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.hero-bg-image:hover {
    transform: scale(1.05);
}

/* Responsive image optimization */
.hero-background picture {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-background source,
.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #4a7c4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #2d5a2d, #4a7c4a);
    animation: expandWidth 2s ease-out 1s both;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

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

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
    animation: slideInFromBottom 1s ease-out 1.2s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.1);
}

.stat-item img {
    transition: transform 0.3s ease;
}

.stat-item:hover img {
    transform: rotate(360deg) scale(1.2);
    filter: drop-shadow(0 0 10px rgba(74, 124, 74, 0.5));
}

.stat-item:nth-child(1) {
    animation: scaleIn 0.6s ease-out 1.4s both;
}

.stat-item:nth-child(2) {
    animation: scaleIn 0.6s ease-out 1.6s both;
}

.stat-item:nth-child(3) {
    animation: scaleIn 0.6s ease-out 1.8s both;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #4a7c4a;
    animation: bounce 2s infinite 2s;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Telegram CTA Section */
.telegram-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 2s both;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.1);
    border: 2px solid rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.telegram-link:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: rgba(0, 136, 204, 0.6);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
}

.telegram-link img {
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.telegram-link:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 136, 204, 0.8));
    transform: rotate(360deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .telegram-cta {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 40px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .telegram-cta {
        margin-top: 1.5rem;
    }
    
    .telegram-link {
        padding: 0.8rem;
    }
    
    .telegram-link img {
        width: 48px;
        height: 48px;
    }
}



/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
input:focus,
.modal-close:focus {
    outline: 2px solid #4a7c4a;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-outline {
        border-width: 3px;
    }
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0a0f0a 0%, #1a2e1a 100%);
    color: white;
    position: relative;
}

.content-section:nth-child(even) {
    background: linear-gradient(135deg, #1a2e1a 0%, #0a0f0a 100%);
}

.content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #4a7c4a;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.content-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-text p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

.content-text p:last-child {
    margin-bottom: 0;
}

/* Section specific styling */
.tipobet365-section {
    border-top: 3px solid #4a7c4a;
}

.tipobet-guncel-section {
    border-top: 3px solid #6a8c6a;
}

.tipobet-yeni-section {
    border-top: 3px solid #8aac8a;
}

/* Responsive Design for Content Sections */
@media (max-width: 768px) {
    .content-section {
        padding: 2rem 0;
    }
    
    .content-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .content-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .content-text p {
        margin-bottom: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .content-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .content-text {
        font-size: 0.95rem;
    }
}

/* FAQ Section Styles */
.faq {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-container {
    margin-top: 2rem;
}

.faq-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.faq-question {
    background: white;
    color: #1a365d;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #f8fafc;
    color: #667eea;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-question {
    background: #667eea;
    color: white;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-answer {
    background: white;
    padding: 0 1.5rem;
    color: #4a5568;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq {
        padding: 2rem 0;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 0.8rem;
    }
    
    .faq-question::after {
        font-size: 1.2rem;
    }
}

/* Footer Styles */
.footer {
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

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

.footer-contact a:hover {
    color: #4c63d2;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

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

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

.footer-bottom a:hover {
    color: #4c63d2;
}

.footer-bottom small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 0.5rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-title {
        font-size: 1.3rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}