/* ===================================
   RedSense - Main Stylesheet
   =================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Background Effects */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(204, 0, 0, 0.1) 0%, transparent 50%);
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(204, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(204, 0, 0, 0.3);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(204, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    white-space: nowrap;
}

.logo::before {
    content: 'RedSense';
    position: absolute;
    top: 0;
    left: 0;
    color: #cc0000;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.8;
}

/* Navigation */
nav {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #cc0000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    color: #cc0000;
}

nav a:hover::before {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    color: #ffffff;
    border: 2px solid #cc0000;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #cc0000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.lang-btn:hover::before,
.lang-btn.active::before {
    width: 300px;
    height: 300px;
}

.lang-btn:hover,
.lang-btn.active {
    color: #ffffff;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(204, 0, 0, 0.6);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #cc0000;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(204, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(204, 0, 0, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 80px;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #cc0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1.2;
}

.hero p {
    font-size: 24px;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto 50px;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #cc0000;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
    box-shadow: 0 0 40px rgba(204, 0, 0, 0.8);
    transform: translateY(-3px);
}

/* Section Styling */
section {
    padding: 120px 0;
    position: relative;
}

.section-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 70px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #cc0000;
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #cc0000, transparent);
}

/* About Content */
.about-content {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 60px;
    border-left: 5px solid #cc0000;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
}

.about-content:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 60px rgba(204, 0, 0, 0.3);
}

.about-content:hover::before {
    transform: scale(1.5);
    opacity: 0.3;
}

.about-content h3 {
    color: #cc0000;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content p {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 50px;
    border: 2px solid rgba(204, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.7s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #cc0000, #ff0000);
    transition: width 0.5s ease;
}

.service-card:hover {
    border-color: #cc0000;
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(204, 0, 0, 0.4);
}

.service-card:hover::after {
    width: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    color: #cc0000;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #cccccc;
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: #cc0000;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.8);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 50px;
    border: 2px solid rgba(204, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(204, 0, 0, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.7s ease;
}

.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #cc0000, #ff0000);
    transition: width 0.5s ease;
}

.value-card:hover {
    border-color: #cc0000;
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(204, 0, 0, 0.4);
}

.value-card:hover::after {
    width: 100%;
}

.value-card h3 {
    color: #cc0000;
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.value-card p {
    color: #cccccc;
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.blog-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(13, 13, 13, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(204, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.blog-card:hover {
    border-color: #cc0000;
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(204, 0, 0, 0.4);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #cc0000 0%, #660000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.blog-image::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.7s;
}

.blog-card:hover .blog-image::before {
    left: 100%;
}

.blog-content {
    padding: 30px;
}

.blog-date {
    color: #cc0000;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.blog-card h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-card p {
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-link {
    color: #cc0000;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(204, 0, 0, 0.8);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, rgba(13, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(13, 13, 13, 0.9) 100%);
    padding: 40px;
    border-left: 4px solid #cc0000;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid rgba(204, 0, 0, 0.2);
    border-left: 4px solid #cc0000;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(204, 0, 0, 0.3);
    border-color: #cc0000;
}

.contact-item h3 {
    color: #cc0000;
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: #cccccc;
    font-size: 16px;
}

.contact-item a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #cc0000;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(204, 0, 0, 0.3);
    padding: 50px 0;
    text-align: center;
    color: #cccccc;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cc0000, transparent);
}

footer p {
    margin-bottom: 10px;
    font-size: 16px;
}

footer .copyright {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* Language Content */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 60px;
    }

    .section-title {
        font-size: 42px;
    }

    .services-grid,
    .values-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 10px;
        padding: 20px 0;
    }

    nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title {
        font-size: 32px;
    }

    .about-content,
    .service-card,
    .value-card,
    .contact-item {
        padding: 30px;
    }

    .lang-switcher {
        gap: 10px;
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .lang-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .logo {
        font-size: 24px;
    }
}