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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #111827;
    overflow-x: hidden;
}

/* Color Palette Variables - Guides Theme */
:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-light: #1e293b;
    --bg-white: #0f172a;
    --bg-card: #1e293b;
    --bg-section: #0f172a;
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --border-color: #334155;
    --bg-input: #1e293b;
}

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

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Button Styles with Animations */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    transition: width 0.4s ease;
    z-index: -1;
}

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

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.3);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid #333;
}

.navbar {
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.logo i {
    color: var(--primary-color);
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.cta-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Enhanced Hero Section with Animations */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    animation: fadeInLeft 1s ease 0.2s both;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    animation: blink 1s infinite;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
    justify-content: center;
}
.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.8s both;
    justify-content: center;
}

.stat {
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
    counter-reset: stat-counter;
}

.stat h3.animate-counter {
    animation: pulse 0.5s ease;
}

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

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

.profile-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    text-align: center;
    transform: rotate(5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    animation: fadeInRight 1s ease 0.4s both;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-color), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-card);
    border-radius: 18px;
    z-index: 1;
}

.profile-card > * {
    position: relative;
    z-index: 2;
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 30px 60px -12px rgba(139, 92, 246, 0.3);
}

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

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

.profile-avatar {
    margin-bottom: 20px;
}

.profile-avatar i {
    font-size: 80px;
    color: var(--primary-color);
}

.profile-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.profile-card > p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--primary-color);
}

.contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.contact-info a i {
    color: #0077b5;
}

.contact-info a:hover i {
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-section);
}

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

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

.about-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

.skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

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

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: 20px;
}

.experience-badge {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.experience-badge h4 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-section);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(139, 92, 246, 0.3);
    border-color: var(--primary-color);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 1s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.service-card:hover .service-btn {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

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

.service-icon i {
    font-size: 32px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Staggered animation delays 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;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

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

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

.service-btn {
    background: transparent;
    color: var(--primary-color);
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: var(--bg-section);
}

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

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--primary-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

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

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(251, 191, 36, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.2);
    border-left-width: 6px;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover .client-avatar {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 1s ease;
}

.testimonial-card:hover .rating i {
    animation: bounce-in 0.5s ease;
}

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

.testimonial-card:nth-child(2) {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.5s;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.client-avatar i {
    font-size: 24px;
    color: white;
}

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

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

.rating {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
}

.rating i {
    color: var(--secondary-color);
    font-size: 16px;
}

.testimonial-card > p {
    color: var(--text-light);
    line-height: 1.6;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-section);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item.animate-on-scroll.animated {
    opacity: 1;
    transform: translateX(0);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    animation: pulse 0.5s ease;
}

/* Staggered animation delays for contact items */
.contact-item:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-item:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-item:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-item:nth-child(4) {
    animation-delay: 0.4s;
}

.contact-item:nth-child(5) {
    animation-delay: 0.5s;
}

.contact-item:nth-child(6) {
    animation-delay: 0.6s;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 24px;
    color: white;
}

.contact-details h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
}

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

.contact-details a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02) 0%, rgba(251, 191, 36, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-form:hover::before {
    opacity: 1;
}

.contact-form > * {
    position: relative;
    z-index: 1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    background: var(--bg-input);
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.form-group input:focus + ::after,
.form-group select:focus + ::after,
.form-group textarea:focus + ::after {
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    background: #0f172a !important;
    border: 2px solid #374151;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid #333;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section i {
    color: var(--primary-color);
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-section a i.fab.fa-linkedin {
    color: #0077b5;
}

.footer-section a:hover i.fab.fa-linkedin {
    color: var(--primary-color);
}

.footer-section a i.fab.fa-instagram {
    color: #e4405f;
}

.footer-section a:hover i.fab.fa-instagram {
    color: var(--primary-color);
}

.footer-section a i.fab.fa-facebook {
    color: #1877f2;
}

.footer-section a:hover i.fab.fa-facebook {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #d1d5db;
    background: #050505;
    margin: 0 -20px -20px -20px;
    padding: 20px;
}

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

.modal-content {
    background-color: var(--bg-card);
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
}

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

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal-header {
    padding: 25px 30px 15px;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.modal-header p {
    opacity: 0.9;
}

.popup-form {
    padding: 25px 30px 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        justify-content: center;
        align-items: center;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto 40px auto;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .stat h3 {
        font-size: 1.5rem;
    }
    
    .profile-card {
        max-width: 250px;
        padding: 1.2rem;
        margin: 0 auto;
    }
    
    .profile-card img {
        width: 100px;
        height: 100px;
    }
    
    .profile-card h3 {
        font-size: 1.1rem;
    }
    
    .profile-card > p {
        font-size: 0.8rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .skills {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card > p {
        font-size: 0.85rem;
    }
    
    .client-info h4 {
        font-size: 0.9rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-details h4 {
        font-size: 0.9rem;
    }
    
    .contact-details p {
        font-size: 0.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 98%;
        max-height: 85vh;
    }
    
    .popup-form {
        padding: 15px 20px 20px;
    }
    
    .modal-header {
        padding: 20px 15px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

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

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

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.fade-in-scale {
    animation: fadeInScale 0.8s ease forwards;
}

.slide-in-top {
    animation: slideInFromTop 0.8s ease forwards;
}

.bounce-in {
    animation: bounceIn 1s ease forwards;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

.slide-in-bottom {
    animation: slideInBottom 0.8s ease forwards;
}

.rotate-in {
    animation: rotateIn 0.8s ease forwards;
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
}

/* Initial states for animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Hover Effects */
.service-card,
.testimonial-card,
.contact-item {
    transition: all 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-section);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Float Animation Class */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation Class */
.pulse-animation {
    animation: pulse 1s ease-in-out infinite;
}

/* Interactive Card Transitions */
.service-card,
.testimonial-card,
.profile-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Enhanced Button Transitions */
.btn-primary,
.btn-secondary,
.service-btn,
.cta-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Typewriter Cursor Effect */
.hero-content h1 {
    animation: blink 1s infinite;
}

/* Section Reveal Animation */
section {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced Hover States */
.service-card:hover,
.testimonial-card:hover {
    transform: perspective(1000px) rotateX(0) rotateY(0) scale(1.02) !important;
}

/* Magnetic Button Effect */
.btn-primary:hover,
.btn-secondary:hover,
.service-btn:hover {
    transform: translate(0, 0) scale(1.02);
    transition: transform 0.1s ease;
}

/* Ripple Effect Container */
.btn-primary,
.btn-secondary,
.service-btn,
.cta-btn {
    position: relative;
    overflow: hidden;
}

/* Enhanced Glow Effects */
.service-card:hover::after,
.testimonial-card:hover::before {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition-property: transform, opacity, box-shadow, border-color, background-color;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Performance Optimization */
.service-card,
.testimonial-card,
.profile-card,
.btn-primary,
.btn-secondary {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn-primary,
    .btn-secondary,
    .cta-btn,
    .service-btn {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Reduce animations on mobile for better performance */
    .service-card:hover,
    .testimonial-card:hover,
    .profile-card:hover {
        transform: none !important;
    }
    
    /* Disable complex animations on mobile */
    .service-card::after,
    .testimonial-card::before,
    .profile-card::before {
        display: none;
    }
    
    /* Simplified hover effects for mobile */
    .service-card:active,
    .testimonial-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Better text readability */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
    }
    
    /* Smooth scrolling optimization */
    html {
        scroll-behavior: auto;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Extra optimizations for very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 5px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}