@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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);
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        max-height: 300px;
    }

    .name {
        font-size: 36px;
    }

    .subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .connect-container {
        flex-direction: column;
        gap: 30px;
    }

    .connect-title {
        font-size: 36px;
    }

    .connect-form {
        padding: 30px;
    }

    .lets-connect {
        padding: 40px 20px;
    }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #9fb7ca 0%, #dedede 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.navbar {
    /* position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-sizing: border-box;
    padding: 20px;
    background-color: #b5eefe99;
    align-items: center;
    display: flex; */
    /* justify-content: center; */
    /* flex-shrink: 0;
    gap: 20px; */
    position: fixed;
    top: 0;
    left: 50%;
    border-radius: 50px;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--container);
    min-height: var(--nav-height);
    padding: 1rem 0;
    backdrop-filter: blur(18px);
}

/* .navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: -1;
} */

.navbar::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  background:  rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0 0 24px 24px;
  z-index: -1;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;

}

.navbar a {
    color:#0e2f30;
    text-decoration:inherit;
    font-size: 20px;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: rgb(1, 136, 133);
}

.navbar a:not(:first-child) {
    margin-left: 20px;
}

.menu-icon {
    cursor: pointer;
    font-size: 30px;
    color: #0e2f30;
    display: block;
    margin-left: 950px;
}

.search {
    position: relative ;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    z-index: 1000;
    animation: fadeInUp 1s ease-out;
}

.search-input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 20px;
}

.search-button {
    background-color: #0e5d5c;
    color: white;
    border: none;
    font-size: 20px;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0a3736;
}

