:root {
    --primary: #00ff41;
    --secondary: #008f11;
    --accent: #ff00ff;
    --accent2: #00ffff;
    --dark: #0a0a0a;
    --darker: #000000;
    --terminal-bg: #0a0a0a;
    --terminal-text: #00ff41;
    --terminal-border: #008f11;
    --card-bg: rgba(20, 20, 20, 0.95);
    --text-light: #e0e0e0;
    --text-lighter: #ffffff;
    --text-gray: #a0a0a0;
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darker);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.2px;
    padding-top: 60px;
}

h1, h2, h3, h4, h5, .logo, .hacker-font {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.mono-font {
    font-family: 'Share Tech Mono', monospace;
}

.hacker-text {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.accent-text {
    color: var(--accent);
}

.accent2-text {
    color: var(--accent2);
}

/* Enhanced Matrix Background */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

/* ========== MOBILE-FIRST NAVBAR ========== */
.navbar {
    background-color: rgba(0, 0, 0, 0.98) !important;
    border-bottom: 1px solid var(--terminal-border);
    padding: 8px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-height: 60px;
}

.navbar-brand {
    font-size: 1.4rem;
    color: var(--primary) !important;
    font-weight: 900;
    letter-spacing: 1px;
}

.navbar-toggler {
    border: 1px solid var(--primary);
    padding: 6px 10px;
    border-radius: 5px;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 255, 65, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

.navbar-collapse {
    background-color: rgba(0, 0, 0, 0.98);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid var(--terminal-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    max-height: 70vh;
    overflow-y: auto;
}

.nav-link {
    color: var(--text-light) !important;
    margin: 8px 0;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.nav-link:hover, .nav-link:focus, .nav-link.active {
    color: var(--primary) !important;
    background: rgba(0, 255, 65, 0.1);
    transform: translateX(5px);
}

.nav-link i {
    font-size: 1.1rem;
    width: 28px;
    text-align: center;
    margin-right: 10px;
}

/* Hero Section - Mobile First */
.hero-section {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    padding: 40px 0 30px;
}

.profile-img-container {
    width: 160px;
    height: 160px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 
        0 0 30px rgba(0, 255, 65, 0.3),
        0 0 60px rgba(0, 255, 65, 0.1);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(2deg); }
    66% { transform: translateY(-5px) rotate(-2deg); }
}

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

.hero-title {
    font-size: 2rem;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
    text-align: center;
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
    color: var(--text-lighter);
    opacity: 0.9;
    text-align: center;
    padding: 0 10px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

/* Stats Mobile */
.stats-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 20px 15px;
    margin-top: 25px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.stat-item {
    text-align: center;
    padding: 12px 8px;
    transition: transform 0.3s;
}

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

.stat-number {
    font-size: 2rem;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    display: block;
    line-height: 1;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Sections */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.5;
    text-align: center;
    padding: 0 15px;
}

/* Mobile Timeline */
.skills-timeline {
    position: relative;
    margin: 0 auto;
    padding: 30px 0;
}

.skills-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    top: 0;
    bottom: 0;
    left: 16px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.timeline-item {
    padding: 0 0 30px 50px;
    position: relative;
    width: 100%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--darker);
    border-radius: 50%;
    top: 0;
    left: 9px;
    z-index: 1;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
}

.timeline-content {
    padding: 18px 15px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    position: relative;
    transition: all 0.3s;
    height: 100%;
}

.timeline-content:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.1);
}

.timeline-step {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.5);
    z-index: 2;
}

.timeline-title {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

/* Skill Tags Mobile */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.skill-tag {
    background: linear-gradient(45deg, rgba(0, 255, 65, 0.1), rgba(0, 143, 17, 0.1));
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 65, 0.3);
    transition: all 0.3s;
}

.skill-tag:hover {
    background: linear-gradient(45deg, rgba(0, 255, 65, 0.2), rgba(0, 143, 17, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 255, 65, 0.2);
}

/* ========== SERVICES SECTION - MOBILE OPTIMIZED ========== */
.services-container {
    margin-top: 15px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 18px;
    height: 100%;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 
        0 8px 20px rgba(0, 255, 65, 0.15),
        0 0 30px rgba(0, 255, 65, 0.05);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-shadow: 0 0 12px rgba(0, 255, 65, 0.5);
    text-align: center;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
    text-align: center;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: center;
}

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

.service-features li {
    color: var(--text-lighter);
    margin-bottom: 10px;
    font-size: 0.9rem;
    position: relative;
    padding-left: 22px;
    line-height: 1.4;
}

.service-features li:before {
    content: "▸";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1rem;
}

.service-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 255, 65, 0.2);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 65, 0.3);
}

