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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f9fa;
    background-image: linear-gradient(to bottom, #f7f7f7, #f0f4f8);
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #3a6ea5, #7db0dd, #ff7e5f);
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    gap: 10px;
}

.loader-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #3a6ea5;
    animation: bounce 0.5s ease-in-out infinite alternate;
}

.loader-circle:nth-child(2) {
    animation-delay: 0.2s;
    background-color: #7db0dd;
}

.loader-circle:nth-child(3) {
    animation-delay: 0.4s;
    background-color: #ff7e5f;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-20px);
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #3a6ea5;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #ff7e5f;
}

header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 600;
    font-size: 1.4rem;
    color: #2c4c7c;
    letter-spacing: -0.5px;
    position: relative;
}

.logo::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #ff7e5f;
    border-radius: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: #333333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3a6ea5;
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: #3a6ea5;
}

nav ul li a:hover::after {
    width: 100%;
}


.section {
    padding: 70px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c4c7c;
    font-weight: 600;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff7e5f;
    border-radius: 2px;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
}


#home {
    text-align: center;
    padding: 100px 0 80px;
    background: linear-gradient(180deg, rgba(247,247,247,1) 0%, rgba(240,244,248,1) 100%);
}

.home-content {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1s ease;
}

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

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 25px;
    border: 5px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

#home h1 {
    margin-bottom: 15px;
    color: #2c4c7c;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#home p {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About Section */
.about-card {
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-card p {
    color: #333;
}

.projects-grid {
    display: flex; 
    justify-content: center; 
    gap: 30px;
    flex-wrap: wrap; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    width: 400px;
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(58, 110, 165, 0.2);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.project-card h3 {
    margin-bottom: 15px;
    color: #2c4c7c;
    font-size: 1.3rem;
    font-weight: 600;
}

.project-card p {
    margin-bottom: 20px;
    color: #6c757d;
    flex-grow: 1;
    font-size: 1.05rem;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3a6ea5;
    color: white;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.project-link:hover {
    background-color: #2c4c7c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 76, 124, 0.3);
}

.certificate-card {
    width: 340px;        
    height: 420px;          
    flex: 1 1 300px; 
    background-color: white;
    border-radius: 12px;
    padding: 30px; 
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06); 
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05); 
    display: flex;
    flex-direction: column;
    height: 100%; 
}
  
  .certificate-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
  }
  
  .certificate-card img:hover {
    transform: scale(1.02);
  }
  
  .certificate-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c4c7c;
    margin-bottom: 6px;
  }
  
  .certificate-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 12px;
  }
  
  .certificate-card a {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c4c7c;
    text-decoration: underline;
    transition: color 0.3s ease;
  }
  
  .certificate-card a:hover {
    color: #1e375d;
  }

.certificate-list {
    display: flex; 
    justify-content: center; 
    gap: 30px;
    flex-wrap: wrap; 
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-item {
    width: 200px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.certificate-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.certificate-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.certificate-item p {
    color: #666;
    margin: 0 15px 15px;
    font-size: 0.9rem;
}

/* Blog Section Styles (Commented out until content is ready)
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    color: #2c4c7c;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-content p {
    color: #444;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-content .btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2c4c7c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.blog-content .btn:hover {
    background-color: #1a2c4c;
}
*/
 
#contact {
    padding: 70px 0;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 800px;
}

.contact-info .contact-card {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-info .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.contact-info .contact-card h3 {
    color: #2c4c7c;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.contact-info .contact-card h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #ff7e5f;
    border-radius: 2px;
}

.contact-form {
    background-color: white;
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3a6ea5;
    box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.1);
    background-color: white;
}

.form-row input {
    flex: 1;
    margin-bottom: 0;
}

.send-message-btn {
    background-color: #3a6ea5;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.send-message-btn:hover {
    background-color: #2c4c7c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 76, 124, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    border-radius: 50%;
    color: #3a6ea5;
    font-size: 1.5rem; /* Adjusted for Font Awesome icons */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-icon:hover {
    color: white;
    background-color: #3a6ea5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 110, 165, 0.3);
}

.social-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

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

.button-container {
    text-align: center; /* Center the button */
    margin-top: 20px;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px; 
    margin-bottom: 25px; 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    border: 5px solid white; 
}

footer {
    background-color: #2c4c7c;
    color: white;
    padding: 25px 0;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 50px;
}

footer .container {
    opacity: 0.9;
}

/* Responsive Design Rules */
@media screen and (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    #home {
        padding: 80px 0 60px;
    }

    .projects-grid, .certificate-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
    }

    .projects-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .project-card {
        width: 280px;
        flex: none;
        scroll-snap-align: start;
        margin: 0;
    }

    .project-card img {
        height: 160px;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card p {
        font-size: 0.95rem;
    }

    .project-link {
        padding: 8px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row input {
        width: 100%;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    #home h1 {
        font-size: 2rem;
    }

    #home p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .certificate-list {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .certificate-list::-webkit-scrollbar {
        display: none;
    }

    .certificate-item {
        width: 280px;
        flex: none;
        scroll-snap-align: start;
        margin: 0;
    }

    .certificate-item img {
        height: 160px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 20px 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
    }

    nav.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding: 10px 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    nav.active ul li {
        opacity: 1;
        transform: translateX(0);
    }

    nav ul li:nth-child(1) { transition-delay: 0.1s; }
    nav ul li:nth-child(2) { transition-delay: 0.2s; }
    nav ul li:nth-child(3) { transition-delay: 0.3s; }
    nav ul li:nth-child(4) { transition-delay: 0.4s; }
    nav ul li:nth-child(5) { transition-delay: 0.5s; }

    nav ul li a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 18px 0;
        color: #2c4c7c;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

    nav ul li a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 0;
        background-color: #ff7e5f;
        transition: height 0.3s ease;
    }

    nav ul li a:hover {
        color: #ff7e5f;
        padding-left: 15px;
    }

    nav ul li a:hover::before {
        height: 70%;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(3px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    #home h1 {
        font-size: 1.8rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }

    .send-message-btn {
        width: 100%;
    }

    .social-links {
        gap: 15px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .notification {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}

/* Fix for contact form on mobile */
@media screen and (max-width: 480px) {
    .contact-form {
        padding: 20px;
    }

    .form-row {
        margin-bottom: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        margin-bottom: 15px;
    }
}

/* Fix for project cards on mobile */
@media screen and (max-width: 480px) {
    .project-card {
        padding: 15px;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }
}

/* Fix for certificate cards on mobile */
@media screen and (max-width: 480px) {
    .certificate-card {
        padding: 15px;
    }

    .certificate-card h3 {
        font-size: 1.2rem;
    }

    .certificate-card p {
        font-size: 0.9rem;
    }
}


@media screen and (max-width: 480px) {
    .blog-card {
        padding: 15px;
    }

    .blog-card h3 {
        font-size: 1.2rem;
    }

    .blog-date {
        font-size: 0.8rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c4c7c;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Navigation Styles */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    header {
        position: relative;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
    }

    nav.active {
        right: 0;
        visibility: visible;
        opacity: 1;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    nav ul li a {
        font-size: 1.1rem;
        width: 100%;
        display: block;
        padding: 10px 0;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Overlay when menu is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }
}