.hero {
    position: relative;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(135deg, #b8d4e8 0%, #d4dce4 100%); */
    width: 100%;
    animation: fadeInUp 1s ease-out;
    padding: 60px 20px 20px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.tech-icon i {
    font-size: 50px;
    color: #0e2f30;
}


.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    animation: slideInLeft 1s ease-out;
}

.hero-right {
    flex: 1;
    animation: slideInRight 1s ease-out;
}

.name {
    font-size: 46px;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    color: #014948;
    margin: 0 0 16px 0;
    font-weight: bold;
}

.subtitle {
    font-size: 28px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #014948;
    margin: 0 0 24px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.3;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.hero-description {
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2d5f70;
    line-height: 1.6;
    margin: 0 0 32px 0;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn-primary {
    background-color: #0e5d5c;
    color: white;
}

.btn-primary:hover {
    background-color: #0a3736;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(14, 93, 92, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #0e5d5c;
    border: 2px solid #0e5d5c;
}

.btn-secondary:hover {
    background-color: #0e5d5c;
    color: white;
    transform: translateY(-2px);
}

.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 24px;
    z-index: 5;
}

.about-heading {
    color: #ffffff;
    padding-top: 20px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 20px;
    margin: 0;
    font-size: 42px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.about-section {
    display: flex;
    background: linear-gradient(135deg, #1a4d5c 0%, #0d2a33 100%);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0px;
    /* align-items: center; */
    justify-content: center;
    align-content: center;
    padding: 20px;
    border-radius: 20px;
    margin-top: 50px;
    margin-right: 100px;
    margin-bottom: 100px;
    margin-left: 100px;
    animation: fadeInUp 1s ease-out;
}

.about-text {
    padding-top: 0px;
    padding-right: 20px;
    padding-bottom: 0px;
    padding-left: 20px;
    font-family:'Courier New', Courier, monospace;
    font-size: 20px;
    margin: 10px 0px 0px 0px;
    line-height: 1.5;
    color: #ffffff;
    text-align: left;
    /* text-shadow: 2px 2px 10px #000000; */
    animation: slideInRight 1s ease-out 0.6s both;
}

.skills-section {
    display: grid;
    padding: 50px;
    justify-content: center;
    align-items: center;
    gap: 50px;
    animation: fadeInUp 1s ease-out;
}

.skills-title, .projects-title {
    color: #003736;
    font-size: 50px;
    text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: inline-block;
    padding: 10px 20px;
    margin: 0 auto;
}

.skills-grid {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.skill-card {
    background: #072a2964;
    backdrop-filter: blur(10px) ;
    border: #ffffff 1px solid;
    box-shadow: #151515 0px 0px 5px;
    padding: 20px;
    border-radius: 8px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out both;
    animation-delay: calc(var(--index) * 0.2s); /* Assumes you add --index in HTML for staggered effect */
}

.skill-title {
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.skill-desc {
    color: #b4b5b5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.skill-icon {
    display:inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 50px;
    height: 50px;
}

.certifications-title {
    color: #ececec;
    font-size: 50px;
    text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: inline-block;
    padding: 10px 20px;
    margin: 0 auto;
}

.certifications-section {
    display: grid;
    background: linear-gradient(135deg, #1a4d5c 0%, #0d2a33 100%);
    padding: 20px;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin-top: 50px;
    margin-right: 100px;
    margin-bottom: 100px;
    margin-left: 100px;
    gap: 20px;
    animation: fadeInUp 1s ease-out;
}

.certifications-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cert-card {
    background: linear-gradient(#0d2a33 100% , #dadde0 0%);
    box-shadow: #000000 0px 0px 5px;
    text-align: center;
    /* border: 1px solid #ffffff; */
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    color: #ffffff;
    transition: transform 0.3s ease;
    animation:ease-out;
}

.cert-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.cert-card h3 {
    margin-bottom: 10px;
}

.cert-card p {
    font-size: 14px;
    color: #ccc;
}

.cert-card a {
    display: inline-block;
    margin-top: 10px;
    color: #ffffff;
    text-decoration: none;
}

.cert-name {
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
}

.cert-desc {
    color: #d9d9d9;
    padding-left: 10px;
    padding-right: 10px;
    font-size: small;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;    
}

.cert-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0e5d5c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.5s;
}

.projects-section {
    display: grid;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out;
}

.projects-grid {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-img {
    width: 100%;
    object-fit: cover;
    height: 200px ;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.project-card {
    background: linear-gradient(#0d2a33 100% , #dadde0 0%);
    /* border: #0e2f30 1px solid; */
    box-shadow: #000000 0px 0px 5px;
    border-radius: 20px;
    padding-bottom: 20px;
    width: 400px;
    height: auto;
    text-align: center;
    transition: transform 0.3s ease;
    animation:ease-out;
}

.project-name {
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-desc {
    color: #d9d9d9;
    padding-left: 10px;
    padding-right: 10px;
    font-size: small;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0e5d5c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.5s;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(183, 183, 183, 0.3);
}


/* .contact {
    background-color: #003736;
    padding: 20px;
    text-align: center;
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
}

.contact h1 {
    color: #ffffff;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-links a {
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-links a:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
} */


/* Let's Connect Section */
.lets-connect {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a4d5c 0%, #0d2a33 100%);
    margin: 100px;
    border-radius: 20px;
}

.connect-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.connect-left {
    flex: 1;
    min-width: 300px;
    color: #ffffff;
}

.connect-title {
    font-size: 48px;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    margin: 0 0 20px 0;
    color: #ffffff;
    animation: slideInLeft 1s ease-out;
}

.connect-description {
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: #b0d4db;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.connect-socials {
    display: flex;
    gap: 20px;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.connect-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.connect-social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
}

.connect-right {
    flex: 1;
    min-width: 300px;
    animation: slideInRight 1s ease-out;
}

.connect-form {
    background: rgb(20 21 27 / 0.8);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 251, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.send-button {
    padding: 12px 24px;
    background-color: #032941;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.send-button:hover {
    background-color: #04588d;
    transform: translateY(-2px);
}

.send-button:active {
    transform: translateY(0);
}

.bottom-page {
    position:static;
    bottom: 0;
    width: 100%;
    background-color: #0d2a33;
    padding: 10px;
    text-align: center;
    text-decoration: dotted;
}

.footer-text {
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    margin: 0;
}

.footer-link {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-link a {
    color: #c0e0ff;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    transition: color 0.2s ease;
}