/* Projects Section Mobile */
.projects-container {
    margin-top: 15px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 18px;
    height: 100%;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.1);
}

.project-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-align: center;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
    text-align: center;
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: center;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    justify-content: center;
}

.project-tech span {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

/* Testimonials Mobile */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    margin-top: 15px;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 18px;
    margin: 8px 0;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.1);
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-lighter);
    position: relative;
    padding-left: 15px;
}

.testimonial-text::before {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary);
    position: absolute;
    left: -5px;
    top: -10px;
    opacity: 0.5;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
    background: rgba(0, 255, 65, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stars {
    color: #ffcc00;
    margin-top: 3px;
    font-size: 0.9rem;
}

/* Contact Section Mobile */
.contact-form {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px 18px;
    margin-top: 15px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    -webkit-appearance: none;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.2);
}

.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    color: black;
    padding: 14px 25px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
    width: 100%;
    margin-top: 8px;
    min-height: 48px;
}

.btn-primary-custom:hover, .btn-primary-custom:focus {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.4);
}

/* Contact Info Mobile */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.contact-item {
    text-align: center;
    padding: 18px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 65, 0.1);
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    background: rgba(0, 255, 65, 0.05);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

/* Footer Mobile */
.footer {
    padding: 40px 0 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.95));
    z-index: -1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.social-icon:hover, .social-icon:focus {
    background: var(--primary);
    color: black;
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
}

.copyright {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.85rem;
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile Enhancements */
.mobile-header {
    font-size: 1.6rem;
    text-align: center;
    margin: 25px 0 15px;
}

.mobile-subheader {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-gray);
    padding: 0 15px;
}

.mobile-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 18px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s;
}

.mobile-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.1);
}

.quick-contact {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.quick-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary);
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(0, 255, 65, 0.3);
    min-height: 44px;
    font-size: 0.95rem;
}

.quick-contact a:hover, .quick-contact a:focus {
    background: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.2);
}

/* Guarantee Box Mobile */
.guarantee-box {
    background: var(--card-bg);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.1);
}

.guarantee-icon {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Clickable contact links */
.contact-link {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    word-break: break-word;
}

.contact-link:hover, .contact-link:focus {
    color: var(--accent2);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    text-decoration: underline;
}

/* Content Highlight */
.content-highlight {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    padding: 18px 16px;
    margin: 20px 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
    border: 2px solid black;
}

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

.back-to-top:hover, .back-to-top:focus {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 65, 0.4);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover, 
    .project-card:hover,
    .contact-item:hover,
    .social-icon:hover,
    .nav-link:hover {
        transform: none;
    }
    
    .service-card:active,
    .project-card:active,
    .contact-item:active {
        transform: scale(0.98);
    }
    
    .btn-primary-custom:active {
        transform: translateY(-1px);
    }
}

