:root {
    --color-cyan: #29c0d3;
    --color-blue: #1d70b8;
    --color-dark-blue: #0f3f6c;
    --color-footer: #0c1524;
    --color-text: #4a4a4a;
    --color-gray: #888888;
    --color-white: #ffffff;
    --font-primary: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    font-size: 1.15rem;
    /* Increased base font size */
    overflow-x: hidden;
}

/* Background Animation */
@keyframes bgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-blue-bg {
    background: linear-gradient(270deg, #1d70b8, #29c0d3, #0f3f6c, #4dcfff);
    background-size: 800% 800%;
    animation: bgShift 25s ease infinite;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

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

.text-dark-blue {
    color: var(--color-dark-blue);
}

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

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

.text-sm {
    font-size: 0.85rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-5 {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Grid / Flex Utilities */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.col-half {
    width: 100%;
}

@media (min-width: 768px) {
    .col-half {
        width: 50%;
    }
}

.col-third {
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .col-third {
        width: 33.333%;
        padding: 0 1rem;
        margin-bottom: 0;
    }
}

.col {
    flex: 1;
    min-width: 80px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}

.btn-pill {
    border-radius: 50px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.btn-blue {
    background-color: var(--color-blue);
    color: var(--color-white);
}

.btn-blue:hover {
    background-color: var(--color-dark-blue);
}

.btn-gradient {
    background: linear-gradient(135deg, #4dcfff, #1d70b8);
    color: var(--color-white);
    border-radius: 8px;
    padding: 10px 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #1d70b8, #0f3f6c);
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s;
    border-radius: 50%;
    margin: 5px 15px 5px 0;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link.fb {
    background-color: #3b5998;
}

.social-link.ig {
    background-color: #e1306c;
}

.social-link.yt {
    background-color: #ff0000;
}

.social-link.tw {
    background-color: #1da1f2;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 100;
    font-size: 0.85rem;
}

.language-selector .lang-title {
    margin-bottom: 5px;
    color: #333;
    font-weight: 400;
    letter-spacing: 1px;
}

.language-selector .lang-options {
    font-weight: 900;
    color: #999;
    letter-spacing: 2px;
}

.language-selector .lang-options a {
    color: inherit;
}

.language-selector .lang-options a.active {
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(270deg, var(--color-cyan), var(--color-blue), var(--color-dark-blue), #4dcfff);
    background-size: 800% 800%;
    animation: bgShift 25s ease infinite;
    color: var(--color-white);
    padding: 10rem 0 12rem 0;
}

.hero-top-white {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background: var(--color-white);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-top-white {
        height: 200px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-title {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3.5rem;
    letter-spacing: 2.5px;
}

.portfolio-link {
    display: inline-block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    transition: 0.3s;
}

.portfolio-link:hover {
    border-color: var(--color-white);
}

/* Slants */
.slant {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
}

.slant-bottom-white {
    bottom: -1px;
    /* prevent 1px gap */
    background: var(--color-white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.slant-top-white {
    top: -1px;
    background: var(--color-white);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Services */
.services-section {
    padding: 4rem 0;
    overflow: hidden;
    /* Prevent horizontal scroll on side reveals */
}

/* Scroll Reveal Animations */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.mind-canvas-container {
    width: 450px;
    height: 450px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.section-subtitle {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.service-desc {
    max-width: 600px;
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

.service-icons {
    max-width: 600px;
    margin: 0 auto;
}

.service-icons .col {
    color: var(--color-blue);
}

.service-icons i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.service-icons p {
    font-size: 0.8rem;
    font-weight: 700;
}

.tech-icons {
    max-width: 300px;
    color: #c0c0c0;
    font-size: 1.5rem;
}

/* Quote Section */
.quote-section {
    position: relative;
    background: linear-gradient(270deg, var(--color-blue), var(--color-cyan), var(--color-dark-blue), #4dcfff);
    background-size: 800% 800%;
    animation: bgShift 25s ease infinite;
    padding: 7rem 0;
    margin: 5rem 0;
}

.quote-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.quote-content h2 {
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.5;
}

/* Blobs and Images */
.blob-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-blob-container {
    position: relative;
    width: 220px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-blob {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(180deg, var(--color-blue), var(--color-dark-blue));
    border-radius: 110px 110px 10px 10px;
}

.blob {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Static shape matching the webify screenshot more closely */
    border-radius: 65% 35% 45% 55% / 45% 45% 55% 55%;
}

.blob-blue {
    background: #30bcf7;
}

.blob-cyan {
    background: linear-gradient(270deg, var(--color-cyan), var(--color-blue), #4dcfff, var(--color-dark-blue));
    background-size: 800% 800%;
    animation: bgShift 20s ease infinite;
}

.blob-mobile {
    background: linear-gradient(160deg, #55d5fa 0%, #2ba0f5 100%);
    border-radius: 63% 37% 30% 70% / 50% 45% 55% 50%;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    left: 0;
    top: 0;
}

.mobile-img {
    width: 80%;
    height: auto;
    position: absolute;
    top: 5%;
    left: 10%;
    z-index: 2;
    pointer-events: none;
}

.upi-img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

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

@keyframes morph {
    0% {
        border-radius: 65% 35% 45% 55% / 45% 45% 55% 55%;
    }

    50% {
        border-radius: 55% 45% 55% 45% / 55% 55% 45% 45%;
    }

    100% {
        border-radius: 65% 35% 45% 55% / 45% 45% 55% 55%;
    }
}

/* Hello Section */
.hello-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.hello-section h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.hello-section p {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Team / Testimonials */
.card-item h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.card-item p {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

/* Mobile Section */
.mobile-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* Projects Section */
.projects-section {
    background: linear-gradient(270deg, var(--color-blue), var(--color-cyan), var(--color-dark-blue), #4dcfff);
    background-size: 800% 800%;
    animation: bgShift 25s ease infinite;
    padding: 7rem 0;
    position: relative;
    clip-path: polygon(0 50px, 100% 0, 100% calc(100% - 50px), 0 100%);
}

.projects-content {
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.col-project {
    flex: 0 0 200px;
}

.project-placeholder {
    width: 100%;
    height: 350px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--color-gray);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.project-placeholder:hover {
    transform: translateY(-10px) scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-placeholder:active {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* CV Modal */
.cv-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cv-modal.modal-active {
    opacity: 1;
    visibility: visible;
}

.cv-modal-content {
    background: var(--color-white);
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 8px;
    padding: 40px;
    position: relative;
    overflow-y: auto;
    transform: translateY(100vh);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cv-modal.modal-active .cv-modal-content {
    transform: translateY(0);
}

.cv-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
}

.cv-image-container {
    width: 220px;
    height: 220px;
    background: linear-gradient(180deg, #0077ee, #00bfff);
    border-radius: 50px;
    margin: 20px auto 10px auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.cv-profile-img {
    height: 92%;
    width: auto;
    object-fit: contain;
    margin-bottom: -10px;
}

.cv-name {
    text-align: center;
    color: #1b6fc2;
    /* Matches screenshot blue */
    margin-bottom: 2px;
    font-size: 1.5rem;
    font-weight: 900;
}

.cv-title {
    text-align: center;
    color: #111;
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 25px;
}

.cv-desc {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

/* Payments Section */
.payments-section h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* Instagram Feed */
.insta-grid {
    max-width: 600px;
    gap: 0;
}

.insta-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: #ddd;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(270deg, var(--color-blue), var(--color-cyan), var(--color-dark-blue), #4dcfff);
    background-size: 800% 800%;
    animation: bgShift 25s ease infinite;
    padding: 6rem 0 8rem 0;
}

.contact-card {
    background-color: var(--color-white);
    padding: 3rem 4rem;
    max-width: 750px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.contact-form-new .form-group {
    margin-bottom: 1.2rem;
}

.contact-form-new input,
.contact-form-new textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 15px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}

.contact-form-new input:focus,
.contact-form-new textarea:focus {
    border-color: var(--color-cyan);
}

.contact-form-new input::placeholder,
.contact-form-new textarea::placeholder {
    color: #b0b0b0;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #0a0a0a, #000000);
    color: var(--color-white);
    padding: 4rem 0;
    border-top: 3px solid var(--color-cyan);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.footer-logo {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.footer-text {
    font-size: 1rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 8rem 0;
    }

    .logo-title {
        font-size: 3rem;
    }

    .blob-container {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }

    .hello-section {
        flex-direction: column;
        text-align: center;
    }

    .hello-section .col-half.text-left {
        text-align: center;
    }

    .mobile-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .mobile-section .col-half.text-left {
        text-align: center;
        margin-bottom: 2rem;
    }

    .payments-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .payments-section .col-half.text-left {
        text-align: center;
        margin-bottom: 2rem;
    }
}