/* GLOBAL: Basic reset */
html, body {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  position: relative;
  min-height: 100%;
}

/* Remove the page-wrapper approach - it conflicts with hamburger menu */

* {
    box-sizing: border-box;
}

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

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

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tagline {
    font-family: 'Roboto Condensed', 'Inter', Arial, sans-serif;
    font-size: 0.85rem;
    color: #764ba2;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-top: 0.1rem;
    text-transform: uppercase;
    opacity: 0.7;
    font-style: italic;
    display: block;
    text-align: left;
}

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

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

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100%;
    padding: 100px 0 50px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

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

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

.hero-subtitle {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #333;
}

.hero-tagline {
    font-size: 1.1rem;
    color: #764ba2;
    letter-spacing: 0.2em;
    font-weight: 500;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    opacity: 0.85;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

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

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

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

.image-container {
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
    opacity: 0.1;
}

.floating-card {
    position: absolute;
    bottom: 20px;
    right: 10px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

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

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

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Contact section subtitle - white color */
.contact .section-subtitle {
    color: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8rem 0;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23000" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

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

.about-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.skill-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.skill-item i {
    font-size: 1.2rem;
    color: #667eea;
}

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

.skill-tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    font-size: 0.98rem;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    max-width: 260px;
    min-width: 160px;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}

.skill-tooltip.show {
    opacity: 1;
    pointer-events: auto;
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.workspace-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.workspace-image:hover {
    transform: scale(1.02);
}

/* Services Section */
.services {
    background: white;
    padding: 6rem 0;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    pointer-events: none;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.service-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: relative;
}

.service-card.featured .service-title,
.service-card.featured .service-price,
.service-card.featured .service-description,
.service-card.featured .service-features li,
.service-card.featured .service-details {
    color: #fff;
}

.service-card.featured .service-icon {
    background: rgba(255,255,255,0.18);
}

.service-card.featured .service-icon i {
    color: white;
    font-size: 1.5rem;
}

.service-card.featured .service-badge .badge {
    background: #fff;
    color: #764ba2;
}

.service-card.featured .service-features li::before {
    color: #fff;
}

.service-card.featured .service-details {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.service-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.service-card.featured .service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: white;
}

.service-price {
    font-size: 1.1rem;
    color: #764ba2;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.service-details {
    margin-top: 1rem;
    font-size: 0.98rem;
    color: #555;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    line-height: 1.5;
}

.service-card.bundle {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    border: 2px solid #764ba2;
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.08);
    position: relative;
}

.service-card.bundle .service-icon {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.service-card.bundle .service-icon i {
    color: white;
    font-size: 1.5rem;
}

.bundle-save {
    color: #388e3c;
    font-size: 0.95rem;
    font-weight: 700;
    margin-left: 0.3rem;
}

.badge {
    background: #fff;
    color: #764ba2;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 12px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    white-space: nowrap;
}

.services-notes {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 1.08rem;
    color: #333;
}

.services-notes .free-consult {
    color: #667eea;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    position: relative;
}

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

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

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #e9ecef;
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

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

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.portfolio-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: block;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-item.overlay-visible .portfolio-overlay {
    opacity: 1;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.portfolio-content {
    text-align: center;
    color: white;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-category {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.portfolio-link:hover {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0;
    position: relative;
    color: white;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="2" fill="%23fff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
    pointer-events: none;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.method-label {
    display: block;
    font-size: 0.9rem;
    color: #111;
}

.method-value {
    display: block;
    font-weight: 600;
    color: #111;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

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

/* Form validation and loading states */
.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

.form-group input:focus.error,
.form-group textarea:focus.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.error-message {
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.success-message {
    margin-top: 1rem;
}

.success-message div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Mobile Menu Styles */
.nav-menu {
    transition: all 0.3s ease;
}

.nav-link.active {
    color: #667eea;
}

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

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Form Focus Effects */
.form-group.focused label {
    color: #667eea;
    transform: translateY(-20px) scale(0.85);
}

/* Loading Animation */
body {
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

/* 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);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    margin: 20px;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 2rem;
    line-height: 1.6;
    color: #333;
}

.modal-body h3 {
    color: #667eea;
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body a {
    color: #667eea;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Legal Links in Footer */
.legal-link {
    color: #999 !important;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #667eea !important;
}

/* Back to Top Button Responsive */
@media (max-width: 768px) {
    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 20px auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }

    /* Prevent horizontal scrolling on mobile */
    html, body {
        width: 100%;
        max-width: 100%; /* was 100vw */
    }

    .container, .nav-container, .hero-container {
        width: 100%;
        max-width: 100%; /* was 100vw */
        padding-left: 20px;
        padding-right: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure all sections don't overflow */
    section {
        width: 100%;
        max-width: 100%; /* was 100vw */
}

    /* Fix any potential overflow issues with grids */
    .hero-content, .about-content, .services-grid, .portfolio-grid, .contact-content {
        width: 100%;
        max-width: 100%; /* was 100vw */
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ensure hero section has consistent spacing */
    .hero {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Footer Styles - Consolidated Desktop, Stacked Mobile, Restored Colors */
.footer {
    background: #222;
    color: #fff;
    padding: 2rem 0 1rem 0;
    font-size: 1rem;
}
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.footer-line {
    width: 100%;
    text-align: center;
    margin: 0.2rem 0;
}
.footer-line.nav-links,
.footer-line.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-line.nav-links a,
.footer-line.legal-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.footer-line.nav-links a:hover,
.footer-line.legal-links a:hover {
    color: #a78bfa;
}
.footer-line.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}
@media (max-width: 700px) {
    .footer-line.legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 700px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    .footer-line {
        width: auto;
        text-align: left;
        margin: 0;
    }
    .footer-line.copyright {
        flex: 1 1 30%;
        text-align: left;
    }
    .footer-line.nav-links {
        flex: 1 1 40%;
        justify-content: center;
    }
    .footer-line.legal-links {
        flex: 1 1 30%;
        justify-content: flex-end;
    }
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .footer-line {
        width: 100%;
        text-align: center;
        margin: 0.2rem 0;
    }
    .footer-line.nav-links,
    .footer-line.legal-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Safari scroll fix - prevent address bar blocking */
    html {
        height: 100%;
    }
    
    body {
        position: relative;
        min-height: 100%;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        height: auto;
        max-height: 400px;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        display: block;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background-color: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .nav-toggle .bar {
        width: 25px;
        height: 3px;
        background: #333;
        margin: 3px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

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

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

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

    .hero-stats {
        justify-content: center;
    }
    
    .floating-card {
        bottom: 10px;
        right: -5px;
        transform: scale(0.95);
    }

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

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

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

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

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

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

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .floating-card {
        bottom: -10px;
        right: -20px;
        transform: scale(0.9);
    }

    .portfolio-filters {
        flex-wrap: wrap;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    /* Additional mobile fixes for horizontal scrolling */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .service-card, .portfolio-item {
        width: 100%;
        max-width: 100%;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .form-group input, .form-group textarea {
        width: 100%;
        max-width: 100%;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Roboto+Condensed:wght@400;700&display=swap');

.service-included {
    color: #764ba2;
    font-weight: 600;
    margin-right: 0.3rem;
}

.carousel-section {
    padding: 5rem 0 4rem 0;
    background: #fff;
}

.carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.08);
    border-radius: 18px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    overflow: hidden;
    height: 170px;
}

.carousel {
    display: flex;
    position: relative;
    transition: transform 0.6s cubic-bezier(.77,0,.18,1);
    will-change: transform;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    transition: opacity 1s ease-in-out;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 170px;
    background: #e9ecef;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(102, 126, 234, 0.10);
    object-fit: contain;
    background: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(102, 126, 234, 0.85);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.12);
    opacity: 0.85;
}
.carousel-arrow.left { left: 18px; }
.carousel-arrow.right { right: 18px; }
.carousel-arrow:hover { background: #764ba2; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.2rem 0 1rem 0;
}

.carousel-dots button {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: none;
    background: #c3cfe2;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    outline: none;
}
.carousel-dots button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .carousel-wrapper { max-width: 100%; }
    .carousel-slide { height: 110px; }
    .carousel-slide img { max-height: 90px; }
}
@media (max-width: 600px) {
    .carousel-section { padding: 2.5rem 0 2rem 0; }
    .carousel-slide { height: 70px; }
    .carousel-slide img { max-height: 60px; }
    .carousel-arrow { width: 34px; height: 34px; font-size: 1.3rem; }
}

.consult-link {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.4em 1.1em;
    border-radius: 22px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    display: inline-block;
    margin-top: 0.2em;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.10);
}
.consult-link:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
}

/* Demo Modal Styles */
.demo-modal .modal-content {
    max-width: 98%;
    width: 98%;
    height: 95vh;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    margin: 2.5vh auto;
}

.demo-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.demo-container {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#demo-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    flex: 1 1 auto;
    min-height: 0;
}

.demo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    margin-top: 0;
    background: #fff;
    flex-shrink: 0;
}

.demo-actions h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

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

.demo-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    min-width: 140px;
    justify-content: center;
}

/* Loading state for iframe */
.demo-container::before {
    content: 'Loading demo...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 1.1rem;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.demo-container.loaded::before {
    opacity: 0;
}

/* Responsive adjustments for demo modal */
@media (max-width: 768px) {
    .demo-modal .modal-content {
        width: 100%; /* was 100vw */
        height: auto;
        max-width: 100%; /* was 100vw */
        max-height: 90%;
        margin: 0;
        border-radius: 0;
    }
    .demo-modal-content {
        border-radius: 0;
    }
    .demo-container {
        border-radius: 0;
    }
    .demo-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }
    .demo-actions h3 {
        font-size: 1rem;
    }
    .demo-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    .demo-actions .btn {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    .fa-solid, .fa-solid[class^="fa-"] {
        font-family: "Font Awesome 6 Free";
        font-weight: 900 !important;
      }
}

/* Mobile touch improvements for portfolio cards */
@media (max-width: 768px) {
    .portfolio-item {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        position: relative;
        z-index: 1;
    }
    
    .portfolio-item:active {
        transform: scale(0.95) !important;
        transition: transform 0.1s ease !important;
    }
    
    .portfolio-overlay {
        opacity: 0;
        transition: opacity 0.15s ease;
        pointer-events: none;
    }
    
    .portfolio-item:active .portfolio-overlay {
        opacity: 1;
        pointer-events: auto;
    }
    
    .portfolio-links {
        pointer-events: auto;
        z-index: 10;
    }
    
    .portfolio-link {
        min-width: 50px;
        min-height: 50px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        z-index: 15;
    }
    
    .portfolio-link:active {
        transform: scale(1.2) !important;
        background: white !important;
        color: #667eea !important;
    }
    
    /* Ensure the entire card is clickable */
    .portfolio-item * {
        pointer-events: none;
    }
    
    .portfolio-item .portfolio-links,
    .portfolio-item .portfolio-links * {
        pointer-events: auto;
      }
}

