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

/* Light Mode Variables */
:root {
    /* Color Palette - Modern Professional */
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #4cc9f0;
    --text-color: #000000;
    --text-light: #8d99ae;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --success-color: #4ade80;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Navbar */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(0, 0, 0, 0.1);

    /* Footer */
    --footer-bg: #2b2d42;
    --footer-text: rgba(255, 255, 255, 0.7);
}

/* Dark Mode Variables */
body.dark-mode {
    /* Color Palette - Dark Theme */
    --primary-color: #5a7dff;
    --secondary-color: #4d1db3;
    --accent-color: #00e5ff;
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --background: #121212;
    --background-alt: #1e1e1e;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --success-color: #00c853;

    /* Shadows for Dark Mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);

    /* Navbar */
    --navbar-bg: rgba(30, 30, 30, 0.95);
    --navbar-border: rgba(255, 255, 255, 0.1);

    /* Footer */
    --footer-bg: #1a1a1a;
    --footer-text: rgba(255, 255, 255, 0.6);
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    transition: color 0.3s ease;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    transition: color 0.3s ease;
}

/* Theme Switch Styles */
.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--card-bg);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border: 2px solid var(--border-color);
}

.slider:before {
    background-color: var(--primary-color);
    bottom: 4px;
    content: "";
    height: 22px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 22px;
    z-index: 2;
}

