/* Looxy.to Main Stylesheet */
/* Color Scheme from Logo */
:root {
    --primary-purple: #7B2D8E;
    --secondary-purple: #9B4DAF;
    --light-purple: #C897D5;
    --dark-purple: #5A1F6B;
    --accent-purple: #B366CC;
    --white: #FFFFFF;
    --off-white: #F8F5FA;
    --light-gray: #E8E1ED;
    --text-dark: #2C1E35;
    --text-gray: #6B5976;
    
    /* Light Mode (Default) */
    --bg-primary: #F8F5FA;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --text-primary: #2C1E35;
    --text-secondary: #6B5976;
    --border-color: #E8E1ED;
    --shadow-color: rgba(123, 45, 142, 0.1);
    --nav-background: linear-gradient(135deg, rgba(236, 225, 245, 0.9), rgba(218, 195, 235, 0.9));
    --nav-scrolled-background: linear-gradient(135deg, rgba(228, 207, 239, 0.95), rgba(210, 183, 231, 0.97));
    --nav-border-color: rgba(123, 45, 142, 0.18);
    --hero-gradient-start: #7B2D8E;
    --hero-gradient-mid: #9B4DAF;
    --hero-gradient-end: #B366CC;
    --hero-highlight-1: rgba(255, 255, 255, 0.12);
    --hero-highlight-2: rgba(255, 255, 255, 0.08);
    --accent-glow: rgba(123, 45, 142, 0.3);
    --floating-card-bg: rgba(255, 255, 255, 0.18);
    --floating-card-border: rgba(255, 255, 255, 0.35);
    --floating-card-shadow: rgba(63, 23, 90, 0.18);
    --button-primary-shadow: rgba(0, 0, 0, 0.18);
    --button-primary-shadow-hover: rgba(0, 0, 0, 0.28);
    --footer-border: rgba(255, 255, 255, 0.15);
    --footer-muted: rgba(255, 255, 255, 0.75);
    --section-gradient: linear-gradient(180deg, rgba(243, 233, 250, 0.92) 0%, rgba(236, 220, 247, 0.9) 50%, rgba(228, 207, 242, 0.88) 100%);
    --section-glow-1: rgba(185, 135, 255, 0.35);
    --section-glow-2: rgba(179, 102, 204, 0.25);
    --card-surface: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 245, 250, 0.92));
    --card-surface-subtle: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 236, 255, 0.92));
    --card-outline: rgba(123, 45, 142, 0.14);
    --card-outline-strong: rgba(123, 45, 142, 0.22);
    --divider-soft: rgba(123, 45, 142, 0.08);
    --card-shadow-strong: rgba(123, 45, 142, 0.12);
    --about-glow: rgba(123, 45, 142, 0.03);
    color-scheme: light;
}

/* Dark Mode Palette */
[data-theme="dark"] {
    --bg-primary: #0f0616;
    --bg-secondary: rgba(21, 12, 33, 0.95);
    --bg-card: #1d1431;
    --text-primary: #F4ECFF;
    --text-secondary: #CBB7E6;
    --border-color: rgba(185, 135, 255, 0.28);
    --shadow-color: rgba(8, 2, 16, 0.65);
    --off-white: #160b24;
    --white: #F4ECFF;
    --primary-purple: #B987FF;
    --secondary-purple: #8F6FE8;
    --light-purple: #5A3D9C;
    --dark-purple: #0c0315;
    --accent-purple: #6C4ADB;
    --text-dark: #F4ECFF;
    --text-gray: #B8A2D8;
    --light-gray: #281b3c;
    --nav-background: rgba(18, 10, 29, 0.9);
    --nav-scrolled-background: rgba(24, 14, 37, 0.95);
    --nav-border-color: rgba(185, 135, 255, 0.24);
    --hero-gradient-start: #2F0F4A;
    --hero-gradient-mid: #462063;
    --hero-gradient-end: #60317F;
    --hero-highlight-1: rgba(185, 135, 255, 0.25);
    --hero-highlight-2: rgba(112, 68, 187, 0.18);
    --floating-card-bg: rgba(25, 12, 45, 0.85);
    --floating-card-border: rgba(185, 135, 255, 0.3);
    --floating-card-shadow: rgba(6, 1, 14, 0.55);
    --button-primary-shadow: rgba(15, 6, 20, 0.55);
    --button-primary-shadow-hover: rgba(18, 8, 30, 0.7);
    --footer-border: rgba(185, 135, 255, 0.18);
    --footer-muted: rgba(220, 200, 245, 0.7);
    --about-glow: rgba(98, 60, 160, 0.18);
    --accent-glow: rgba(185, 135, 255, 0.45);
    --section-gradient: linear-gradient(180deg, rgba(24, 14, 37, 0.98) 0%, rgba(15, 6, 22, 0.98) 50%, rgba(10, 3, 18, 0.98) 100%);
    --section-glow-1: rgba(111, 63, 186, 0.45);
    --section-glow-2: rgba(58, 30, 103, 0.55);
    --card-surface: linear-gradient(145deg, rgba(37, 24, 58, 0.95), rgba(20, 10, 33, 0.96));
    --card-surface-subtle: linear-gradient(145deg, rgba(31, 20, 46, 0.92), rgba(16, 8, 27, 0.9));
    --card-outline: rgba(185, 135, 255, 0.22);
    --card-outline-strong: rgba(185, 135, 255, 0.32);
    --divider-soft: rgba(185, 135, 255, 0.16);
    --card-shadow-strong: rgba(8, 2, 16, 0.6);
    color-scheme: dark;
}

