/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a192f;
    font-family: 'Poppins', sans-serif;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 25, 47, 0.8);
    transition: all 0.3s ease;
}

header.sticky {
    padding: 15px 5%;
    background: rgba(10, 25, 47, 0.95);
}

.logo {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    color: #ccd6f6;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: #64ffda;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #64ffda;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Home Section */
.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 100px 5% 70px;
    overflow: hidden;
}

.home-content {
    max-width: 600px;
    z-index: 3;
}

.home-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #e6f1ff;
    line-height: 1.2;
}

.home-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #8892b0;
    margin: 10px 0;
}

.home-content h3 span {
    color: #64ffda;
}

.home-content p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: #8892b0;
    margin-bottom: 2rem;
}

/* Button Box */
.btn-box {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid #64ffda;
    color: #64ffda;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.5s;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
}

/* Social Icons */
.home-sci {
    position: absolute;
    bottom: 40px;
    left: 5%;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #64ffda;
    border-radius: 50%;
    font-size: 20px;
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-sci a:hover {
    background: #64ffda;
    color: #0a192f;
    transform: translateY(-3px);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* Profile Image */
.profile-image {
    position: absolute;
    right: 5%;
    top: 54%;
    transform: translateY(-50%);
    width: clamp(250px, 30vw, 430px);
    max-width: 100%;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-20px);
    }
}

/* Background Slideshow */
.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-slide .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.bg-slide .slide.active {
    opacity: 0.2;
}

/* Sections Common Styles */
section {
    padding: 80px 5%;
}

.heading {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    color: #e6f1ff;
}

.heading span {
    color: #64ffda;
}

/* Services Section */
.services {
    background-color: #112240;
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-box {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 100%;
    background: #0a192f;
    padding: 2.5rem 1.5rem 3rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 0.2rem solid #1f2a3e;
    transition: all 0.5s ease;
}

.services-box:hover {
    border-color: #64ffda;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.1);
}

.services-box i {
    font-size: 3.5rem;
    color: #64ffda;
    margin-bottom: 1.5rem;
}

.services-box h3 {
    font-size: 1.5rem;
    color: #e6f1ff;
    margin-bottom: 1rem;
}

.services-box p {
    font-size: 1rem;
    color: #8892b0;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background-color: #0a192f;
    padding: 60px 0;
}

.projects-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

.project-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #112240;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.project-slider .slide {
    min-width: 100%;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slide-image-container {
    width: 100%;
    max-width: 1200px;
    background: #fff; /* Shorthand for white */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide-image-container img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* Shorthand for margin: 0 auto 0 auto */
}

/* Navigation Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.prev-btn, .next-btn {
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid #64ffda;
    color: #64ffda;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.prev-btn:hover, .next-btn:hover {
    background: #64ffda;
    color: #0a192f;
    transform: scale(1.1);
}

/* Dots Navigation */
.dots-navigation {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #64ffda;
    transform: scale(1.3);
}

/* Project Info */
.project-info {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 5px 20px;
}

.project-info h3 {
    font-size: 1.8rem;
    color: #64ffda;
    margin-bottom: 20px;
}

.project-info p {
    color: #ccd6f6;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}
/* About Me Section */
.about {
    background-color: #112240;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    color: #8892b0;
    font-size: 1rem;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Achievements Section */
.achievements {
    padding: 5rem 0;
    background: #112240;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.metric-card, .map-card {
    background: rgba(17, 34, 64, 0.8);
    padding: 2rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 1.5rem;
    background: rgba(17, 34, 64, 0.9);
    border: 1px solid #64ffda;
}

.map-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.metric-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
    background: rgba(17, 34, 64, 0.9);
}

.map-label {
    font-size: 1.8rem;
    color: #64ffda;
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 3rem;
    font-weight: 700;
    color: #64ffda;
    margin-bottom: 0.625rem;
    font-family: 48px Arial, Helvetica, sans-serif;
}

.metric-label {
    font-size: 1.2rem;
    color: #ccd6f6;
    line-height: 1.5;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.skill-tag {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    padding: 0.4rem 0.8rem;
    border-radius: 0.313rem;
    font-size: 0.85rem;
    font-family: Arial, Helvetica, sans-serif;
}

.skills-heading {
    color: #e6f1ff;
    margin-top: 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 0.125rem solid #64ffda;
}

/* Responsive Design */
@media (max-width: 992px) {
    .home {
        flex-direction: column;
        text-align: center;
        padding-top: 7.5rem;
        padding-bottom: 5rem;
    }

    .home-content {
        margin-bottom: 2.5rem;
    }

    .profile-image {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 0 auto;
        animation: none;
    }

    .home-sci {
        position: relative;
        left: auto;
        bottom: auto;
        margin: 1.875rem auto 0;
        justify-content: center;
        width: 100%;
    }

    .btn-box {
        justify-content: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-card {
        grid-column: 1 / span 2;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(0.625rem);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease;
        padding: 1.25rem;
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        margin: 0.938rem 0;
        font-size: 1.2rem;
    }

    .services-box {
        flex: 1 1 100%;
        max-width: 21.875rem;
    }

    .project-slider .slide img {
        height: 21.875rem;
    }

    .project-info {
        padding: 0.938rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .slider-controls {
        bottom: 0.625rem;
    }

    .metrics-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    header {
        padding: 0.938rem 5%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .home-content h1 {
        font-size: 2.2rem;
    }

    .home-content h3 {
        font-size: 1.3rem;
    }

    .btn-box {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .services-box {
        padding: 2rem 1.5rem;
    }

    .project-slider .slide img {
        height: 15.625rem;
    }

    .prev-btn,
    .next-btn {
        width: 1.875rem;
        height: 1.875rem;
        font-size: 0.8rem;
    }

    .dot {
        width: 0.5rem;
        height: 0.5rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .map-card {
        grid-column: auto;
    }
}

@media (max-width: 400px) {
    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h3 {
        font-size: 1.2rem;
    }

    .home-sci a {
        width: 2.188rem;
        height: 2.188rem;
        font-size: 1.125rem;
    }

    .services-box {
        min-width: 100%;
    }

    .project-slider .slide img {
        height: 12.5rem;
    }

    .metric-card, .map-card {
        padding: 1.5rem;
    }

    .metric-value {
        font-size: 2.5rem;
    }
}