:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    transition: background-color 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header/Nav */
header {
    background-color: rgba(2, 6, 23, 0.9);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: fixed;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    top: 0;
    left: 0;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    max-height: 100px;
    object-fit: contain;
}

header.scrolled nav {
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
    z-index: 101;
}

.language-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.language-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
    min-width: 120px;
    z-index: 102;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.language-options.show {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.language-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
    font-size: 0.9rem;
}

.language-option:hover {
    background: rgba(59, 130, 246, 0.1);
}

.language-option.active {
    color: var(--primary);
    font-weight: 500;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

.highlight:hover::after {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
}

.typing-effect {
    border-right: 2px solid var(--primary);
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 50% { border-color: transparent; }
    51%, 100% { border-color: var(--primary); }
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.btn::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: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Skills Section */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
}

.section-title p {
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background-color: var(--dark);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-info .btn {
    align-self: flex-start;
    width: auto;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background-color: rgba(59, 130, 246, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.project-card:hover .tag {
    background-color: rgba(59, 130, 246, 0.3);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.25);
    border-color: var(--primary);
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
}



.pricing-header {
    margin-bottom: 2.5rem;
    flex-shrink: 0;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--light);
    letter-spacing: -0.02em;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.from {
    font-size: 0.85rem;
    color: var(--gray-light);
    font-weight: 500;
    margin-right: 0.25rem;
    opacity: 0.8;
}

.currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--light);
    line-height: 1;
    letter-spacing: -0.02em;
}

.period {
    font-size: 0.9rem;
    color: var(--gray-light);
    font-weight: 500;
    opacity: 0.8;
}

.pricing-header p {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}



.pricing-footer {
    margin-top: auto;
    flex-shrink: 0;
}

.pricing-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.pricing-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.pricing-note {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.06) 0%, rgba(37, 99, 235, 0.06) 100%);
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.12);
    backdrop-filter: blur(10px);
}

.pricing-note p {
    color: var(--gray-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--dark);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: #ffd700;
    margin-right: 2px;
}

.testimonial-content p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: var(--light);
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--gray-light);
}

