/* CSS Variables for Theme System */
:root {
    /* Light Theme (Default) - Base colors only */
    --bg-color: #ffffff;
    --bg-color-rgb: 255, 255, 255;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --card-bg: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);

    /* Default accent colors (can be overridden by custom colors) */
    --primary-color: #2563eb;
    --primary-color-rgb: 37, 99, 235;
    --secondary-color: #7c3aed;
    --secondary-color-rgb: 124, 58, 237;
    --hero-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Dark Theme - Base colors only */
[data-theme="dark"] {
    --bg-color: #111827;
    --bg-color-rgb: 17, 24, 39;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: rgba(0, 0, 0, 0.3);

    /* Default accent colors for dark theme (can be overridden by custom colors) */
    --primary-color: #3b82f6;
    --primary-color-rgb: 59, 130, 246;
    --secondary-color: #8b5cf6;
    --secondary-color-rgb: 139, 92, 246;
    --hero-bg: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Custom Colors Theme - Uses current base theme with custom accent colors */
[data-theme="custom"] {
    /* Custom accent colors will be set via JavaScript */
    /* Base theme colors remain from light or dark theme */
    /* This selector is intentionally empty as colors are applied via JavaScript */
    color: inherit;
}

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

/* SPA Section Management */
section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

section.active {
    display: block;
    opacity: 1;
}

/* Ensure hero section is visible by default */
section#home {
    display: block;
    opacity: 1;
}

