/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader svg {
    width: 80px;
    height: 80px;
    transform-origin: center;
    animation: rotate 2s linear infinite;
}

#loader-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite alternate;
}

.loader-text {
    margin-top: 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 200;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    animation: hideSplashScreen 5s forwards; /* Failsafe animation to hide splash screen */
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Anime.js specific styles for splash screen */
.splash-screen .animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.splash-content {
    text-align: center;
    color: white;
    max-width: 80%;
    animation: fadeInUp 1s ease-out forwards;
    padding: 20px;
}

.code-animation {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 0 auto 20px;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.code-animation:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: codeScan 2s infinite;
}

@keyframes codeScan {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.code-animation pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #f8f8f2;
    overflow-x: auto;
}

.code-comment {
    color: #6272a4;
}

.code-keyword {
    color: #ff79c6;
}

.code-function {
    color: #50fa7b;
}

.code-variable {
    color: #8be9fd;
}

.code-string {
    color: #f1fa8c;
}

.code-class {
    color: #bd93f9;
}

.code-boolean {
    color: #bd93f9;
}

.splash-logo {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash-logo .logo-top {
    margin-bottom: 0.2rem;
}

.splash-logo .logo-main {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: pulse 2s infinite;
}

.splash-logo .logo-bottom {
    display: flex;
    align-items: center;
}

.splash-logo .logo-by {
    font-size: 1rem;
    margin-right: 5px;
    opacity: 0.8;
}

.splash-logo .logo-company {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo-company a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo-company a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.splash-message {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.splash-loader {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.splash-loader span {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: loaderDots 1.5s infinite ease-in-out;
}

.splash-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.splash-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loaderDots {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

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

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
    }
}

/* Failsafe animation to hide splash screen after 5 seconds */
@keyframes hideSplashScreen {
    0%, 80% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

:root {
    /* Light mode (default) */
    --primary-color: #0066cc;
    --primary-color-rgb: 0, 102, 204; /* RGB values for primary color */
    --primary-dark: #0055aa;
    --primary-dark-rgb: 0, 85, 170; /* RGB values for primary dark */
    --secondary-color: #ff6b6b;
    --secondary-color-rgb: 255, 107, 107; /* RGB values for secondary color */
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-light-rgb: 248, 249, 250; /* RGB values for background color */
    --bg-dark: #1a1a1a;
    --bg-dark-rgb: 26, 26, 26; /* RGB values for dark background */
    --bg-color: white;
    --header-bg: rgba(255, 255, 255, 0.95);
    --card-bg: white;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Dark mode */
body.dark-mode {
    --primary-color: #3b82f6;
    --primary-color-rgb: 59, 130, 246; /* RGB values for primary color in dark mode */
    --primary-dark: #2563eb;
    --primary-dark-rgb: 37, 99, 235; /* RGB values for primary dark in dark mode */
    --secondary-color: #f87171;
    --secondary-color-rgb: 248, 113, 113; /* RGB values for secondary color in dark mode */
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --bg-light: #1f2937;
    --bg-light-rgb: 31, 41, 55; /* RGB values for dark mode background */
    --bg-dark: #111827;
    --bg-dark-rgb: 17, 24, 39; /* RGB values for dark mode dark background */
    --bg-color: #111827;
    --header-bg: rgba(17, 24, 39, 0.95);
    --card-bg: #1e293b;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --form-label-color: #e5e7eb;
}

body.dark-mode .service-card {
    border-color: rgba(255, 255, 255, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Performance optimization - pause animations when tab is not visible */
body.animations-paused * {
    animation-play-state: paused !important;
    transition: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

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

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease-out;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    animation: slideUp 0.7s ease-out forwards;
    animation-delay: 0.3s;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

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

.btn-secondary:hover {
    background-color: rgba(0, 102, 204, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.8rem;
}

.btn-animated {
    animation: pulse 2s infinite;
}

/* Logo Styles */
.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    animation: fadeIn 1s ease-out;
}

.logo-top {
    margin-bottom: 0.2rem;
}

.logo-bottom {
    display: flex;
    align-items: center;
    margin-top: -0.1rem;
}

.logo-main {
    color: #000;
    font-weight: 700;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: var(--transition);
}

.logo-by {
    font-size: 0.8rem;
    color: #000;
    margin-right: 0.3rem;
    font-weight: normal;
}

.logo-company {
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Poppins', Arial, sans-serif;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.dark-mode .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.theme-toggle i {
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: translateY(20px);
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .theme-toggle .fa-sun {
    opacity: 1;
    transform: translateY(0);
}

body.dark-mode .theme-toggle .fa-moon {
    opacity: 0;
    transform: translateY(-20px);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--header-bg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.1s; }
.nav-links li:nth-child(2) { animation-delay: 0.2s; }
.nav-links li:nth-child(3) { animation-delay: 0.3s; }
.nav-links li:nth-child(4) { animation-delay: 0.4s; }
.nav-links li:nth-child(5) { animation-delay: 0.5s; }

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 3px;
}

body.dark-mode .hamburger span {
    background-color: white;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background-color: var(--bg-light);
    position: relative;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

/* Anime.js specific styles for hero section */
.hero .code-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-light) 0%, transparent 100%);
    z-index: 2;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    flex: 1;
    padding-right: 60px;
    animation: slideInLeft 1s ease-out;
    max-width: 50%;
}

.hero-image {
    flex: 1;
    animation: slideInRight 1s ease-out;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
    padding: 30px;
}

/* Border effect removed */

/* Hero Code Editor */
.hero-code-editor {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    background-color: var(--bg-dark);
    overflow: hidden;
}

.hero-code-editor::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: codeScan 3s infinite;
    z-index: 2;
}

@keyframes codeScan {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.hero-image:hover .hero-code-editor {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.code-editor {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-dark);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.code-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.code-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background-color: #27c93f;
}

.code-title {
    margin-left: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Consolas', 'Monaco', monospace;
}

.code-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.code-body pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f8f8f2;
}

/* Typing animation */
.typing-code {
    display: inline-block;
    position: relative;
}

.typing-code::after {
    content: '|';
    position: absolute;
    right: -10px;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Code highlight effect */
.typing-code span.highlight {
    animation: highlight 0.5s ease-in-out;
}

@keyframes highlight {
    0% { color: inherit; }
    50% { color: var(--primary-color); }
    100% { color: inherit; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 700;
    background: linear-gradient(45deg, var(--text-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: var(--text-light);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* Digital Expertise Section */
.expertise {
    background-color: var(--bg-dark);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.expertise .section-header h2 {
    color: white;
}

.expertise .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.expertise-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.expertise-filter .filter-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.expertise-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.expertise-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.expertise-card:hover .tech-icon {
    transform: scale(1.1);
}

.expertise-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 10px;
    color: white;
}

/* Technology-specific colors */
/* Development Tools */
.html-icon { color: #e34c26; }
.css-icon { color: #264de4; }
.bootstrap-icon { color: #7952b3; }
.js-icon { color: #f7df1e; }
.tailwind-icon { color: #38b2ac; }
.react-icon { color: #61dafb; }
.angular-icon { color: #dd0031; }
.jquery-icon { color: #0769ad; }
.typescript-icon { background-color: #3178c6; }
.ts-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}
.express-icon { color: #000000; }
.mongodb-icon { color: #47A248; }
.node-icon { color: #339933; }
.mql5-icon { color: #4CAF50; }
.mql4-icon { color: #2196F3; }

/* Design Tools */
.adobe-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white;
}

.illustrator-icon { background-color: #330000; }
.illustrator-icon .adobe-logo { color: #FF9A00; }

.photoshop-icon { background-color: #001E36; }
.photoshop-icon .adobe-logo { color: #31A8FF; }

.aftereffects-icon { background-color: #1F0040; }
.aftereffects-icon .adobe-logo { color: #9999FF; }

.premierepro-icon { background-color: #00005B; }
.premierepro-icon .adobe-logo { color: #9999FF; }

.indesign-icon { background-color: #49021F; }
.indesign-icon .adobe-logo { color: #FF3366; }

.xd-icon { background-color: #2E001E; }
.xd-icon .adobe-logo { color: #FF61F6; }
.coraldraw-icon { color: #7DFF00; background-color: #111111; }
.finalcut-icon { color: #FFFFFF; background-color: #000000; }
.blender-icon { color: #F5792A; background-color: #0D1117; }
.figma-icon { background-color: transparent; }
.pixlr-icon { color: #0099E5; background-color: #111111; }
.canva-icon { color: #00C4CC; background-color: #111111; }

@media (max-width: 1200px) {
    .expertise-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Services Section */
.services {
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

/* Course Announcement Styles */
.course-announcement {
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.course-banner {
    display: flex;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(255, 107, 107, 0.15));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    position: relative;
}

.course-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.course-banner-content {
    flex: 1.2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.course-banner-image {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.course-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.course-features .feature {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.course-features .feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-features .feature i {
    color: #ff6b6b;
}

/* Dark mode styles for course features */
body.dark-mode .course-features .feature {
    background-color: rgba(59, 130, 246, 0.15);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

body.dark-mode .course-features .feature:hover {
    background-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.course-badge {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.course-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.course-banner h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(90deg, #ff6b6b, #0066cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.course-banner p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-color);
    max-width: 600px;
    line-height: 1.6;
}

/* Code Animation Styles */
.code-animation {
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #d4d4d4;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.code-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.05), rgba(0, 102, 204, 0.05));
    pointer-events: none;
}

.code-line {
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.3s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.7s; }
.code-line:nth-child(5) { animation-delay: 0.9s; }
.code-line:nth-child(6) { animation-delay: 1.1s; }
.code-line:nth-child(7) { animation-delay: 1.3s; }

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

.code-keyword {
    color: #569cd6;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

.code-boolean {
    color: #569cd6;
}

.code-number {
    color: #b5cea8;
}

@media (max-width: 992px) {
    .course-banner {
        flex-direction: column;
    }

    .course-banner-content {
        padding: 30px;
    }

    .course-banner-image {
        padding: 30px;
    }

    .code-animation {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .course-banner h3 {
        font-size: 1.8rem;
    }

    .course-features {
        flex-direction: column;
        gap: 10px;
    }
}

.services::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, rgba(0, 102, 204, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, rgba(255, 107, 107, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 1140px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 1;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    height: 100%;
}

.service-card.animated {
    animation: slideUp 0.6s ease-out forwards;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 204, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    transition: var(--transition);
    margin-bottom: 20px;
}

.service-cta {
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%230066cc" opacity="0.05"/></svg>');
    z-index: 0;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    background: none;
    border: 2px solid transparent;
    padding: 10px 25px;
    margin: 5px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.filter-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: var(--transition);
}

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

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    max-width: 1140px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item.animated {
    animation: slideUp 0.6s ease-out forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
    color: white;
    text-align: center;
}

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

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

.portfolio-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.portfolio-overlay p {
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
    opacity: 0.8;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.portfolio-overlay .btn {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1140px;
    margin: 0 auto;
}

.about-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.about-image.main-image {
    grid-row: 1;
}

.about-image.code-image {
    grid-row: 2;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(255, 107, 107, 0.05) 100%);
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-slider {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    min-width: 100%;
    padding: 0 20px;
}

.testimonial-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-quote {
    margin-bottom: 30px;
}

.testimonial-quote i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    opacity: 0.5;
}

.testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
}

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

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--primary-color);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

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

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.testimonial-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-arrow:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Portfolio Detail Page */
.portfolio-detail {
    padding: 120px 0 80px;
    background-color: var(--bg-color);
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

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

.portfolio-detail-header {
    margin-bottom: 50px;
    text-align: center;
}

.portfolio-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
}

.meta-item i {
    color: var(--primary-color);
}

.portfolio-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.portfolio-detail-gallery {
    position: relative;
}

.main-image {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-thumbnail {
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-thumbnail img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

.gallery-thumbnail.active {
    border: 2px solid var(--primary-color);
}

.portfolio-detail-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.info-section p {
    line-height: 1.7;
    color: var(--text-color);
}

.info-section ul {
    list-style-type: none;
    padding: 0;
}

.info-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-color);
}

.info-section ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.tech-tag:hover {
    background-color: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.project-cta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.related-projects {
    margin-top: 80px;
}

.related-projects h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--text-color);
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-project-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.related-project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-project-item:hover img {
    transform: scale(1.1);
}

.related-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-project-item:hover .related-project-overlay {
    opacity: 1;
}

.related-project-overlay h3 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.related-project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

@media (max-width: 992px) {
    .portfolio-detail-main {
        grid-template-columns: 1fr;
    }

    .portfolio-detail-gallery {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-detail {
        padding: 100px 0 60px;
    }

    .portfolio-detail-header h1 {
        font-size: 2rem;
    }

    .project-meta {
        gap: 20px;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-cta {
        flex-direction: column;
    }

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

/* Pricing Section */
.pricing {
    background-color: var(--bg-color);
    padding: 100px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 50px;
}

.toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.discount-badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

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

.slider.round {
    border-radius: 34px;
}

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

.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.pricing-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

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

/* Special Offer Card Styles */
.pricing-card.special-offer {
    border: 2px solid #ff6b6b;
    background: linear-gradient(to bottom, rgba(255, 107, 107, 0.05), rgba(255, 107, 107, 0.1));
    transform: scale(1.05);
    z-index: 2;
    position: relative;
    overflow: visible;
    animation: pulse-border 2s infinite alternate;
}

@keyframes pulse-border {
    0% {
        border-color: #ff6b6b;
    }
    100% {
        border-color: var(--primary-color);
    }
}

.pricing-card.special-offer:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.2);
}

.pricing-card.special-offer .pricing-header h3 {
    color: #ff6b6b;
}

.pricing-card.special-offer .price .amount {
    color: #ff6b6b;
    font-size: 2.8rem;
}

/* Completely replace the landing page price element with a static version */
.pricing-card[data-tier="landing"] .price {
    position: relative;
}

.pricing-card[data-tier="landing"] .price .amount {
    visibility: hidden; /* Hide the original element but keep its space */
}

.pricing-card[data-tier="landing"] .price::before {
    content: "$9.99";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    font-size: 2.8rem;
    font-weight: 700;
}

/* Keep the currency symbol visible */
.pricing-card[data-tier="landing"] .price .currency {
    visibility: hidden;
}

/* Hide the period text for landing page */
.pricing-card[data-tier="landing"] .price .period {
    visibility: hidden;
}

/* Add a static "/starting" text */
.pricing-card[data-tier="landing"] .price::after {
    content: "/starting";
    position: absolute;
    bottom: 15px;
    right: 0;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-features li.feature-note {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem;
}

.pricing-features li.feature-note i {
    color: #ff6b6b;
}

.special-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: #ff6b6b;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.original-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: var(--text-light);
    margin-right: 10px;
}

.discount-label {
    background-color: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.btn-special {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-special:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    color: white;
}

.pricing-card.highlight-card {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(to bottom right, var(--card-bg), rgba(255, 107, 107, 0.05));
}

.pricing-card.highlight-card .pricing-header h3 {
    color: var(--secondary-color);
}

.pricing-card.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.2);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom-left-radius: 15px;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    margin-right: 5px;
    align-self: flex-start;
    margin-top: 5px;
}

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

.custom-quote {
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

.pricing-features {
    padding: 30px;
    flex-grow: 1;
}

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

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.pricing-features li i {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.pricing-features li.feature-disabled {
    color: var(--text-light);
    text-decoration: line-through;
    opacity: 0.7;
}

.pricing-features li.feature-disabled i {
    color: #dc3545;
}

.pricing-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.pricing-note p {
    margin-bottom: 10px;
}

.pricing-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.pricing-note a:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .pricing-container {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

body.dark-mode .contact {
    background-color: var(--bg-dark);
}

.contact-content {
    display: flex;
    gap: 50px;
    max-width: 1140px;
    margin: 0 auto;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .contact-form {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color, #333);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color, #333);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    color: #333;
    transition: border-color 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

/* Form validation styling */
.form-group input.error,
.form-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 1px #e53e3e;
}

body.dark-mode .form-group input.error,
body.dark-mode .form-group textarea.error {
    border-color: #fc8181;
    box-shadow: 0 0 0 1px #fc8181;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 5px;
}

body.dark-mode .error-message {
    color: #fc8181;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.dark-mode .contact-info {
    background-color: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-color, #333);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    color: #0066cc;
    margin-right: 15px;
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color, #333);
}

.info-item p {
    color: var(--text-light, #666);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #0066cc;
    color: white;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    flex: 1;
}

.footer-logo .logo-main {
    color: white;
}

.footer-logo .logo-by {
    color: #ccc;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

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

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    max-width: 1140px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        padding: 0 20px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
        max-width: 100%;
    }

    .hero-image {
        max-width: 100%;
    }

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

    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 80%;
    }

    .about-content {
        flex-direction: column;
    }

    .about-images {
        margin-bottom: 30px;
        max-width: 600px;
        width: 100%;
    }

    .contact-content {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }

    .footer-column {
        margin-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .nav-links {
        background-color: var(--bg-dark);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    .nav-links li {
        margin: 5px 0;
        width: 100%;
    }

    .nav-links a {
        color: var(--text-color);
        font-size: 1.1rem;
        display: block;
        padding: 12px 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        font-weight: 600;
        background-color: rgba(0, 0, 0, 0.02);
        margin: 5px 0;
    }

    .nav-links a:hover {
        background-color: rgba(0, 102, 204, 0.1);
        transform: translateX(5px);
    }

    body.dark-mode .nav-links a {
        color: white;
        background-color: rgba(255, 255, 255, 0.05);
    }

    body.dark-mode .nav-links a:hover {
        background-color: rgba(59, 130, 246, 0.2);
    }

    .hamburger {
        display: block;
    }

    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .portfolio-filter {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .filter-btn {
        width: auto;
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 0 15px;
    }

    .section-header {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
        padding: 0 10px;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .portfolio-item {
        height: 220px;
    }

    .portfolio-overlay h3 {
        font-size: 1.3rem;
    }

    .portfolio-overlay p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .logo-main {
        font-size: 1.5rem;
    }

    .logo-company {
        font-size: 0.8rem;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* Mobile nav controls */
.mobile-nav-controls {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    /* Hide fixed theme toggle on mobile */
    .theme-toggle:not(nav .theme-toggle) {
        display: none;
    }

    nav .theme-toggle {
        position: static;
        width: 40px;
        height: 40px;
        margin-right: 15px;
        font-size: 1rem;
        box-shadow: none;
        background-color: transparent;
        color: var(--text-color);
    }

    body.dark-mode nav .theme-toggle {
        color: white;
    }

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

    .mobile-nav-controls {
        display: flex;
        align-items: center;
    }
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.theme-toggle .fa-sun {
    display: none;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

/* Anti-spam measures */
.website-field {
    display: none; /* Hide honeypot field from real users */
}

.recaptcha-container {
    margin-bottom: 20px;
}

.recaptcha-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

body.dark-mode .recaptcha-note {
    color: #aaa;
}

/* Make reCAPTCHA responsive */
.g-recaptcha {
    transform-origin: left top;
    -webkit-transform-origin: left top;
}

@media screen and (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        -webkit-transform: scale(0.85);
        margin-bottom: -10px;
    }
}

body.dark-mode .theme-toggle .fa-sun {
    display: block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Coding Expertise Section */
.coding-expertise {
    background-color: var(--bg-light);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.coding-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.coding-text {
    animation: fadeInLeft 1s ease-out;
}

.coding-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.coding-text p {
    margin-bottom: 25px;
    color: var(--text-color);
    line-height: 1.7;
}

.coding-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.coding-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    background-color: rgba(var(--primary-rgb), 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
}

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

.coding-visual {
    animation: fadeInRight 1s ease-out;
}

.code-editor {
    background-color: #282a36;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.code-header {
    background-color: #1e1f29;
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.code-dots {
    display: flex;
    gap: 8px;
    margin-right: 15px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.code-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background-color: #27c93f;
}

.code-title {
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.code-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.code-body pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #f8f8f2;
}

.highlight-service {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .coding-content {
        grid-template-columns: 1fr;
    }

    .coding-visual {
        order: -1;
    }

    .code-editor {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .coding-expertise {
        padding: 60px 0;
    }

    .coding-expertise .container {
        padding: 0 20px;
    }

    .coding-features {
        grid-template-columns: 1fr;
    }

    .coding-text h3 {
        font-size: 1.8rem;
        text-align: center;
    }

    .coding-text p {
        text-align: center;
    }

    .coding-visual {
        margin-bottom: 30px;
    }

    .code-editor {
        max-width: 100%;
        overflow-x: auto;
    }

    .code-body {
        padding: 15px;
        max-height: 300px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .code-body pre {
        white-space: pre-wrap;
        word-break: break-word;
        font-size: 0.8rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .feature-text h4 {
        font-size: 1rem;
    }

    .feature-text p {
        font-size: 0.85rem;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .coding-expertise {
        padding: 40px 0;
    }

    .coding-text h3 {
        font-size: 1.5rem;
    }

    .coding-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .code-editor {
        border-radius: 8px;
    }

    .code-header {
        padding: 8px 15px;
    }

    .code-title {
        font-size: 0.8rem;
    }

    .code-dots span {
        width: 10px;
        height: 10px;
    }

    .code-body {
        padding: 10px;
        max-height: 250px;
    }

    .code-body pre {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .coding-feature {
        gap: 10px;
        margin-bottom: 5px;
    }

    /* Dark mode specific mobile styles */
    body.dark-mode .coding-expertise {
        background-color: var(--bg-dark);
    }

    body.dark-mode .coding-text h3,
    body.dark-mode .coding-text p,
    body.dark-mode .feature-text h4 {
        color: white;
    }

    body.dark-mode .feature-text p {
        color: rgba(255, 255, 255, 0.7);
    }

    body.dark-mode .feature-icon {
        background-color: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
    }

    body.dark-mode .code-editor {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    animation: pulse 2s infinite;
}

.floating-contact-btn:hover {
    background-color: #ff5252;
    transform: scale(1.1);
    animation: none;
}

/* Sliding Contact Panel */
.sliding-contact-panel {
    position: fixed;
    top: 0;
    left: -400px; /* Start off-screen */
    width: 400px;
    height: 100vh;
    background-color: var(--card-bg);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.sliding-contact-panel.active {
    left: 0;
}

.panel-toggle {
    position: absolute;
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    z-index: 1001;
}

.panel-toggle-btn {
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.panel-toggle-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.sliding-contact-panel.active .panel-toggle-btn i {
    transform: rotate(180deg);
}

.panel-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 0;
    position: relative;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.dark-mode .panel-content {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(40, 40, 40, 0.95) 100%);
}

.panel-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.panel-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: header-shine 3s infinite;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.panel-header h3 i {
    font-size: 1.5rem;
    animation: rocket-shake 2s infinite;
}

.close-panel {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.close-panel:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.panel-body {
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.panel-form-container {
    width: 100%;
}

.panel-form .form-group {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.panel-form .form-group:hover {
    transform: translateX(5px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 107, 107, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
        transform: scale(1);
    }
}

/* Pop-up Contact Form */
.popup-contact {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup-contact.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    width: 90%;
    max-width: 500px;
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .popup-content {
    background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(40, 40, 40, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-contact.active .popup-content {
    transform: translateY(0);
    opacity: 1;
    animation: popup-glow 2s infinite alternate;
}

@keyframes popup-glow {
    0% {
        box-shadow: 0 20px 50px rgba(0, 102, 204, 0.3);
    }
    100% {
        box-shadow: 0 20px 50px rgba(255, 107, 107, 0.3);
    }
}

.popup-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: header-shine 3s infinite;
}

@keyframes header-shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.popup-header h3 i {
    font-size: 1.5rem;
    animation: rocket-shake 2s infinite;
}

@keyframes rocket-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.close-popup {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.close-popup:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-body {
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.popup-body::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.popup-form .form-group {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.popup-form .form-group:hover {
    transform: translateX(5px);
}

.input-icon {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.input-icon:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.dark-mode .input-icon i {
    color: var(--secondary-color);
}

.input-icon input:focus + i,
.input-icon textarea:focus + i {
    color: var(--secondary-color);
    animation: icon-pulse 1s infinite;
}

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

.textarea-icon i {
    top: 20px;
    transform: none;
}

.input-icon input,
.input-icon textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
}

/* Ensure phone input container has consistent styling */
.input-icon.phone-icon .phone-input-container {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark-mode .input-icon input,
.dark-mode .input-icon textarea {
    background-color: rgba(50, 50, 50, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-mode .input-icon.phone-icon .phone-input-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-icon input:focus,
.input-icon textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    background-color: white;
    color: var(--text-color);
}

.dark-mode .input-icon input:focus,
.dark-mode .input-icon textarea:focus {
    background-color: rgba(60, 60, 60, 1);
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.4);
    color: #ffffff;
}

.service-selection {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dark-mode .service-selection {
    background-color: rgba(40, 40, 40, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-selection:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.dark-mode .service-selection:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-selection p {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-color);
}

.dark-mode .service-selection p {
    color: #ffffff;
}

.service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .service-option {
    background-color: rgba(60, 60, 60, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-option:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

.dark-mode .service-option:hover {
    background-color: rgba(0, 102, 204, 0.3);
}

.service-option input {
    margin-right: 8px;
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.service-option span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.dark-mode .service-option span {
    color: #ffffff;
}

.popup-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 8px;
}

.dark-mode .popup-form button[type="submit"] {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-form button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.dark-mode .popup-form button[type="submit"]:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.textarea-icon i {
    top: 20px;
    transform: none;
}

.popup-form input,
.popup-form textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.popup-form textarea {
    border-radius: 20px;
    resize: none;
    padding-top: 15px;
}

.popup-form input:focus,
.popup-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.service-selection p {
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.service-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.03);
}

.service-option:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.service-option input {
    width: auto;
    margin: 0;
    padding: 0;
}

.service-option span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.btn-glow {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: all 0.8s ease;
    opacity: 0;
}

.btn-glow:hover::after {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .popup-content {
        width: 95%;
    }

    .service-options {
        grid-template-columns: 1fr;
    }

    .popup-header h3,
    .panel-header h3 {
        font-size: 1.1rem;
    }

    .floating-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 20px;
        left: 20px;
    }

    .sliding-contact-panel {
        width: 300px;
        left: -300px;
    }

    .panel-toggle-btn {
        width: 30px;
        height: 60px;
        font-size: 1rem;
    }

    .panel-toggle {
        right: -30px;
    }
}

/* Hero Code Editor */
.hero-code-editor {
    width: 100%;
    max-width: 600px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Fira Code', monospace;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Make sure the hero code editor is visible when its parent is visible */
.animate-on-scroll.visible .hero-code-editor {
    opacity: 1;
    transform: translateY(0);
}

.code-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #252526;
    border-bottom: 1px solid #333;
}

.code-dots {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.code-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background-color: #27c93f;
}

.code-title {
    color: #ddd;
    font-size: 14px;
}

.code-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.code-body pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.code-comment {
    color: #6a9955;
}

.code-keyword {
    color: #569cd6;
}

.code-variable {
    color: #9cdcfe;
}

.code-function {
    color: #dcdcaa;
}

.code-string {
    color: #ce9178;
}

.code-boolean {
    color: #569cd6;
}

.typing-code {
    display: inline-block;
    color: #d4d4d4;
    overflow: hidden;
    border-right: 2px solid #007acc;
    white-space: nowrap;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
    animation-fill-mode: forwards;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #007acc }
}
