html, body {
    background-color: #0b0b0b !important;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0b0b0b;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 20px;
}


nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    background: #1a1a1a;
    padding: 15px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    gap: 25px;
}

nav a {
    color: #6c02c4;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #6c02c4;
    transform: scaleX(0);
    transform-origin: bottom center;
    transition: transform 0.3s ease-out;
}

nav a:hover {
    color: #4eceee;
}

nav a:hover::after {
    transform: scaleX(1);
}
nav a.nav-button::after {
    display: none;
}

.nav-button {
    background-color: #6c02c4 !important;
    color: white !important;               
    padding: 10px 20px !important;
    border-radius: 8px !important;
    font-size: 0.9rem;
}

.nav-button:hover {
    background-color: #8a2be2 !important;
    box-shadow: 0 0 15px rgba(108, 2, 196, 0.5);
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 5px;
    color: #fff;
}

h2 {
    font-size: 1.2rem;
    text-align: center;
    color: #aaa;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-box {
    background: #161616;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #6c02c4;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.service-card {
    background: #111;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #222;
    transition: 0.3s;
    text-align: left; 
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-icon {
    font-size: 1.8rem;
}

.service-card h3 {
    margin: 0;
    color: #fff;
    font-size: 1.4rem;
}

.service-card p {
    color: #aaa;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 280px;
}

.service-card:hover {
    border-color: #6c02c4;
    transform: translateY(-5px);
}

.contact-section {
    padding: 100px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-container {
    background: #111;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222;
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6c02c4;
    outline: none;
}

.cta-button {
    display: inline-block;
    background: #6c02c4;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    border: none;
    cursor: pointer;
}

/*About me */
.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 25px;
    color: #fff;
    font-size: 2.5rem;
}

.about-text p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 1.1rem;
}

.stat-box {
    background: #111;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #222;
    margin-bottom: 20px;
}

.stat-box h3 {
    color: #6c02c4;
    margin: 10px 0;
    text-align: left;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

/*The custom advantage*/
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}


@media (max-width: 900px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}
.stat-box {
    background: #111;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #222;
    transition: 0.3s;
}

.stat-box:hover {
    border-color: #6c02c4;
    transform: translateY(-5px);
}
html {
    scroll-behavior: smooth;
}
/* --- Final CTA Optimization --- */
.final-cta {
    text-align: center;
    padding: 100px 20px;
    background: #0a0a0a; 
    border-top: 1px solid #222;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.final-cta p {
    color: #aaa;
    margin-bottom: 40px;
    font-size: 1.2rem;
}

.cta-button-large {
    background-color: #6c02c4;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    display: inline-block;
}

.cta-button-large:hover {
    background-color: #8a2be2; 
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 2, 196, 0.3);
}
/* --- Footer Styling --- */
.main-footer {
    background-color: #050505; 
    padding: 60px 20px 20px;
    border-top: 1px solid #222;
    color: #fff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-info h3, .footer-contact h4 {
    color: #6c02c4; 
    margin-bottom: 20px;
}
.footer-links h4 {
    color: #6c02c4; 
    margin-bottom: 15px;
    text-align: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #4eceee; 
}

.footer-bottom {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
/* --- Social Links Styling --- */
.social-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the whole block on the page */
    text-align: left;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.social-icon {
    font-size: 1.2rem;
    filter: grayscale(100%);
    transition: 0.3s;
}

.social-links a:hover {
    color: #4eceee;
}

.social-links a:hover .social-icon {
    filter: grayscale(0%);
    transform: scale(1.1);
}
.footer-contact p {
    margin: 5px 0; 
}

.social-links {
    margin-top: 10px; 
    display: flex;
    flex-direction: column; 
    gap: 8px; 
}
.mail-links a {
    color: #ffffff !important;
    text-decoration: none; 
    transition: 0.3s; 
}

.mail-links a:hover {
    color: #4eceee !important; 
}
/* --- Location Page Styling --- */
.location-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.location-text {
    flex: 1;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.location-item strong {
    color: #6c02c4; 
    display: block;
}

.map-box {
    flex: 1.5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Responsive stack for mobile */
@media (max-width: 900px) {
    .location-wrapper {
        flex-direction: column;
        text-align: center;
    }
}
/* --- Portfolio Page Styling --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    background: #111; 
    border: 1px solid #222;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-10px); 
    border-color: #6c02c4; 
    box-shadow: 0 10px 30px rgba(108, 2, 196, 0.2);
}

.portfolio-card h3 {
    color: #6c02c4;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.portfolio-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tech-tag {
    display: inline-block;
    background: rgba(108, 2, 196, 0.1);
    color: #6c02c4;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    border: 1px solid rgba(108, 2, 196, 0.3);
}

.view-project-link {
    display: inline-block;
    margin-top: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #6c02c4; 
}
/* --- Case Study Page Layout --- */
.case-study-hero {
    padding: 120px 5% 60px;
    text-align: center;
    background: linear-gradient(to bottom, #0a0a0a, #000); 
}

.case-study-hero h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.case-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #6c02c4; 
    font-weight: 600;
    margin-bottom: 40px;
}

.case-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 100px;
    line-height: 1.8;
    color: #cccccc;
}

.case-content h3 {
    color: #ffffff;
    margin: 40px 0 20px;
    font-size: 1.8rem;
    border-left: 4px solid #6c02c4; 
    padding-left: 15px;
}

.case-image-full {
    width: 100%;
    border-radius: 15px;
    margin: 40px 0;
    border: 1px solid #333;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.copy-icon {
    transition: transform 0.2s ease;
    display: inline-block;
}

.social-link:hover .copy-icon {
    transform: scale(1.2); 
    opacity: 1;
    color: #6c02c4; 
}
.portfolio-card {
    transition: transform 0.1s ease-out; 
    transform-style: preserve-3d; 
    will-change: transform; 
}


.portfolio-card:hover {
    box-shadow: 0 20px 40px rgba(108, 2, 196, 0.3); 
}
/* --- Desktop vs Mobile Switch --- */
.hamburger {
    display: none; /* Hide on desktop */
}

@media (max-width: 768px) {
    .nav-links { display: none !important; } /* Hide cluttered links */
    
    .hamburger {
        display: flex; /* Show 3 lines */
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
    
    .hamburger span {
        width: 25px;
        height: 2px;
        background: white;
        transition: 0.3s;
    }
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px); 
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    transform: translateY(0); 
}

.mobile-nav-content a {
    display: block;
    color: white;
    font-size: 32px;
    text-decoration: none;
    margin: 20px 0;
    font-weight: 600;
}
@media (max-width: 768px) {
    #desktop-nav, .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-nav-content a {
    color: white;
    font-size: 2.5rem;
    text-decoration: none;
    margin: 20px 0;
    font-weight: bold;
}
.location-wrapper {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    align-items: stretch;
    gap: 60px;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.location-text {
    flex: 1; 
    max-width: 550px;
}

.map-box {
    flex: 1;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
}


@media screen and (max-width: 768px) {
    .location-wrapper {
        flex-direction: column !important;
        align-items: center;
        margin: 40px auto;
    }

    .location-text, .map-box {
        width: 100% !important;
        max-width: 100%;
        flex: none !important;
    }

    .map-box {
        height: 350px !important;
    }
}


.map-box iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}
.location-text {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.location-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}