/* --- VS Code Dark Theme Variables --- */
:root {
    --bg-primary: #121212;      /* Main background - Made darker */
    --bg-secondary: #1e1e1e;    /* Panels, cards, sections - Made darker */
    --bg-tertiary: #2a2a2a;      /* Inputs, button hover - Made darker */
    --border: #3c3c3c;          /* Borders */
    
    --text-primary: #d4d4d4;    /* Main text */
    --text-secondary: #a0a0a0;  /* Descriptions */
    
    --accent-yellow: #ffd700;   /* Highlights, stars */
    --accent-cyan: #ffd700;     /* Logos, titles, links */
    --accent-newcyan: #569cd6;
    --accent-orange: #ffd700;   /* Buttons, stats */
    --accent-green: #108a00;    /* Upwork FAB, success */
}

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

body {
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

.upwork-logo {
    display: none;

}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.nav-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-yellow);
}

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

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

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

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    display: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    min-height: 200px;
}

.highlight {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: var(--accent-yellow);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-orange);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-secondary);
}

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

.btn {
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-full {
    width: 100%;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.code-animation {
    width: 300px;
    height: 200px;
    background: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    top: 150px;
    backdrop-filter: blur(10px);
}

.code-line {
    height: 20px;
    background: linear-gradient(90deg, #ffd700, #ffed4a);
    margin-bottom: 15px;
    border-radius: 10px;
    animation: codeTyping 2s ease-in-out infinite;
}

.code-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.code-line:nth-child(2) { width: 60%; animation-delay: 0.5s; }
.code-line:nth-child(3) { width: 90%; animation-delay: 1s; }
.code-line:nth-child(4) { width: 70%; animation-delay: 1.5s; }

/* Sections */
.services,
.portfolio, 
.testimonials {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

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

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

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

.service-card,
.portfolio-card,
.testimonial-card {
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

/* --- Card Hover Effects for DESKTOP ONLY --- */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background: #ffbf00;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    .btn-secondary:hover {
        background: var(--bg-tertiary);
        color: var(--text-primary);
        transform: translateY(-2px);
        border-color: var(--text-primary);
    }
    .service-card:hover,
    .portfolio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        border-color: var(--accent-cyan);
    }
    .testimonial-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        border-color: var(--accent-cyan);
    }
}

.service-card {
    padding: 2.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-tech li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1rem;
}

.service-tech li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Portfolio Section */
.portfolio-card {
    overflow: hidden;
}

.portfolio-image {
    height: 350px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}

.portfolio-image img,
.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.portfolio-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.portfolio-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.portfolio-content a{
    text-decoration: underline;
    color: var(--accent-newcyan);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-style: italic;
}

.testimonial-author a{
    text-decoration: underline;
    font-style: italic;
    color: var(--accent-newcyan);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.whatsapp-link{
    text-decoration: none;
    color: var(--accent-orange);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.portfolio-slide.active {
    opacity: 1;
}

.portfolio-slide img,
.portfolio-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-next {
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: none;
    background: rgba(30,30,30,0.85);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s ease, transform 0.1s ease;
}
.slide-next:hover {
    background: var(--bg-tertiary);
}
.slide-next:active {
    transform: scale(0.96);
}
.slide-next i {
    font-size: 0.95rem;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.portfolio-tech span {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-status {
    margin-top: 1rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(106, 153, 85, 0.2);
    color: #8cc374;
}

.status-badge.completed {
    background: rgba(86, 156, 214, 0.2);
    color: var(--accent-newcyan);
}

/* Testimonials Section */
.testimonial-card {
    padding: 2rem;
    text-align: center;
}

.testimonial-image {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.client-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 3.2rem;
    overflow: hidden;
    border: 5px solid var(--bg-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.client-avatar img {
    height: 170px;
    width: auto;
}

.stars i {
    color: var(--accent-yellow);
}

.rating-text {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.testimonial-author strong {
    color: var(--text-primary);
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
}

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

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

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--text-secondary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.contact-item i {
    width: 20px;
    color: var(--accent-cyan);
}

.contact-form {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(86, 156, 214, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 10px;
}

.footer-brand p {
    color: var(--text-secondary);
}

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

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Floating Upwork Button */
.upwork-fab {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 2000;
    background: var(--accent-green);
    color: #fff;
    min-width: 54px;
    height: 54px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: background 0.2s, box-shadow 0.2s;
    text-decoration: none;
    pointer-events: auto;
    padding: 0 1.2rem;
    gap: 0.7rem;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
}
.upwork-fab:hover {
    background: #7db164;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
}

/* Unchanged Utility, Animation, and Responsive classes below */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .hero{
        padding-top: 0;
    }
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        opacity: 0.9;
        line-height: 1.7;
        color: var(--text-secondary);
    }
    .mobile-only {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .hero {
        margin-top: 30px;
    }
    .hero-container {
        margin-top: 2rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-stats {
        justify-content: center;
    }
    .stat-number {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent-orange);
    }
    .stat-label {
        font-size: 0.7rem;
        opacity: 0.8;
        color: var(--text-secondary);
    }
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services, .portfolio, .testimonials {
        padding: 50px 0;
    }
    .code-animation {
    width: 300px;
    height: 200px;
    background: rgb(0, 0, 0);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    top: 150px;
    right: 50px;
    backdrop-filter: blur(10px);
}

    /* --- Updated 3D Carousel Styles --- */
    .services-grid, .portfolio-grid, .testimonials-grid {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 600px; /* Increased height */
        padding: 0; 
        overflow: hidden;
        perspective: 1000px;
        transform-style: preserve-3d;
    }

    .service-card, .portfolio-card, .testimonial-card {
        position: absolute;
        width: 95%; /* Increased width */
        max-width: 400px;
        height: auto;
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s;
        opacity: 0;
    }

    .service-card{
        position: absolute;
        width: 95%; /* Increased width */
        max-width: 400px;
        height: 100%;
        transition: transform 0.6s ease, opacity 0.6s ease, z-index 0.6s;
        opacity: 0;
    }

    .services-grid{
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 475px; /* Increased height */
        padding: 0; 
        overflow: hidden;
        perspective: 1000px;
        transform-style: preserve-3d;
    }
    
    .card-center {
        transform: translateX(0) scale(0.95); /* Increased scale */
        opacity: 1;
        z-index: 5;
    }

    .card-right {
        transform: translateX(55%) scale(0.8); /* Adjusted position and scale */
        opacity: 0.5;
        z-index: 4;
        pointer-events: none;
    }

    .card-left {
        transform: translateX(-55%) scale(0.8); /* Adjusted position and scale */
        opacity: 0; 
        z-index: 3;
    }

    .card-far-right,
    .card-far-left {
        transform: translateX(120%) scale(0.6);
        opacity: 0;
        z-index: 1;
    }

    .card-far-left {
        transform: translateX(-120%) scale(0.6);
    }

    .scroll-arrows {
        display: none;
        position: relative;
        top: -19px;
        left: -298px;
        width: auto;
        /* display: flex; */
        justify-content: flex-end;
        gap: 0.5rem;
        z-index: 10;
    }

    .scroll-arrows .arrow {
        display: none;
        pointer-events: all;
        background: var(--bg-tertiary);
        color: var(--text-primary);
        border-radius: 50%;
        height: 42px; /* Increased size */
        width: 42px;  /* Increased size */
        /* display: flex; */
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }
}

@media (max-width: 480px) {
    .hero{
        padding-top: 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .service-card, .portfolio-card, .testimonial-card {
        padding: 1.5rem;
    }
    .portfolio-card { padding: 0; }
    .portfolio-content { padding: 1.5rem; }
}


@media (max-width: 600px) {
    .hero{
        padding-top:0;
    }
    .upwork-fab {
        min-width: 44px;
        width: 1px;
        height: 1px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
        display: flex;
        background: none;
    }
    .upwork-fab:hover {
        background: none;
        box-shadow: none;
    }
    .upwork-fab-text {
        display: none !important;
    }
    .upwork-fab i.fab.fa-upwork {
        font-size: 2rem !important;
        color: #fff !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        line-height: 1 !important;
    }

    .upwork-logo {
        display: inline;
        height: 50px;
        width: auto;
        position: relative;
        right: 20px;
        bottom: 15px;
    }
}

/* Animations & Other Utility classes */
@keyframes slideInLeft{from{opacity:0;transform:translateX(-50px)}to{opacity:1;transform:translateX(0)}}
@keyframes slideInRight{from{opacity:0;transform:translateX(50px)}to{opacity:1;transform:translateX(0)}}
@keyframes codeTyping{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes fadeInUp{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
html{scroll-behavior:smooth}
.loading{opacity:0;animation:fadeInUp .8s ease-out forwards}
.animate-on-scroll{opacity:0;transform:translateY(30px);transition:all .6s ease-out}
.animate-on-scroll.animate{opacity:1;transform:translateY(0)}
.text-center{text-align:center}
.text-left{text-align:left}
.text-right{text-align:right}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