/* Theme Toggle Button in Header */
.theme-toggle-header {
    background: transparent;
    border: 2px solid var(--primary-purple);
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 10px 18px;
    margin-right: 15px;
}

.theme-toggle-header:hover {
    background: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 45, 142, 0.3);
}

.theme-toggle-header .theme-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-purple);
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: 'Yekan', 'Times New Roman', Times, serif;
}

.theme-toggle-header:hover .theme-text {
    color: var(--white);
}

/* Old floating button - remove if exists */
.theme-toggle {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Yekan', 'Times New Roman', Times, serif;
    direction: rtl;
    text-align: right;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

p {
    text-align: justify;
    line-height: 1.9;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-background);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-color);
    border-bottom: 1px solid var(--nav-border-color);
    z-index: 1000;
    transition: all 0.4s ease;
}

.header.scrolled {
    background: var(--nav-scrolled-background);
    box-shadow: 0 4px 30px var(--shadow-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-purple);
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-purple);
}

.nav-menu a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-mid) 50%, var(--hero-gradient-end) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
    radial-gradient(circle at 20% 30%, var(--hero-highlight-1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--hero-highlight-2) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(-20px); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    margin-top: 0;
    opacity: 0.95;
    text-align: justify;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 2;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-align: justify;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Yekan', 'Times New Roman', Times, serif;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-purple);
    box-shadow: 0 4px 15px var(--button-primary-shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--button-primary-shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-purple);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--floating-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--floating-card-border);
    border-radius: 20px;
    padding: 2rem;
    color: var(--white);
    box-shadow: 0 8px 32px var(--floating-card-shadow);
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 40%;
    animation-delay: 2s;
}

.floating-card:nth-child(3) {
    bottom: 10%;
    right: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-section,
.features-section,
.services-section {
    padding: 8rem 2rem;
    background: var(--section-gradient);
    position: relative;
    overflow: hidden;
}

.about-section::before,
.features-section::before,
.services-section::before,
.about-section::after,
.features-section::after,
.services-section::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(0);
    opacity: 0.75;
    z-index: 0;
}

.about-section::before,
.features-section::before,
.services-section::before {
    top: -160px;
    right: -120px;
    background: radial-gradient(circle at center, var(--section-glow-1) 0%, transparent 70%);
}

.about-section::after,
.features-section::after,
.services-section::after {
    bottom: -160px;
    left: -140px;
    background: radial-gradient(circle at center, var(--section-glow-2) 0%, transparent 70%);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin: 0 auto 5rem;
    max-width: 760px;
    background: var(--card-surface-subtle);
    border-radius: 28px;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 25px 70px var(--shadow-color);
    border: 1px solid var(--card-outline);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin: 0 auto 5rem;
    max-width: 760px;
    background: var(--card-surface-subtle);
    border-radius: 28px;
    padding: 2.75rem 2.5rem 2rem;
    box-shadow: 0 25px 70px var(--shadow-color);
    border: 1px solid var(--card-outline);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0.7;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-purple);
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.8;
}

.about-content {
    background: var(--card-surface);
    border-radius: 36px;
    padding: 4rem;
    box-shadow: 0 35px 90px var(--shadow-color);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-outline-strong);
    backdrop-filter: blur(6px);
}