.slider.round {
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider .sun,
.slider .moon {
    font-size: 14px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.slider .sun {
    color: #ffb74d;
}

.slider .moon {
    color: #90caf9;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

input:checked+.slider .sun {
    opacity: 0.5;
}

input:not(:checked)+.slider .moon {
    opacity: 0.5;
}

/* Navigation Theme Toggle (Desktop) */
.nav-theme-toggle {
    display: flex;
    align-items: center;
    margin-left: var(--spacing-md);
}

/* Mobile Theme Toggle (Hidden on Desktop) */
.mobile-theme-toggle {
    display: none;
    position: absolute;
    top: 1rem;
    right: 4rem;
    z-index: 1002;
}

.mobile-switch {
    width: 50px;
    height: 28px;
}

.mobile-switch .slider:before {
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
}

.mobile-switch .slider .sun,
.mobile-switch .slider .moon {
    font-size: 12px;
}

/* Section Spacing - Fixed to prevent overlap */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

/* Add extra spacing between hero and services to prevent overlap */
.hero+.services {
    padding-top: 0;
    margin-top: -2rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.1rem;
}

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

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

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

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

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

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

.nav-3d-link {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.btn-nav {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* Hero Section with fixed spacing */
.hero {
    padding-top: calc(var(--spacing-xl) * 1.5);
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.hero-stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

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

.stat p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.hero-image {
    position: relative;
}

.image-container {
    position: relative;
    height: 500px;
}

/* Fixed circles with proper z-index */
.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 50px;
    right: 50px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: 0;
    opacity: 0.05;
    animation-delay: 2s;
    animation-duration: 8s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 100px;
    left: 50px;
    opacity: 0.08;
    animation-delay: 4s;
    animation-duration: 7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.workflow-visual {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.node {
    width: 80px;
    height: 80px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.node:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(67, 97, 238, 0.3);
}

.node-1 {
    animation-delay: 0s;
}

.node-2 {
    animation-delay: 0.5s;
}

.node-3 {
    animation-delay: 1s;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: var(--shadow-lg);
    }

    50% {
        box-shadow: 0 0 40px rgba(67, 97, 238, 0.4);
    }
}

.connection {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    position: relative;
    z-index: 2;
}

.connection::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 10px solid var(--accent-color);
}

/* Services Section - Fixed spacing and animations */
.services {
    background-color: var(--background-alt);
    position: relative;
    z-index: 2;
    padding-top: var(--spacing-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    position: relative;
}

/* Service card animations - fixed to prevent overlap */
.service-card {
    background: var(--card-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

/* Staggered animations for service cards */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

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

.service-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: white;
    font-size: 1.5rem;
}

.service-features {
    list-style: none;
    margin-top: var(--spacing-sm);
}

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

.service-features i {
    color: var(--success-color);
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

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

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background: white;
    color: var(--primary-color);
}

.portfolio-info {
    padding: var(--spacing-md);
}

.portfolio-category {
    display: inline-block;
    background: var(--background-alt);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.cta-3d {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    color: white;
}

.cta-3d h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.cta-3d p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.btn-3d {
    background: white;
    color: var(--primary-color) !important;
}

.btn-3d:hover {
    background: var(--background-alt);
    color: var(--primary-color) !important;
}

/* About Section - Updated without picture */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

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

.illustration-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.design-element {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: absolute;
    box-shadow: var(--shadow-lg);
    animation: floatElement 3s ease-in-out infinite;
}

.design-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    background: linear-gradient(45deg, var(--primary-color), #7209b7);
}

.design-2 {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
    background: linear-gradient(45deg, var(--accent-color), #00b4d8);
}

.design-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 2s;
    background: linear-gradient(45deg, #f72585, #ff9e00);
}

@keyframes floatElement {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.connecting-line {
    position: absolute;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 3px;
    border-radius: 2px;
    opacity: 0.5;
}

.line-1 {
    width: 150px;
    top: 35%;
    left: 35%;
    transform: rotate(45deg);
}

.line-2 {
    width: 120px;
    top: 60%;
    right: 35%;
    transform: rotate(-30deg);
}

.about-skills {
    margin: var(--spacing-md) 0;
}

.skill {
    margin-bottom: var(--spacing-sm);
}

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

.skill-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.about-stats {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.about-stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

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

.about-stat p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--card-bg);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--background-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--card-bg);
    color: var(--text-color);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer p {
    color: var(--footer-text);
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design - Improved for mobile */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .workflow-visual {
        gap: 2rem;
    }

    .node {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .connection {
        width: 80px;
    }

    /* About section adjustments for tablet */
    .about-illustration {
        height: 350px;
    }

    .design-element {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }

    .hero-stats,
    .about-stats {
        gap: var(--spacing-md);
        justify-content: center;
    }

    .stat,
    .about-stat {
        min-width: 120px;
    }
}

@media (max-width: 768px) {

    /* Hide desktop theme toggle in nav */
    .nav-theme-toggle {
        display: none;
    }

    /* Show mobile theme toggle */
    .mobile-theme-toggle {
        display: block;
    }

    /* Navigation for mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .btn-nav {
        display: inline-block;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: center;
    }

    .stat {
        text-align: center;
        min-width: 150px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .image-container {
        height: 350px;
        margin-top: var(--spacing-md);
    }

    .circle-1 {
        width: 200px;
        height: 200px;
        top: 30px;
        right: 30px;
    }

    .circle-2 {
        width: 150px;
        height: 150px;
        bottom: 30px;
        left: 20px;
    }

    .circle-3 {
        width: 100px;
        height: 100px;
        top: 70px;
        left: 30px;
    }

    /* Mobile theme toggle positioning */
    .mobile-theme-toggle {
        position: fixed;
        top: 1.2rem;
        right: 4.5rem;
        z-index: 1002;
    }

    /* About section adjustments for mobile */
    .about-illustration {
        height: 300px;
        margin-bottom: var(--spacing-md);
    }

    .design-element {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .design-1 {
        top: 15%;
        left: 15%;
    }

    .design-2 {
        top: 50%;
        right: 15%;
    }

    .design-3 {
        bottom: 15%;
        left: 35%;
    }

    .line-1,
    .line-2 {
        display: none;
        /* Hide lines on mobile for cleaner look */
    }

    .about-stats {
        justify-content: space-between;
        gap: var(--spacing-sm);
    }

    .about-stat {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: auto;
    }

    /* Service cards adjustments for mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        margin-bottom: var(--spacing-md);
    }

    /* Contact section adjustments */
    .contact-content {
        gap: var(--spacing-md);
    }

    .contact-info {
        order: 2;
        margin-top: var(--spacing-md);
    }

    .contact-form {
        order: 1;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.3rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero {
        padding-top: var(--spacing-xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: calc(50% - 0.5rem);
        text-align: center;
    }

    .hero-stats {
        gap: var(--spacing-sm);
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .mobile-theme-toggle {
        right: 4rem;
        top: 1rem;
    }

    /* Smaller profile illustration for very small screens */
    .about-illustration {
        height: 250px;
    }

    .design-element {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .about-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .about-stat {
        flex: 0 0 100%;
    }

    .workflow-visual {
        gap: 1.5rem;
    }

    .node {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .connection {
        width: 60px;
    }

    /* Adjust service cards for very small screens */
    .service-card {
        padding: var(--spacing-sm);
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    /* Adjust portfolio items for mobile */
    .portfolio-image {
        height: 200px;
    }

    /* Adjust contact form for mobile */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }
}