/* Active navigation state */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Theme Selector */
.theme-selector {
    position: relative;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.theme-toggle i {
    position: absolute;
    transition: all 0.3s ease;
    font-size: 16px;
}

.theme-toggle i:nth-child(1) {
    opacity: 1;
}

/* Sun - Light theme */
.theme-toggle i:nth-child(2) {
    opacity: 0;
}

/* Moon - Dark theme */
.theme-toggle i:nth-child(3) {
    opacity: 0;
}

/* Palette - Custom theme */

/* Theme states */
[data-theme="light"] .theme-toggle i:nth-child(1) {
    opacity: 1;
}

[data-theme="light"] .theme-toggle i:nth-child(2) {
    opacity: 0;
}

[data-theme="light"] .theme-toggle i:nth-child(3) {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle i:nth-child(1) {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle i:nth-child(2) {
    opacity: 1;
}

[data-theme="dark"] .theme-toggle i:nth-child(3) {
    opacity: 0;
}

[data-theme="custom"] .theme-toggle i:nth-child(1) {
    opacity: 0;
}

[data-theme="custom"] .theme-toggle i:nth-child(2) {
    opacity: 0;
}

[data-theme="custom"] .theme-toggle i:nth-child(3) {
    opacity: 1;
}

/* Theme Menu */
.theme-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 120px;
    display: none;
    z-index: 1000;
    animation: themeMenuSlide 0.2s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.theme-menu.show {
    display: block;
}

.theme-option {
    width: 100%;
    background: none;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.theme-option:hover {
    background: var(--primary-color);
    color: white;
}

.theme-option i {
    font-size: 14px;
    width: 16px;
}

/* Projects Showcase in Web Services */
.projects-showcase {
    margin-bottom: 4rem;
}

.showcase-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.showcase-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Section Header with Back to Home */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
    cursor: pointer;
}

.back-to-home:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.back-to-home i {
    font-size: 0.8rem;
}

/* Theme Modal */
.theme-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.theme-modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.theme-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.theme-modal-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.theme-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.theme-modal-close:hover {
    color: var(--primary-color);
}

.theme-modal-body {
    padding: 1.5rem;
}

.color-picker-group {
    margin-bottom: 1.5rem;
}

.color-picker-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.color-picker-group input[type="color"] {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-picker-group input[type="color"]:hover {
    transform: scale(1.05);
}

.theme-preview {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.preview-card {
    background: var(--bg-color);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-header {
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.preview-content {
    padding: 1rem;
}

.preview-text {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.preview-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.theme-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-color) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

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

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

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

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

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

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

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

/* Hero Section */
.hero {
    background: var(--hero-bg);
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: background 0.3s ease;
}

.hero::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

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

.btn-primary:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1f2937;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-line {
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    margin: 1rem 0;
    border-radius: 2px;
    animation: codeTyping 2s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 80%;
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 60%;
    animation-delay: 0.5s;
}

.code-line:nth-child(3) {
    width: 90%;
    animation-delay: 1s;
}

.code-line:nth-child(4) {
    width: 70%;
    animation-delay: 1.5s;
}

@keyframes codeTyping {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Section Styles */
section {
    padding: 6rem 0 5rem 0;
}

/* Hero section should account for fixed navbar */
.hero {
    padding: 120px 0 80px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    position: relative;
}

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

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

/* About Section */
.about {
    background-color: var(--card-bg);
    position: relative;
    z-index: 1;
}

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

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

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

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

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

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

.image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--card-bg);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.tab-button {
    padding: 0.75rem 2rem;
    border: 2px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-light);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

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

.project-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
}

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

.project-card {
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    color: white;
    font-size: 3rem;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background-color: var(--card-bg);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.coming-soon {
    opacity: 0.7;
}

/* Skills Section */
.skills {
    background-color: var(--card-bg);
}

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

.skill-category {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.skill-category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.skill-item:hover {
    background-color: var(--border-color);
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 24px;
}

.skill-item span {
    font-weight: 500;
    color: var(--text-color);
}

/* Services Section */
.services {
    background-color: var(--card-bg);
}

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.service-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.service-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.service-header {
    text-align: center;
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 100%;
    text-align: center;
}

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

.maintenance-addon {
    text-align: center;
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.maintenance-addon h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.maintenance-addon p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--card-bg);
}

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

.testimonial-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
}

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

.author-info h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* Navigation CTA Button */
.cta-button {
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    background-color: var(--primary-color) !important;
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

.cta-button::after {
    display: none !important;
}

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

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

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background-color: var(--border-color);
}

.contact-method i {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 24px;
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

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

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

/* Footer */
.footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: white;
}

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

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

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

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

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

    .about-stats {
        justify-content: center;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

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

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

    .service-card.featured {
        transform: none;
    }

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

    .portfolio-tabs {
        flex-direction: column;
        align-items: center;
    }

    .tab-button {
        width: 100%;
        max-width: 200px;
    }
}

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* Smooth scrolling and animations */
@media (prefers-reduced-motion: no-preference) {

    .project-card,
    .skill-item,
    .contact-method {
        animation: fadeInUp 0.6s ease-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states and transitions */
.btn:active {
    transform: translateY(0);
}

.project-card:active {
    transform: translateY(-2px);
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.project-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }

    .hero {
        background: none;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Pricing Hero Section */
.pricing-hero {
    padding: 2rem 0 3rem 0;
    background: var(--hero-bg);
    text-align: center;
    margin-top: 80px;
    /* Account for fixed navbar */
}

.pricing-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pricing-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    font-weight: 400;
}

/* Pricing Comparison Page Styles */
.pricing-comparison {
    padding: 4rem 0;
    background: var(--card-bg);
    margin-top: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* How It Works Section */
.how-it-works {
    padding: 2rem 0;
    background: var(--bg-color);
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow);
}

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

.step h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Scope Notes */
.scope-note {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 12px var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.show {
    transform: translateY(0);
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sticky-cta span {
    color: var(--text-color);
    font-weight: 500;
}

.sticky-cta .btn {
    flex-shrink: 0;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Add-ons Section */
.addons-section {
    margin: 2rem 0;
    padding: 2rem 0;
    background: var(--bg-color);
    border-radius: 12px;
}

.addons-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.addon-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.addon-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

.addon-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.addon-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.addon-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Pricing Table Styles */
.pricing-table-container {
    overflow-x: auto;
    margin: 3rem 0 3rem 0;
    padding: 2.5rem 0 0 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px var(--shadow);
    background: var(--bg-color);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.9rem;
    margin-top: 1rem;
    table-layout: fixed;
}

.pricing-table caption {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    padding: 0 1rem;
}

.pricing-table th,
.pricing-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text-color);
}

.pricing-table .feature-column {
    width: 25%;
    background: var(--card-bg);
    font-weight: 600;
    color: var(--text-color);
}

.pricing-table .plan-column {
    width: 25% !important;
    min-width: 25%;
    max-width: 25%;
    text-align: center;
    vertical-align: top;
}

.pricing-table .plan-column.featured {
    width: 25% !important;
    min-width: 25%;
    max-width: 25%;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    position: relative;
}

.plan-badge {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px var(--shadow);
    line-height: 1.2;
}

.plan-header {
    padding: 0.75rem 0;
    margin-top: 1rem;
}

.plan-header .plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.plan-header .plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.plan-header .plan-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.feature-row {
    transition: background-color 0.2s ease;
}

.feature-row:hover {
    background: var(--card-bg);
}

.feature-name {
    font-weight: 500;
    color: var(--text-color);
    background: var(--card-bg);
}

.feature-check {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-x {
    text-align: center;
    color: #dc2626;
    font-size: 1.2rem;
}

.feature-value {
    text-align: center;
    color: var(--text-light);
    font-weight: 500;
}

.action-row {
    background: var(--card-bg);
}

.action-cell {
    text-align: center;
    padding: 1.5rem 1rem;
}

.action-cell .btn {
    min-width: 120px;
}

/* Responsive Table */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 1.5rem 0 2rem 0;
        margin-top: 70px;
    }

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

    .pricing-hero-subtitle {
        font-size: 1.1rem;
    }

    .how-it-works {
        padding: 1.5rem 0;
    }

    .pricing-comparison {
        padding: 2rem 0;
    }

    .pricing-table-container {
        font-size: 0.875rem;
        margin: 1rem 0 2rem 0;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 0.75rem 0.5rem;
    }

    .plan-header {
        padding: 0.5rem 0;
    }

    .plan-header .plan-name {
        font-size: 1.25rem;
    }

    .plan-header .plan-price {
        font-size: 1.8rem;
    }

    .feature-name {
        font-size: 0.875rem;
    }

    .action-cell .btn {
        min-width: 100px;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .scope-note {
        font-size: 0.75rem;
    }

    .addons-section {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {

    .pricing-table th,
    .pricing-table td {
        padding: 0.5rem 0.25rem;
    }

    .plan-header .plan-name {
        font-size: 1rem;
    }

    .plan-header .plan-price {
        font-size: 1.5rem;
    }

    .plan-header .plan-description {
        font-size: 0.8rem;
    }
}

.pricing-card {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0.25rem;
}

.period {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
}

.plan-description {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

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

.plan-features h4 {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
}

.features-list i {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.plan-timeline {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.plan-timeline h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-timeline p {
    color: var(--text-light);
    margin: 0;
}

/* Maintenance Section */
.maintenance-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.maintenance-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

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

.maintenance-card {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.maintenance-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
}

.maintenance-card.featured {
    border-color: var(--primary-color);
}

.maintenance-card h4 {
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.maintenance-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.maintenance-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.maintenance-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.maintenance-card i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.faq-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

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

.faq-item {
    background: var(--bg-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    border: 1px solid var(--border-color);
}

.faq-item h4 {
    color: var(--text-color);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--hero-bg);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
    border: none;
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Responsive Design for Pricing Page */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

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

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

    .plan-price {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .amount {
        font-size: 2.5rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.125rem;
    }
}