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

:root {
    --primary-color: #ff006e;
    --secondary-color: #00ff88;
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --pattern-color: rgba(255, 0, 110, 0.1);
}

/* Light Theme Variables */
body.light-theme {
    --dark-bg: #f5f5f5;
    --dark-bg-secondary: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --pattern-color: rgba(255, 0, 110, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .header {
    background: rgba(245, 245, 245, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .header.scrolled {
    background: rgba(245, 245, 245, 0.98) !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.language-selector {
    display: flex;
    gap: 5px;
    background: var(--dark-bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
}

body.light-theme .language-selector {
    border-color: rgba(0, 0, 0, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

body.light-theme .lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3);
}

.theme-toggle-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    cursor: pointer;
    user-select: none;
}

.theme-switch-track {
    position: relative;
    width: 90px;
    height: 40px;
    background: var(--dark-bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: all 0.3s ease;
}

body.light-theme .theme-switch-track {
    border-color: rgba(0, 0, 0, 0.1);
    background: var(--dark-bg-secondary);
}

.theme-switch-slider {
    position: absolute;
    width: 50px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.3);
    z-index: 2;
    left: 4px;
    top: 4px;
}

.theme-switch-slider i {
    color: white;
    font-size: 16px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark mode - slider on left */
.theme-switch-slider {
    transform: translateX(0);
}

/* Light mode - slider on right */
/* Track width: 90px, padding: 4px each side, slider width: 50px */
/* Distance = 90px - 4px (left padding) - 50px (slider) - 4px (right padding) = 32px */
body.light-theme .theme-switch-slider {
    transform: translateX(32px);
}

body.light-theme .theme-switch-slider i {
    transform: rotate(360deg);
}

.theme-switch:hover .theme-switch-track {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 0, 110, 0.2);
}

.theme-switch:active .theme-switch-slider {
    transform: scale(0.95);
}

body.light-theme .theme-switch:active .theme-switch-slider {
    transform: translateX(32px) scale(0.95);
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list li {
    margin: 0;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 12px 0;
    position: relative;
    transition: color 0.3s ease;
    display: block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    margin-top: 0;
}

.hero-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, var(--pattern-color) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--pattern-color) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* Hero Title Bar */
.hero-title-bar {
    width: 100%;
    background: var(--dark-bg-secondary);
    padding: 30px 0;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary-color);
    text-align: center;
    position: relative;
    z-index: 2;
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .hero-title-bar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hero-title {
    font-size: 60px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin: 0;
    word-break: break-word;
}

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

.hero-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    max-height: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: block;
}

.hero-text-outline {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 100%;
    text-align: center;
    pointer-events: none;
    padding: 0 20px;
}

.hero-title-outline {
    font-size: 80px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
    text-stroke: 2px var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -2px;
    opacity: 0.3;
    margin: 0;
    word-break: break-word;
    max-width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 2;
    width: 100%;
    padding-left: 20px;
}

.greeting {
    margin: 0;
}

.greeting h2 {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.intro {
    margin: 0;
}

.intro p {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.highlight {
    color: var(--text-primary);
}

.highlight-pink {
    color: var(--primary-color);
}

.description {
    margin: 0;
}

.description p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--primary-color);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: fit-content;
    margin-top: 20px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.cta-button i {
    font-size: 18px;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 50px 0;
    text-align: center;
    color: var(--text-primary);
    width: 100%;
}

/* About Section */
.about {
    display: flex;
    align-items: center;
    min-height: auto;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.about-text {
    width: 100%;
}

.about-text p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 20px 0;
}

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

/* Services Section */
.services {
    display: flex;
    align-items: center;
    min-height: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0;
    width: 100%;
}

.service-card {
    background: var(--dark-bg-secondary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

body.light-theme .service-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
}

.service-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin: 0 0 20px 0;
    display: block;
}

.service-card h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    display: flex;
    align-items: center;
    min-height: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 0;
    width: 100%;
}

.portfolio-item {
    background: var(--dark-bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .portfolio-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 110, 0.2);
    border-color: var(--primary-color);
}

.portfolio-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 30px;
    background: var(--dark-bg-secondary);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-content h3 {
    color: var(--primary-color);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.8;
    font-size: 16px;
}

/* Contact Section */
.contact {
    display: flex;
    align-items: center;
    min-height: auto;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.form-message {
    display: none;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.form-message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
    color: #ff4444;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    background: var(--dark-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.3s ease;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background: var(--primary-color);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loader {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-loader i {
    animation: spin 1s linear infinite;
}

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

/* Contact Result Page */
.contact-result {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.message {
    background: var(--dark-bg-secondary);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message i {
    font-size: 64px;
    margin-bottom: 20px;
}

.message.success i {
    color: var(--secondary-color);
}

.message.error i {
    color: #ff4444;
}

.message h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.message p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark-bg-secondary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

body.light-theme .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    margin: 0 5px;
}

.footer a:hover {
    color: var(--primary-color);
}

/* Policy Pages */
.policy-section {
    padding: 150px 0 100px;
    min-height: 100vh;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--dark-bg-secondary);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .policy-content {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
    font-size: 42px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.policy-content .last-updated {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
    font-style: italic;
}

.policy-text {
    color: var(--text-primary);
    line-height: 1.8;
}

.policy-text h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 40px 0 20px 0;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.policy-text h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.policy-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.policy-text ul {
    margin: 20px 0 20px 30px;
    color: var(--text-secondary);
}

.policy-text li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.8;
}

.policy-back {
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 40px 30px;
    }

    .policy-content h1 {
        font-size: 32px;
    }

    .policy-text h2 {
        font-size: 24px;
    }

    .policy-text h3 {
        font-size: 20px;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title-bar {
        padding: 25px 0;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 48px;
        word-break: break-word;
    }

    .hero-image-wrapper {
        overflow: visible;
    }

    .hero-title-outline {
        font-size: 50px;
        word-break: break-word;
    }

    .hero-text {
        text-align: center;
        align-items: center;
        padding-left: 0;
    }

    .description p {
        max-width: 100%;
    }

    .greeting h2 {
        font-size: 36px;
    }

    .intro p {
        font-size: 24px;
    }

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

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero-title-bar {
        padding: 20px 0;
        margin-bottom: 25px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-title-outline {
        font-size: 35px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .greeting h2 {
        font-size: 32px;
    }

    .intro p {
        font-size: 20px;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header-controls {
        gap: 10px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 40px;
    }

    .theme-switch-track {
        width: 80px;
        height: 36px;
    }

    .theme-switch-slider {
        width: 44px;
        height: 28px;
    }

    /* Track: 80px, padding: 4px each, slider: 44px, distance: 80-4-44-4 = 28px */
    body.light-theme .theme-switch-slider {
        transform: translateX(28px);
    }

    .nav-list {
        gap: 20px;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 16px;
        padding: 10px 0;
    }

    section {
        padding: 60px 0;
    }

    .services-grid,
    .portfolio-grid {
        gap: 20px;
    }

    .portfolio-image {
        height: 250px;
    }

    .portfolio-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 20px;
    }

    .portfolio-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-title-bar {
        padding: 15px 0;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-title-outline {
        font-size: 25px;
    }

    .hero-text {
        padding-left: 0;
    }

    .cta-button {
        padding: 15px 25px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .message {
        padding: 40px 30px;
    }

    .header {
        padding: 20px 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .header-controls {
        gap: 8px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 35px;
    }

    .theme-switch-track {
        width: 70px;
        height: 32px;
    }

    .theme-switch-slider {
        width: 38px;
        height: 24px;
    }

    .theme-switch-slider i {
        font-size: 14px;
    }

    /* Track: 70px, padding: 4px each, slider: 38px, distance: 70-4-38-4 = 24px */
    body.light-theme .theme-switch-slider {
        transform: translateX(24px);
    }

    .nav-list {
        gap: 10px;
        width: auto;
        justify-content: flex-start;
    }

    .nav-link {
        font-size: 13px;
        padding: 5px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 20px 15px;
    }

    .portfolio-content h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .portfolio-content p {
        font-size: 13px;
        line-height: 1.6;
    }

    section {
        padding: 50px 0;
    }
}