.contact-info p i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contact-form {
    flex: 1;
    background-color: var(--dark);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 5px;
    font-size: 1rem;
    color: var(--light);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Form validation styles */
.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-success,
.form-error {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.form-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-loading {
    display: none;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--gray-light);
    font-size: 1.5rem;
    transition: all 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.copyright {
    color: var(--gray);
}

.footer-links {
    margin-top: 1rem;
    text-align: center;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links .separator {
    color: var(--gray);
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--dark);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 99;
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    background-color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--dark);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(59, 130, 246, 0.2);
    z-index: 99;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

/* High Contrast Theme (WCAG AAA compliant) */
body.light-theme {
    background-color: #ffffff;
    color: #000000;
}

body.light-theme header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.light-theme .nav-links a {
    color: #000000;
}

body.light-theme .nav-links a:hover {
    color: #0000ff;
}

body.light-theme .skill-card,
body.light-theme .project-card,
body.light-theme .contact-form {
    background-color: #ffffff;
    border: 2px solid #000000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

body.light-theme .form-group input,
body.light-theme .form-group textarea {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

body.light-theme .form-group input:focus,
body.light-theme .form-group textarea:focus {
    border-color: #0000ff;
    box-shadow: 0 0 0 3px rgba(0, 0, 255, 0.3);
}

body.light-theme footer {
    background-color: #ffffff;
    color: #000000;
    border-top: 2px solid #000000;
}

body.light-theme .social-links a {
    color: #000000;
}

body.light-theme .social-links a:hover {
    color: #0000ff;
}

body.light-theme .section-title h2 {
    color: #000000;
}

body.light-theme .section-title p {
    color: #000000;
}

body.light-theme .skill-card h3,
body.light-theme .project-card h3 {
    color: #000000;
}

body.light-theme .skill-card p,
body.light-theme .project-card p {
    color: #000000;
}

body.light-theme .pricing-card {
    background: #ffffff;
    border: 2px solid #000000;
}

body.light-theme .pricing-header h3 {
    color: #000000;
}

body.light-theme .amount {
    color: #000000;
}

body.light-theme .currency {
    color: #0000ff;
}

body.light-theme .from,
body.light-theme .period {
    color: #000000;
}

body.light-theme .pricing-note {
    background: #ffffff;
    border: 2px solid #000000;
}

body.light-theme .pricing-note p {
    color: #000000;
}

body.light-theme .contact-info h3 {
    color: #000000;
}

body.light-theme .contact-info p {
    color: #000000;
}

body.light-theme .form-group label {
    color: #000000;
}

body.light-theme .btn {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

body.light-theme .btn:hover {
    background-color: #0000ff;
    border-color: #0000ff;
}

body.light-theme .btn-outline {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

body.light-theme .btn-outline:hover {
    background-color: #000000;
    color: #ffffff;
}

body.light-theme .tag {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

body.light-theme .tag:hover {
    background-color: #0000ff;
    border-color: #0000ff;
}

body.light-theme .language-btn {
    background: #ffffff;
    border: 2px solid #000000;
    color: #000000;
}

body.light-theme .language-btn:hover {
    background: #0000ff;
    color: #ffffff;
}

body.light-theme .language-options {
    background: #ffffff;
    border: 2px solid #000000;
}

body.light-theme .language-option {
    color: #000000;
}

body.light-theme .language-option:hover {
    background: #0000ff;
    color: #ffffff;
}

body.light-theme .language-option.active {
    color: #0000ff;
    font-weight: 700;
}

body.light-theme .mobile-menu-btn {
    color: #000000;
}

body.light-theme .mobile-menu-btn:hover {
    color: #0000ff;
}

body.light-theme .mobile-menu {
    background-color: #ffffff;
}

body.light-theme .mobile-menu .nav-links a {
    color: #000000;
}

body.light-theme .mobile-menu .nav-links a:hover {
    color: #0000ff;
}

body.light-theme .mobile-menu-close {
    color: #000000;
}

body.light-theme .mobile-menu-close:hover {
    color: #0000ff;
}

body.light-theme .back-to-top {
    background-color: #000000;
    color: #ffffff;
}

body.light-theme .back-to-top:hover {
    background-color: #0000ff;
}

body.light-theme .cookie-settings-btn {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

body.light-theme .cookie-settings-btn:hover {
    background-color: #0000ff;
    color: #ffffff;
    border-color: #0000ff;
}

body.light-theme .theme-toggle {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

body.light-theme .theme-toggle:hover {
    background-color: #0000ff;
    color: #ffffff;
    border-color: #0000ff;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--darker);
    z-index: 9999; /* Higher z-index to ensure it's above everything */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.5s ease;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    display: flex; /* Ensure it's visible */
}

.mobile-menu .nav-links a {
    font-size: 1.5rem;
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
    display: block; /* Ensure links are visible */
}

.mobile-menu .nav-links a:hover {
    color: var(--primary);
}

.mobile-menu .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--light);
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu .language-switcher {
    display: none; /* Hide language switcher in mobile menu */
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .language-switcher {
        margin-left: auto;
        margin-right: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--light);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    .mobile-menu-btn:hover {
        color: var(--primary);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-text {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .hero-image {
        order: 2;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .pricing-card {
        padding: 1.75rem 1.25rem;
    }
    
    .pricing-header h3 {
        font-size: 1.5rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .pricing-features li {
        padding: 0.75rem 0;
    }
    
    .mobile-menu .language-switcher {
        margin: 1rem auto;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu .language-options {
        position: relative;
        display: block;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        animation: none;
    }
    
    .mobile-menu .language-option {
        text-align: center;
        padding: 0.8rem;
    }
    
    /* Adjust cookie settings button position on mobile */
    .cookie-settings-btn {
        bottom: 5.5rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .theme-toggle {
        left: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Ensure hero text is visible on mobile - INCREASE TOP PADDING */
    .hero {
        min-height: 100vh !important;
        padding-top: 140px !important; /* Increased from 140px to 180px to ensure text is visible */
        padding-bottom: 2rem !important;
        margin-top: 80px !important; /* Additional margin to push content down */
        height: auto !important; /* Override the fixed height */
    }
    
    .hero-text h1 {
        margin-bottom: 1rem;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        font-size: 2.2rem;
        line-height: 1.3;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        padding-top: 20px; /* Additional padding for the text itself */
    }
    
    .hero-text .subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    /* Additional mobile fixes */
    .hero-content {
        padding: 1rem 0;
        gap: 2rem;
    }
    
    .hero-text {
        order: 1;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero-image {
        order: 2;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .back-to-top {
        bottom: 6rem !important;
        right: 1rem !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
}

/* Ensure text doesn't overflow on very small screens */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
        
    .hero-text .subtitle {
        font-size: 0.9rem;
    }
        
    .hero {
        padding-top: 100px !important; /* Even more padding for very small screens */
        margin-top: 50px !important; /* Additional margin for very small screens */
        height: auto !important;
    }

    .back-to-top {
        bottom: 6rem !important;
        right: 1rem !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1rem !important;
    }
}