/* CSS Variables for Theme Colors */
:root {
    --primary: #1E3A8A;
    --secondary: #06B6D4;
    --accent: #84CC16;
    --background: #F3F4F6;
    --text: #111827;
    --white: #FFFFFF;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --background: #111827;
    --text: #F9FAFB;
    --gray-100: #1F2937;
    --gray-200: #374151;
    --gray-300: #4B5563;
    --gray-600: #9CA3AF;
    --gray-800: #F3F4F6;
}

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

html {
    scroll-behavior: smooth;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Accessibility: Keyboard Navigation Improvements */
*:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users, keep for keyboard */
*:focus:not(:focus-visible) {
    outline: none;
}

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

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.logo-loader {
    animation: pulse 2s infinite;
}

.logo-circle {
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: draw 2s ease-in-out infinite;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Website Banner */
.website-banner {
    width: 100%;
    background: linear-gradient(135deg, #1E3A8A 0%, #06B6D4 100%);
    padding: 20px 0;
    margin-top: 70px; /* Account for fixed navbar */
    box-shadow: var(--shadow);
    z-index: 100;
    min-height: 120px;
}

.banner-content {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

[data-theme="dark"] .website-banner {
    background: linear-gradient(135deg, #1E3A8A 0%, #06B6D4 100%);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(243, 244, 246, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.language-toggle:hover {
    background: var(--gray-200);
}

.language-toggle:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.language-toggle i {
    font-size: 1rem;
}

.current-lang {
    font-weight: 600;
    color: var(--primary);
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 2px solid var(--gray-200);
}

[data-theme="dark"] .language-menu {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.language-toggle[aria-expanded="true"] + .language-menu,
.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-family: inherit;
    text-align: left;
}

.language-option:hover {
    background: var(--gray-200);
}

.language-option:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: -3px;
}

.language-option.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    font-weight: 600;
}

.lang-code {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 600;
}

.language-option.active .lang-code {
    color: var(--secondary);
}

.theme-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    border: none;
    background: transparent;
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--gray-200);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 120px;
    right: 40px;
    animation-delay: 2s;
}

.element-3 {
    width: 100px;
    height: 100px;
    bottom: 40px;
    left: 60px;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    width: 0%;
    transition: width 0.1s ease;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 2;
}

.hero-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1s ease 0.6s both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Testimonials Section */
.testimonials {
    background: var(--gray-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .testimonial-card {
    background: var(--gray-100);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    font-family: serif;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.testimonial-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .stat {
    background: var(--gray-100);
}

.stat:hover {
    transform: translateY(-5px);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--gray-600);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
}

/* Skills Section */
.skills {
    background: var(--gray-100);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .skill-category {
    background: var(--gray-100);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--gray-100);
    border-radius: 8px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .skill-item {
    background: var(--gray-200);
}

.skill-item:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
}

.skill-item i {
    font-size: 1.2rem;
    color: var(--secondary);
}

.skill-item:hover i {
    color: var(--white);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

[data-theme="dark"] .project-card {
    background: var(--gray-100);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    /* Project Case Study */
.project-case-study {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

[data-theme="dark"] .project-case-study {
    background: var(--gray-200);
}

.case-study-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

.case-study-item:last-child {
    margin-bottom: 0;
}

.case-study-item strong {
    color: var(--primary);
    font-weight: 600;
}

/* Update project content structure */
.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content p {
    flex-grow: 1;
    margin-bottom: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.project-tech {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: var(--secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
}

.project-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: var(--secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Experience Section */
.experience {
    background: var(--gray-100);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 2rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border: 4px solid var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

[data-theme="dark"] .timeline-content {
    background: var(--gray-100);
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.company {
    color: var(--secondary);
    font-weight: 600;
    margin-right: 1rem;
}

.period {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.timeline-content p {
    color: var(--gray-600);
    margin: 1rem 0;
    line-height: 1.6;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Useful Projects Section */
.useful-projects {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

[data-theme="dark"] .useful-projects {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

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

.useful-projects-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.useful-projects-description > p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: left;
}

[data-theme="dark"] .project-item {
    background: var(--gray-100);
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-item i {
    font-size: 2rem;
    color: var(--secondary);
    min-width: 40px;
    margin-top: 0.25rem;
}

.project-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-item p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.useful-projects-cta {
    text-align: center;
    margin-top: 2rem;
}

.useful-projects-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Responsive Design for Useful Projects */
@media (max-width: 768px) {
    .projects-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-item {
        padding: 1.25rem;
    }
    
    .useful-projects-description > p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-item {
        flex-direction: column;
        text-align: center;
    }
    
    .project-item i {
        margin: 0 auto;
    }
}

/* Case Studies Section */
.case-studies {
    background: var(--background);
    padding: 5rem 0;
    position: relative;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.case-study-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .case-study-card {
    background: var(--gray-100);
}

.case-study-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.case-study-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.case-study-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.case-study-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-study-category {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-study-content h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.case-study-content h4:first-of-type {
    margin-top: 0;
}

.case-study-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.case-study-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.case-study-content li {
    color: var(--gray-600);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.case-study-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tech-tag {
    background: var(--gray-200);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

[data-theme="dark"] .tech-tag {
    background: var(--gray-300);
}

.case-study-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-200);
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--secondary);
}

.case-study-link:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.case-study-link:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    padding: 5rem 0;
    position: relative;
}

[data-theme="dark"] .faq {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

[data-theme="dark"] .faq-item {
    background: var(--gray-100);
}

.faq-item:hover {
    border-color: var(--secondary);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.faq-question:focus {
    outline: 3px solid var(--secondary);
    outline-offset: -3px;
}

.faq-question:hover {
    color: var(--secondary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--secondary);
}

.faq-item[aria-expanded="true"] .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item[aria-expanded="true"] .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
}

/* Responsive Design for Case Studies and FAQ */
@media (max-width: 768px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .case-study-card {
        padding: 1.5rem;
    }
    
    .case-study-links {
        flex-direction: column;
    }
    
    .case-study-link {
        justify-content: center;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .case-study-tech {
        gap: 0.4rem;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Performance Metrics Section */
.performance-metrics {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    padding: 5rem 0;
    position: relative;
}

[data-theme="dark"] .performance-metrics {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

[data-theme="dark"] .metric-card {
    background: var(--gray-100);
}

.metric-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.metric-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.performance-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.performance-note i {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.performance-note p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .metric-card {
        padding: 1.5rem;
    }
    
    .metric-value {
        font-size: 2rem;
    }
}

/* Quick Contact Floating Button */
.quick-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    overflow: hidden;
}

.quick-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.6);
}

.quick-contact-btn:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

.quick-contact-text {
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.quick-contact-btn.expanded {
    width: auto;
    padding: 0 1.5rem;
    border-radius: 30px;
}

.quick-contact-btn.expanded .quick-contact-text {
    display: inline;
}

.quick-contact-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 280px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
}

[data-theme="dark"] .quick-contact-panel {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.quick-contact-panel[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.quick-contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 2px solid var(--gray-200);
}

.quick-contact-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.quick-contact-close {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quick-contact-close:hover {
    background: var(--gray-200);
    color: var(--text);
}

.quick-contact-content {
    padding: 1rem;
}

.quick-contact-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
}

.quick-contact-option:hover {
    background: var(--gray-200);
    border-color: var(--secondary);
    transform: translateX(5px);
}

.quick-contact-option:last-child {
    margin-bottom: 0;
}

.quick-contact-option i {
    font-size: 1.2rem;
    color: var(--secondary);
    width: 24px;
}

.quick-contact-option span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .quick-contact-btn {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .quick-contact-panel {
        bottom: 90px;
        right: 20px;
        width: calc(100vw - 40px);
        max-width: 280px;
    }
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--secondary);
}

[data-theme="dark"] .cookie-consent {
    background: var(--gray-100);
}

.cookie-consent[aria-hidden="false"] {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text i {
    font-size: 2rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-consent-text p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-consent-text {
        min-width: auto;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--secondary);
    font-size: 1.2rem;
    width: 20px;
}

.contact-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .contact-form {
    background: var(--gray-100);
}

/* Enhanced Contact Section */
.contact-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature i {
    color: var(--accent);
    font-size: 1.1rem;
}

.feature span {
    color: var(--gray-600);
    font-weight: 500;
}

/* New Contact Section Styles */
.contact-email {
    margin-bottom: 2rem;
}

.contact-email h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
}

.email-link:hover {
    background: rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

.email-link i {
    font-size: 1.2rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .social-icon {
    background: var(--gray-300);
    color: var(--gray-600);
}

[data-theme="dark"] .social-icon:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Enhanced Form Styles */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--gray-600);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--secondary);
    background: var(--background);
    padding: 0 0.5rem;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    min-height: 1.2rem;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
}

.form-group.error label {
    color: #ef4444;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    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: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Loading Animation for Buttons */
.btn.loading {
    pointer-events: none;
}

.btn.loading span {
    opacity: 0;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced Navigation */
.theme-toggle,
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.theme-toggle:hover,
.hamburger:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .website-banner {
        margin-top: 70px;
        padding: 15px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .email-link {
        justify-content: center;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-features {
        margin-top: 1.5rem;
    }
    
    .hero-photo {
        width: 150px;
        height: 150px;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .website-banner {
        padding: 10px 0;
    }

    .stat-number {
        font-size: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .email-link {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

/* Add these styles to your existing CSS file */

/* Loading Screen Logo */
.loading-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Logo */
.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.1);
}

/* About Section Photo */
.about-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.05);
}

/* NextGen Sites Logo - Rectangular */
.about-photo.nextgen-logo {
    width: 300px;
    height: 150px;
    border-radius: 12px;
    object-fit: contain;
}

/* Footer Logo */
.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

/* Remove the old SVG logo styles since we're using your image */
.nav-logo svg,
.footer-logo svg {
    display: none;
}

/* Advanced Projects Section */
.advanced-projects {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
}

[data-theme="dark"] .advanced-projects {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
}

.advanced-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.advanced-card {
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    position: relative;
}

[data-theme="dark"] .advanced-card {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

.advanced-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.advanced-card:hover::before {
    opacity: 0.1;
}

.advanced-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.advanced-placeholder {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
}

.advanced-placeholder i {
    font-size: 3rem;
    color: var(--white);
}

.advanced-tech {
    background: var(--primary);
}

.advanced-tech span {
    background: var(--secondary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.advanced-tech span:hover {
    background: var(--accent);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Responsive adjustments for advanced projects */
@media (max-width: 768px) {
    .advanced-projects .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    max-width: 400px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--secondary);
}

[data-theme="dark"] .notification {
    background: var(--gray-100);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: var(--accent);
}

.notification-content span {
    color: var(--text);
    font-weight: 500;
}

.notification-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: var(--gray-200);
    color: var(--text);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 90px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Services Section */
.services {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .services {
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="services-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23services-grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    background: var(--gray-100);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

/* Featured Card (Standard Package) */
.service-card.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* Service Header */
.service-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.service-header h3 {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.price-period {
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Service Description */
.service-description {
    margin-bottom: 1.5rem;
}

.service-description p {
    color: var(--gray-600);
    line-height: 1.6;
    text-align: center;
    font-size: 0.95rem;
}

/* Service Features */
.service-features {
    margin-bottom: 2rem;
}

.service-features h4 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.4;
}

.service-features li i {
    color: var(--accent);
    font-size: 0.8rem;
    min-width: 16px;
}

/* Service CTA */
.service-cta {
    text-align: center;
}

.service-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    position: relative;
    overflow: hidden;
}

.service-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: left 0.5s ease;
}

.service-btn:hover::before {
    left: 100%;
}

.service-btn:hover {
    background: linear-gradient(135deg, #1e40af, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

/* Package-specific styling */
.service-card.starter .service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.service-card.standard .service-icon {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.service-card.premium .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card.featured {
        transform: scale(1.02);
    }
    
    .service-card.featured:hover {
        transform: scale(1.02) translateY(-10px);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card.featured {
        transform: none;
        order: -1;
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .service-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.25rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
    }
    
    .service-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Sale Popup */
.sale-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sale-popup.show {
    opacity: 1;
    visibility: visible;
}

.sale-popup-content {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7) translateY(50px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 3px solid var(--accent);
}

[data-theme="dark"] .sale-popup-content {
    background: var(--gray-100);
}

.sale-popup.show .sale-popup-content {
    transform: scale(1) translateY(0);
}

.sale-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.sale-popup-close:hover {
    background: var(--gray-200);
    color: var(--text);
    transform: scale(1.1);
}

.sale-popup-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.sale-badge-large {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(132, 204, 22, 0.3);
    animation: pulse 2s infinite;
}

.sale-badge-large i {
    animation: bounce 1s infinite;
}

.sale-popup-header h3 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.price-comparison {
    background: linear-gradient(135deg, var(--gray-100), var(--white));
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 2px solid var(--gray-200);
}

[data-theme="dark"] .price-comparison {
    background: linear-gradient(135deg, var(--gray-200), var(--gray-100));
}

.original-price {
    margin-bottom: 1rem;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.price-amount-original {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-600);
    text-decoration: line-through;
    opacity: 0.7;
}

.price-amount-sale {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(132, 204, 22, 0.3);
}

.savings {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--accent);
}

.savings-amount {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.savings-percentage {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    display: inline-block;
}

.sale-features {
    margin-bottom: 2rem;
}

.sale-features h4 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

.sale-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sale-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.4;
}

.sale-features li i {
    color: var(--accent);
    font-size: 0.9rem;
    min-width: 16px;
}

.sale-cta {
    text-align: center;
}

.sale-btn {
    width: 100%;
    justify-content: center;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.3);
}

.sale-btn:hover {
    background: linear-gradient(135deg, #65a30d, #0891b2);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(132, 204, 22, 0.4);
}

.sale-timer {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

/* Responsive Design for Sale Popup */
@media (max-width: 768px) {
    .sale-popup-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .sale-popup-header h3 {
        font-size: 1.5rem;
    }
    
    .price-amount-sale {
        font-size: 2.5rem;
    }
    
    .price-amount-original {
        font-size: 1.5rem;
    }
    
    .sale-badge-large {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .sale-popup-content {
        padding: 1rem;
    }
    
    .sale-popup-header h3 {
        font-size: 1.3rem;
    }
    
    .price-comparison {
        padding: 1rem;
    }
    
    .sale-features li {
        font-size: 0.9rem;
    }
    
    .sale-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mobile Responsive Styles for Language Switcher */
@media (max-width: 768px) {
    .header-controls {
        gap: 0.5rem;
    }
    
    .language-toggle {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .language-toggle .current-lang {
        display: none;
    }
    
    .language-menu {
        right: -10px;
        min-width: 140px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    [data-theme="dark"] .nav-menu {
        background: var(--gray-100);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
}
