:root {
    --primary-color: #007bbb; /* Dark blue */
    --secondary-color: #61dafb; /* Light blue */
    --background-color: #0e1a2a; /* Dark background */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: #fff;
    scroll-behavior: smooth;
}

header {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 40px 20px 20px;
    animation: fadeIn 2s ease-in-out;
}

header h1 {
    color: #fff;
    margin-bottom: 10px;
    font-size: calc(2rem + 2vw); /* Increased size for better visibility */
}

header p {
    color: #f0f0f0;
    margin: 0;
    font-size: calc(0.8rem + 0.5vw);
}

nav {
    background-color: var(--background-color);
    padding: 10px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideDown 1s ease-in-out;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: var(--primary-color);
}

section {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #1e2a38;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    animation: fadeInUp 1s ease-in-out;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

h1, h2, p {
    color: var(--secondary-color);
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

li {
    display: inline;
    margin-right: 10px;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    text-decoration: underline;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    margin: 0 10px;
    color: var(--secondary-color);
    font-size: 24px;
}

.social-icons a:hover {
    color: #005a85;
}

.dropdown {
    float: right;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.hero-section {
    padding: 20px 10px; /* Reduce the padding */
    background-color: #0e1a2a; /* Dark background color */
    overflow: hidden;
}

.hero-content {
    max-width: 800px; /* Adjust the max width */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column-reverse; /* Change flex direction for better mobile view */
    text-align: center;
    animation: fadeInUp 1s ease-in-out;
}

.hero-text {
    flex: 1;
    padding: 10px; /* Reduce padding */
}

.hero-text h1 {
    font-size: 2em; /* Adjust font size */
    margin-bottom: 10px;
    color: #00bcd4;
}

.hero-text p {
    font-size: 1em; /* Adjust font size */
    margin-bottom: 10px;
    color: #fff;
}

.get-in-touch {
    background-color: #00bcd4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.get-in-touch:hover {
    background-color: #007bbb;
}

.hero-image {
    width: 150px; /* Adjust width */
    height: 150px; /* Adjust height */
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-image: url('Images/WhatsApp Image 2023-08-29 at 14.10.50.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 20px; /* Add margin for spacing */
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-top: 20px;
    }
    
    .hero-image {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
}

.hero-section h1 {
    font-size: calc(1.5rem + 2vw); /* Adjust font size */
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #333;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #005a85;
    color: #fff;
}

.info-section {
    padding: 60px 20px;
    text-align: center;
}

.info-section h2 {
    font-size: calc(1.5rem + 1vw);
    margin-bottom: 20px;
}

.info-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.card {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
}

.icon {
    width: 48px;
    height: 48px;
    fill: var(--secondary-color);
    vertical-align: middle;
    margin-right: 10px;
}

.scroll-snap {
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
}

.scroll-snap > section {
    scroll-snap-align: start;
    min-height: 100vh;
}

@media (prefers-reduced-motion: no-preference) {
    .card {
        animation: scale-up 0.5s ease;
    }

    @keyframes scale-up {
        0% {
            transform: scale(0.8);
        }
        100% {
            transform: scale(1);
        }
    }
}

.left-animation {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 20px;
    background: linear-gradient(
        to bottom,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--primary-color) 100%
    );
    animation: leftAnimation 5s infinite linear;
}

.right-animation {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 20px;
    background: linear-gradient(
        to top,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--primary-color) 100%
    );
    animation: rightAnimation 5s infinite linear;
}

@keyframes leftAnimation {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes rightAnimation {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(-100%);
    }
}

.scene {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.robot {
    width: 120px;
    height: 60px;
    position: fixed;
    bottom: 20px;
    left: 0;
    animation: moveRobot 10s linear infinite;
}

.car-body {
    width: 90px;
    height: 36px;
    background-color: var(--primary-color);
    border-radius: 6px;
    margin: 0 auto;
    position: relative;
    top: 12px;
}

.tire {
    width: 24px;
    height: 24px;
    background-color: black;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    animation: rotateTire 1s linear infinite;
}

.tire-left {
    left: 12px;
}

.tire-right {
    right: 12px;
}

.robotic-arm {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%) scale(0.6);
    animation: moveRoboticArm 2s infinite alternate;
}

.arm-base {
    width: 18px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.arm-joint {
    width: 6px;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto;
}

.arm-segment {
    width: 36px;
    height: 9px;
    background-color: var(--primary-color);
    border-radius: 3px;
    margin: 0 auto;
    transform-origin: left center;
    animation: rotateArmSegment 2s infinite alternate;
}

.package {
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    animation: placePackage 5s linear forwards, resetPackage 10s linear infinite;
    animation-delay: 5s, 5s;
}

.box {
    width: 60px;
    height: 40px;
    background-color: var(--primary-color);
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes placePackage {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(calc(100vw - 70px)) translateY(-60px);
    }
}

@keyframes resetPackage {
    0% {
        transform: translateX(calc(100vw - 90px)) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes moveRobot {
    0% {
        left: 0;
    }
    50% {
        left: calc(100% - 180px);
    }
    100% {
        left: calc(100% - 180px);
    }
}

@keyframes rotateTire {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes moveRoboticArm {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-20px);
    }
}

@keyframes rotateArmSegment {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

.project-card {
    background-color: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    margin-bottom: 20px;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #333;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    background-color: #005a85;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

