/* ==================== CSS Variables ==================== */
:root {
    --primary: #0693e3;
    --primary-dark: #0480b3;
    --secondary: #9b51e0;
    --accent: #f78fb3;
    --dark: #09101e;
    --dark-light: #111827;
    --white: #ffffff;
    --gray: #6b7280;
    --gray-light: #d1d5db;
    --gradient: linear-gradient(135deg, #0693e3, #9b51e0);
    --gradient-hover: linear-gradient(135deg, #0480b3, #7c3aed);
    /* Bootstrap font variables + gradients */
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    --accent-orange: #ff7a00;
}

/* ==================== Base Styles ==================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Verdana, var(--bs-font-sans-serif);
    background: linear-gradient(135deg, #fbfcff 0%, #f0f4ff 100%);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================== Background Shapes ==================== */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* ==================== Gradient Text ==================== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== Navigation ==================== */
.navbar {
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-cta {
    background: var(--primary);
    border: 1px solid transparent;
    color: white !important;
    padding: 0.45rem 1rem; /* slightly reduced */
    font-size: 0.95rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 147, 227, 0.4);
}

/* Navbar brand: use solid color instead of gradient */
.navbar .brand-text {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--primary) !important;
    background-clip: unset !important;
    color: var(--primary) !important;
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 65vh; /* reduce full-viewport height so content sits higher */
    display: flex;
    align-items: flex-start; /* place content nearer the top */
    padding-top: 2rem; /* larger gap under navbar */
    background: linear-gradient(135deg, #fbfcff 0%, #f0f4ff 50%, #fdf2ff 100%);
    position: relative;
    overflow: hidden;
}

/* hero overlay removed */

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.2rem;
    background: rgba(6, 147, 227, 0.1);
    border: 1px solid rgba(6, 147, 227, 0.2);
    border-radius: 40px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 40%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-buttons .btn {
    padding: 0.55rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.hero-buttons .btn-lg {
    padding: 0.55rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 6px;
}

.hero-buttons .btn-primary {
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: 5px;
    color: white;
}

.hero-buttons .btn-primary:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.25);
}

.hero-buttons .btn-outline-dark {
    border: 1px solid var(--dark);
    border-radius: 6px;
}

.hero-buttons .btn-outline-dark:hover {
    background: var(--dark);
    color: white;
    transform: translateY(-3px);
}

/* Clicked / Active state for primary hero CTA (green feedback) */
.hero-buttons .btn-primary:active,
.hero-buttons .btn-primary:focus,
.hero-buttons .btn-primary.clicked {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.18);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease 1s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Hero Visual - Code Window */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease 0.5s both;
}

.hero-visual .hero-banner {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(9,16,30,0.06);
}

@media (max-width: 768px) {
    .hero-visual .hero-banner {
        max-height: 320px;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 1.0rem;
    }
}
/* Hero Visual - Image */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease 0.5s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== Section Styles ==================== */
section {
    position: relative;
}

.section-header {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(6, 147, 227, 0.1);
    border: 1px solid rgba(6, 147, 227, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
}

/* ==================== Services Section ==================== */
.services {
    background: white;
}

.service-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(6, 147, 227, 0.15);
}

.service-hover-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-item:hover .service-hover-line {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 16px;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-features li {
    padding: 0.3rem 1rem;
    background: rgba(6, 147, 227, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
}

/* ==================== Portfolio Section ==================== */
.portfolio {
    background: linear-gradient(135deg, #f0f4ff 0%, #fdf2ff 100%);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #fce7f3 100%);
    font-size: 4rem;
    color: rgba(6, 147, 227, 0.3);
    transition: all 0.4s ease;
}

.portfolio-card:hover .image-placeholder {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 16, 30, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gradient);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.portfolio-overlay h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.overlay-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.overlay-link:hover {
    gap: 1rem;
    color: white;
}

/* ==================== About Section ==================== */
.about {
    background: white;
}

.about-content {
    padding-right: 2rem;
}

.about-description {
    color: var(--gray);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.highlight-text p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Skills Section */
.skills-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    padding: 3rem;
    border-radius: 24px;
}

.skills-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.skill-bar {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.skill-progress {
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

/* ==================== Testimonials Section ==================== */
.testimonials {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
}

.testimonials .section-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 0 1rem;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.quote-icon {
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--gradient);
    transform: scale(1.2);
}

/* ==================== Contact Section ==================== */
.contact {
    background: white;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 40px rgba(6, 147, 227, 0.1);
    border-color: rgba(6, 147, 227, 0.2);
}

.method-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 14px;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.method-content {
    flex: 1;
}

.method-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.method-value {
    font-weight: 600;
}

.method-arrow {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.contact-method:hover .method-arrow {
    transform: translateX(5px);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
    padding: 3rem;
    border-radius: 24px;
}

.form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 147, 227, 0.1);
}

.form-control::placeholder {
    color: var(--gray);
}

.form-message {
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ==================== Footer ==================== */
footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%) !important;
}

footer .brand-text {
    font-size: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* ==================== Scroll to Top Button ==================== */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(6, 147, 227, 0.3);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(6, 147, 227, 0.4);
}

/* ==================== Animations ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Responsive Styles ==================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-visual {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 140px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .service-item {
        padding: 2rem;
    }
    
    .skills-section {
        padding: 2rem;
    }
    
    .contact-form {
 