/* ============================================ */
/* ClickCat Website - Dark Theme with Neon */
/* ============================================ */

/* CSS Variables and Reset */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent-orange: #FF6B35;
    --accent-orange-glow: rgba(255, 107, 53, 0.6);
    --accent-blue: #00A8FF;
    --border: #222222;
    --border-light: #333333;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-orange-glow);
    --gradient-orange: linear-gradient(135deg, #FF6B35, #F7931E);
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    --border-radius: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-primary);
}

/* Mobile Menu Toggle - Default Hidden */
.menu-toggle {
    display: none;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  width: 74px;
  height: 34px;
  margin-left: 15px;
  align-items: center;
  border: 1px solid var(--border-light);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}
.lang-btn {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
  line-height: 24px;
  color: var(--text-secondary);
  transition: 0.3s;
  user-select: none;
}
.lang-btn.active { color: var(--text-primary); }
.lang-slider {
  position: absolute;
  top: 4px; left: 4px;
  width: 32px; height: 24px;
  background: var(--accent-orange);
  border-radius: 15px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
html[lang="en"] .lang-slider { transform: translateX(34px); }
[data-tr] { transition: opacity 0.2s ease; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    text-shadow: 0 0 20px var(--accent-orange-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 10px var(--accent-orange-glow);
}

.cta-button {
    background: var(--gradient-orange);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-orange-glow);
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: var(--bg-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    margin-bottom: 3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow);
}

.hero-badge .new {
    background: var(--accent-orange);
    color: var(--text-primary);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    margin-right: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title-main {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 40px var(--accent-orange-glow);
}

.hero-title-sub {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--accent-orange-glow));
}

.hero-floating-words {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.floating-word {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.3);
}

.floating-word:nth-child(1) { animation-delay: 0s; }
.floating-word:nth-child(2) { animation-delay: 2s; }
.floating-word:nth-child(3) { animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); opacity: 0.6; }
    50% { transform: translateY(-20px); opacity: 1; }
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--text-primary);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px var(--accent-orange-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.hero-visual {
    margin-top: 5rem;
    position: relative;
}

.hero-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-orange);
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-orange);
}

.hero-card:hover::before {
    opacity: 1;
}

.hero-card i {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--accent-orange-glow));
}

.hero-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Section Styles */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 3rem;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    border-color: var(--accent-orange);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-orange);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Portfolio Section - RESPONSIVE IMPROVEMENTS */
.portfolio {
    background: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(375px, 1fr)); /* Reduced from 420px */
    gap: 2.5rem;
    margin-top: 5rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    border-color: var(--accent-orange);
}

.portfolio-image {
    height: 220px;
    background: var(--gradient-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-image::before {
    transform: translateX(100%);
}

.portfolio-content {
    padding: 2.5rem;
}

.project-type {
    display: inline-block;
    background: var(--accent-orange);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent-orange);
    color: var(--text-primary);
    border-color: var(--accent-orange);
}

/* Portfolio card download buttons container - NEW */
.portfolio-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.portfolio-buttons .btn-primary {
    flex: 1;
    min-width: 140px;
    text-align: center;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
}

/* Features Section */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.feature-card {
    text-align: left;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact .section-badge {
    background: var(--accent-orange);
    color: var(--text-primary);
    border-color: var(--accent-orange);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.contact .btn-primary {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--accent-orange);
    text-shadow: 0 0 10px var(--accent-orange-glow);
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--accent-orange);
    color: var(--text-primary);
    border-color: var(--accent-orange);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Success/Error Messages */
.success-message {
    background: var(--accent-orange);
    color: var(--text-primary);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.error-message {
    background: #dc3545;
    color: var(--text-primary);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

/* Dynamic Styles for Form Validation */
.form-group input.valid,
.form-group textarea.valid,
.form-group select.valid {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

body.keyboard-navigation *:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-orange);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 1001;
    }

    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero-title-main {
        font-size: 3.5rem;
    }

    .hero-title-sub {
        font-size: 2rem;
    }

    .hero-floating-words {
        gap: 2rem;
    }

    .floating-word {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2.5rem;
    }

    .hero-cards-container {
        grid-template-columns: 1fr;
    }

    /* RESPONSIVE PORTFOLIO IMPROVEMENTS */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .portfolio-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .portfolio-content {
        padding: 2rem;
    }

    /* Stack buttons vertically on mobile */
    .portfolio-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .portfolio-buttons .btn-primary {
        width: 100%;
        min-width: auto;
        flex: none;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
    }

    .hero-title-main {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    /* VERY SMALL SCREEN PORTFOLIO IMPROVEMENTS */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-content h3 {
        font-size: 1.3rem;
    }

    .portfolio-content p {
        font-size: 0.95rem;
    }

    .portfolio-tags {
        gap: 0.5rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }

    /* Smaller buttons on very small screens */
    .portfolio-buttons .btn-primary {
        padding: 1rem;
        font-size: 0.85rem;
    }

    /* Improved portfolio image for mobile */
    .portfolio-image {
        height: 180px; /* Reduced height for mobile */
        font-size: 2.5rem; /* Smaller icon */
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FF8555;
}