/* Root Variables for Theme Support */
:root {
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-bg-scrolled: rgba(255, 255, 255, 0.98);
    --footer-bg: #333;
    --footer-text: white;
}

/* Dark Theme Variables */
:root[data-theme="dark"] {
    --bg-color: #15202b;
    --text-color: #ffffff;
    --card-bg: #192734;
    --border-color: #38444d;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(25, 39, 52, 0.95);
    --navbar-bg-scrolled: rgba(25, 39, 52, 0.98);
    --footer-bg: #0f1419;
    --footer-text: #8899a6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Button Styles */
.modern-btn {
    position: relative;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    margin: 0;
    min-width: 180px;
    text-align: center;
    height: 54px;
    line-height: 24px;
    vertical-align: top;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #8B5CF6, #3B82F6, #06B6D4, #8B5CF6);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    transition: all 0.3s ease;
    animation: none;
}

.modern-btn::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    transition: all 0.3s ease;
}

.modern-btn:hover::before {
    animation: gradient-shift-hover 2s ease infinite;
    background-size: 400% 400%;
    filter: brightness(1.2) saturate(1.3);
}

.modern-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

/* Primary Button */
.modern-btn.primary {
    background: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
    color: white;
    background-size: 300% 300%;
    animation: gradient-shift-primary 4s ease infinite;
    position: relative;
    overflow: hidden;
}

.modern-btn.primary::after {
    background: linear-gradient(135deg, #06B6D4 0%, #8B5CF6 100%);
}

.modern-btn.primary::before {
    background: linear-gradient(45deg, #06B6D4, #0EA5E9, #8B5CF6, #A855F7);
    background-size: 300% 300%;
    animation: gradient-shift-primary 2s ease infinite;
}

.modern-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.4);
    background-size: 200% 200%;
    animation: gradient-shift-primary 1.5s ease infinite;
}

/* Secondary Button */
.modern-btn.secondary {
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    color: white;
    background-size: 300% 300%;
    animation: gradient-shift-secondary 4s ease infinite;
    position: relative;
    overflow: hidden;
}

.modern-btn.secondary::after {
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
}

.modern-btn.secondary::before {
    background: linear-gradient(45deg, #EC4899, #F472B6, #8B5CF6, #A855F7);
    background-size: 300% 300%;
    animation: gradient-shift-secondary 2s ease infinite;
}

.modern-btn.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.4);
    background-size: 200% 200%;
    animation: gradient-shift-secondary 1.5s ease infinite;
}

/* Outline Button */
.modern-btn.outline {
    background: linear-gradient(135deg, #10B981 0%, #F59E0B 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    position: relative;
    background-size: 300% 300%;
    animation: gradient-shift-outline 4s ease infinite;
}

.modern-btn.outline::before {
    background: linear-gradient(135deg, #059669, #D97706, #10B981, #F59E0B);
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 300% 300%;
    animation: gradient-shift-outline 2s ease infinite;
}

.modern-btn.outline::after {
    background: transparent;
}

.modern-btn.outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(16, 185, 129, 0.4),
        0 0 30px rgba(16, 185, 129, 0.3),
        0 0 50px rgba(245, 158, 11, 0.2);
    filter: brightness(1.1) saturate(1.2);
}

.modern-btn.outline:hover::before {
    opacity: 1;
}

.modern-btn.outline:hover::after {
    background: transparent;
}

@keyframes gradient-shift-outline {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-shift-primary {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-shift-secondary {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-shift-hover {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navigation */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-bg-scrolled);
    backdrop-filter: blur(15px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.theme-toggle:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    height: auto;
    padding: 48px 0 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.button-demo {
    animation: fadeInUp 1s ease 0.3s both;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Apps Section */
.apps-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.apps-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 40vh;
        padding: 32px 0 24px 0;
    }
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

.app-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 600px;
}

.app-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.app-icon {
    width: 90px;
    height: 90px;
    background: transparent;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    overflow: hidden;
    padding: 0;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.app-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
    min-height: 80px;
}

.media-section {
    margin: 2rem 0;
    flex-shrink: 0;
}

.video-placeholder-section {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.app-buttons {
    margin-top: auto;
    flex-shrink: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    outline: none;
}

.video-container video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.video-container video::-webkit-media-controls-play-button,
.video-container video::-webkit-media-controls-volume-slider,
.video-container video::-webkit-media-controls-timeline {
    color: #06B6D4;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

.app-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
    flex-shrink: 0;
}

.google-play-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.google-play-link:hover {
    transform: scale(1.05);
}

.google-play-badge {
    height: 60px;
    width: auto;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    opacity: 0.9;
    margin: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.email-link {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.email-link a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #8B5CF6;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.email-link a:hover {
    color: #6366F1;
    transform: translateX(5px);
}

.email-icon {
    margin-right: 10px;
    font-size: 1.5rem;
}

.social-media-links {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.social-media-links h4 {
    margin: 0 0 1rem 0;
    color: var(--text-color);
    font-size: 1.1rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    color: #666;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: #e6683c;
}

.social-icon.youtube:hover {
    background: #ff0000;
    border-color: #cc0000;
}

.social-icon.spotify:hover {
    background: #1db954;
    border-color: #1ed760;
}

.social-icon.github:hover {
    background: #333;
    border-color: #24292e;
}

.social-icon.instagram:hover,
.social-icon.youtube:hover,
.social-icon.spotify:hover,
.social-icon.github:hover {
    color: white;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--card-bg);
    color: var(--text-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-container {
        padding: 0.8rem 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero {
        min-height: 40vh;
        padding: 32px 0 24px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .button-demo {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .modern-btn {
        min-width: 200px;
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .apps-section {
        padding: 60px 0;
    }
    
    .apps-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .app-card {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .app-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .app-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .app-card p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    .video-container {
        height: 200px;
    }
    
    .video-placeholder-section {
        height: 150px;
    }
    
    .placeholder-content {
        font-size: 1rem;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .about-card {
        padding: 1.5rem;
        margin: 0 15px;
    }
    
    .about-card p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 0 15px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
    
    .email-link {
        padding: 1.2rem;
    }
    
    .email-link a {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-media-links {
        padding: 1.2rem;
        margin-top: 1rem;
    }
    
    .social-icons {
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 1rem;
    }
    
    .google-play-badge {
        height: 50px;
    }
    
    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

/* Touch-friendly hover effects for mobile */
@media (hover: none) and (pointer: coarse) {
    .modern-btn:hover {
        transform: none;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }
    
    .app-card:hover {
        transform: none;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
    
    .social-icon:hover {
        transform: none;
    }
    
    /* Add active states for touch devices */
    .modern-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
    
    .app-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .social-icon:active {
        transform: scale(0.9);
        transition: transform 0.1s ease;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .hero {
        min-height: 32vh;
        padding: 24px 0 16px 0;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .apps-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .modern-btn {
        min-width: 180px;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
    }
    
    .video-container {
        height: 180px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