/* Tablet Optimizations */
@media (min-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-img-container {
        width: 180px;
        height: 180px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn-primary-custom, .btn-outline-light {
        width: auto;
        min-width: 160px;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-item {
        flex: 1;
        min-width: 200px;
    }
}

@media (min-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-collapse {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
        max-height: none;
        overflow: visible;
    }
    
    .nav-link {
        padding: 8px 12px;
        margin: 0 3px;
        border-radius: 5px;
        justify-content: center;
        min-height: auto;
    }
    
    .nav-link i {
        margin-right: 6px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        text-align: left;
    }
    
    .hero-description {
        text-align: left;
        padding: 0;
    }
    
    .profile-img-container {
        width: 220px;
        height: 220px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .skills-timeline::after {
        left: 50%;
    }
    
    .timeline-item {
        padding-left: 50%;
        padding-right: 40px;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 40px;
        padding-right: 50%;
    }
    
    .timeline-item:nth-child(odd)::after {
        left: auto;
        right: -10px;
    }
    
    .timeline-item:nth-child(even)::after {
        left: -10px;
    }
    
    .timeline-item:nth-child(odd) .timeline-step {
        left: auto;
        right: -15px;
    }
    
    .timeline-item:nth-child(even) .timeline-step {
        left: -15px;
    }
    
    .service-card {
        padding: 25px 22px;
    }
    
    .service-title {
        font-size: 1.4rem;
    }
    
    .quick-contact {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .profile-img-container {
        width: 250px;
        height: 250px;
    }
    
    .service-card {
        padding: 28px 25px;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .btn-primary-custom {
        width: auto;
    }
}

/* Print Styles */
@media print {
    .navbar, .back-to-top, .quick-contact, #matrix {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        background: white;
        color: black;
    }
    
    .hacker-text {
        color: black !important;
        text-shadow: none !important;
    }
    
    .service-card, .project-card, .testimonial-card, .contact-form {
        border: 1px solid #ddd;
        box-shadow: none;
        break-inside: avoid;
    }
}

/* Form Label Styles */
.form-label {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-style: italic;
}

/* Enhanced WhatsApp Button Styles */
.whatsapp-btn {
    background: linear-gradient(45deg, #25D366, #128C7E, #075E54) !important;
    color: white !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-btn:hover, .whatsapp-btn:focus {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6) !important;
    background: linear-gradient(45deg, #128C7E, #075E54, #25D366) !important;
}

.whatsapp-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: 0.5s;
}

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

.whatsapp-contact {
    background: linear-gradient(45deg, #25D366, #128C7E, #075E54) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4) !important;
    font-weight: 700 !important;
}

.whatsapp-contact:hover, .whatsapp-contact:focus {
    background: linear-gradient(45deg, #128C7E, #075E54, #25D366) !important;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.6) !important;
}

/* Pulsing animation for WhatsApp icon */
.whatsapp-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Success Alert Styles */
.success-alert {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 25px;
    z-index: 9999;
    text-align: center;
    min-width: 300px;
    max-width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.success-alert.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.success-alert .alert-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    animation: bounce 1s ease infinite;
}

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

.success-alert h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
}

.success-alert p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.success-alert .btn {
    background: var(--primary);
    color: black;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s;
}

.success-alert .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

#successPopup {
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(2,6,23,0.9);
    backdrop-filter: blur(8px);
    z-index:9999;
    align-items:center;
    justify-content:center;
}

#successPopup > div {
    background: linear-gradient(rgba(2,6,23,0.92),rgba(2,6,23,0.92)), url('https://www.transparenttextures.com/patterns/cubes.png');
    padding:34px;
    max-width:420px;
    text-align:center;
    border-radius:18px;
    border:2px solid rgba(0,255,153,0.6);
    box-shadow: 0 0 0 1px rgba(0,255,153,0.2), 0 0 35px rgba(0,255,153,0.45), 0 25px 60px rgba(0,0,0,0.7);
    color:#fff;
    animation:proPop 0.4s cubic-bezier(.16,.84,.44,1);
    position:relative;
    overflow:hidden;
}

#successPopup > div > div {
    position:absolute;
    inset:0;
    border-radius:18px;
    background:linear-gradient(120deg,transparent,rgba(0,255,153,0.35),transparent);
    animation:scan 2.5s linear infinite;
}

#successPopup h3 {
    color:#00ff99;
    font-size:22px;
    margin-bottom:12px;
    position:relative;
}

#successPopup p {
    margin:16px 0 24px;
    color:#cbd5e1;
    line-height:1.65;
    position:relative;
}

#successPopup button {
    padding:13px 30px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,#00ff99,#22c55e);
    color:#020617;
    cursor:pointer;
    font-weight:700;
    font-size:15px;
    box-shadow:0 10px 30px rgba(0,255,153,0.55);
    transition:all 0.25s ease;
    position:relative;
}

@keyframes proPop {
    0% {
        opacity:0;
        transform:scale(0.8) rotateX(10deg);
    }
    100% {
        opacity:1;
        transform:scale(1) rotateX(0);
    }
}

@keyframes scan {
    0% { transform:translateX(-100%); }
    100% { transform:translateX(100%); }
}