.about-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--section-glow-1) 0%, transparent 70%);
    animation: rotateGradient 20s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-text {
    font-size: 1.3rem;
    line-height: 2.2;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.about-text p {
    color: var(--text-secondary);
}

.about-list {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1rem 1.5rem;
    background: var(--card-surface-subtle);
    border-radius: 18px;
    border: 1px solid var(--card-outline);
    box-shadow: 0 18px 40px var(--card-shadow-strong);
    position: relative;
    overflow: hidden;
}

.about-list li::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    box-shadow: 0 0 0 6px var(--divider-soft);
    flex-shrink: 0;
}

.highlight-text {
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

/* Services Section */
.services-section {
    padding: 8rem 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--card-surface);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 18px 50px var(--card-shadow-strong);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-outline);
    backdrop-filter: blur(4px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 70px var(--card-shadow-strong);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-title {
    font-size: 1.6rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-weight: bold;
}

.service-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
    text-align: right;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-right: 1.5rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--primary-purple);
    font-weight: bold;
}

/* Features Section */
.features-section {
    padding: 8rem 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 2.5rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    background: var(--card-surface);
    border-radius: 26px;
    border: 1px solid var(--card-outline);
    box-shadow: 0 18px 45px var(--card-shadow-strong);
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
    opacity: 0.45;
    pointer-events: none;
}

.feature-item > * {
    position: relative;
    z-index: 1;
}

.feature-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 60px var(--card-shadow-strong);
}

.feature-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Yekan', 'Times New Roman', Times, serif;
    color: var(--white);
    box-shadow: 0 5px 20px var(--accent-glow);
}

.feature-title {
    font-size: 1.4rem;
    color: var(--primary-purple);
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.feature-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-mid) 50%, var(--hero-gradient-end) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.4rem;
    color: var(--white);
    opacity: 0.95;
    margin-bottom: 3rem;
    line-height: 2;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-purple);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: var(--footer-muted);
    text-decoration: none;
    line-height: 2;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--footer-border);
    color: var(--footer-muted);
}

.footer-bottom p {
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
        margin-bottom: 0.4rem;
        margin-top: 0;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        margin-top: 0;
        line-height: 1.3;
    }

    .hero-description {
        text-align: center;
        line-height: 1.8;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .floating-elements {
        height: 300px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    /* Tablet optimizations */
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Header and Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo-container {
        order: 1;
        gap: 0.5rem;
    }
    
    nav {
        order: 2;
        position: static;
    }
    
    .menu-toggle {
        display: flex;
        order: 3;
    }
    
    .logo {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--nav-background);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        padding: 1.2rem 2rem;
        width: 100%;
        text-align: right;
        border-bottom: 1px solid rgba(123, 45, 142, 0.15);
        font-size: 1.1rem;
    }
    
    .nav-menu a:hover {
        background: rgba(123, 45, 142, 0.1);
        transform: translateX(-5px);
    }
    
    .theme-toggle {
        margin: 1.5rem 2rem;
        width: calc(100% - 4rem);
    }
    
    /* Hero Section */
    .hero {
        padding-top: 100px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.6rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.05;
        margin: 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.25;
        margin: 0 0 1.1rem 0;
    }

    .hero-description {
        font-size: 1.05rem;
        line-height: 1.7;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        white-space: nowrap;
        text-align: center;
    }
    
    /* Sections */
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .about-content {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .input-group input,
    .input-group textarea {
        font-size: 1rem;
        padding: 1rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section p,
    .footer-section a {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.02;
        margin: 0;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.2;
        margin: 0 0 0.9rem 0;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 1.8rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.2rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .service-card,
    .feature-card,
    .about-content,
    .contact-form {
        padding: 1.2rem;
    }
    
    .hero-buttons {
        max-width: 100%;
    }
}

/* For very small mobile devices - specific to 400px width */
@media (max-width: 420px) {
    .hero-text {
        gap: 0.45rem;
    }

    .hero-title {
        font-size: 1.55rem;
        line-height: 1;
        margin: 0;
        padding: 0;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.15;
        margin: 0 0 0.75rem 0;
        padding: 0;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.6rem;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #5A1F6B 0%, #7B2D8E 45%, #B366CC 100%);
    box-shadow: 0 0 12px rgba(123, 45, 142, 0.45);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Particle Background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}
