
/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: white;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #38404a;
    position: relative;
}

.main-content {
    position: relative;
    z-index: 1;
}

/* ===== Particles Background ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}


/* ===== Typography ===== */
h1 {
    color: white;
    text-shadow:
      0 0 4px rgba(0, 123, 255, 0.4),
      0 0 8px rgba(0, 123, 255, 0.3),
      0 0 12px rgba(0, 123, 255, 0.2);
    font-size: 2.5em;
    margin: 0;
}

p {
    font-size: 1.2em;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    font-weight: 600;
    color: white;
    text-shadow:
      0 0 4px rgba(0, 123, 255, 0.4),
      0 0 8px rgba(0, 123, 255, 0.3),
      0 0 12px rgba(0, 123, 255, 0.2);
}
#about .section-title {
    margin: 0;
}
.section-title::after {
    content: '';
    width: 70px;
    height: 5px;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== Header Styles ===== */
header {
    background: linear-gradient(45deg, #1e2a37, #374555);
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 3px;
}

header p {
    font-size: 1.3rem;
    margin-top: 1rem;
    opacity: 0.85;
}

/* ===== Navigation ===== */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 25px;
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 101;
}
  
.menu-toggle .bar {
    height: 4px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}
  
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #1e2a37; 
    display: none; 
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem 2rem;
    z-index: 100;
}
  
.navbar.open {
    display: flex;
}
  
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}
  
nav ul li {
    margin: 0;
}
  
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}
  
nav ul li a:hover {
    color: #ccc;
}

/* ===== Content Sections ===== */
section {
    padding: 30px 20px;
}

.container {
    width: 100%;
    margin: 0 auto;
}

/* ===== Card Styles ===== */
.card {
    background-color: #1e2a37;
    margin: 15px 0;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-header {
    background-color: #1e2a37;
    color: #fff;
    padding: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.card-body {
    padding: 2rem;
}

.card-body ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.card-body ul li {
    margin-bottom: 1rem;
}

.card-body .card-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-body .card-image img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

/* ===== About Section ===== */


.about-content {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.about-image {
    max-width: 200px;
    text-align: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-text {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    flex: 2;
}


#about img {
    object-fit: cover;
    display: block;
    object-position: top center;
}

/* ===== Skills Grid ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    text-align: center;
    padding: 20px;
    color: #fff;
    background-color: #1e2a37;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.1);
}

/* ===== Flip Book/Portfolio ===== */
.flip-book {
    display: flex;
    gap: 5px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.page {
    flex: 1 1 45%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    padding: 10px;
    max-width: 300px;
    text-align: center;
}

.page img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    display: block;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.page:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.page:hover img {
    transform: scale(1.05);
}

/* ===== Certifications ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.certification-card {
    text-align: center;
    padding: 20px;
    color: #fff;
    background-color: #1e2a37;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}


.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.cert-link {
    color: #f9f7f5;
    text-decoration: none;
}

.cert-link:hover {
    text-decoration: underline;
}

/* ===== Contact Form ===== */
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.contact-form button {
    background-color: #1e2a37;
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
}

.contact-form button:hover {
    background-color: #415a75;
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: #1e2a37;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #557393;
}

/* ===== Footer ===== */
.footer {
    background: #1e2a37;
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.2rem;
    transition: text-decoration 0.3s ease;
}

/* ===== Animations ===== */
.animation-fade {
    opacity: 0;
    animation: fadeIn 2s forwards;
}

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

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
    /* Hide right robot on small screens */
    .robot-right {
        display: none;    }
    
    /* Header adjustments */
    header h1 {
        font-size: 2.5rem;
    }
    header p {
        font-size: 1.2rem;
    }
    
    /* Navigation adjustments */
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
  
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
  
    nav ul li {
        margin-bottom: 1rem;
    }
  
    nav ul li a {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* General content adjustments */
    .container {
        width: 95%;
    }
    .section-title {
        font-size: 2.4rem;
    }
    
    /* Skills grid adjustments */
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Flip book adjustments */
    .page {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 5px;
    }

    .flip-book {
        padding: 5px;
        gap: 10px;
    }

    .page img {
        border-radius: 10px;
    }
    
    /* Card image adjustments */
    .card-body .card-image img {
        max-height: 150px;
        width: auto;
    }
}

@media (max-width: 480px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.5em;
    }
    p {
        font-size: 0.9em;
    }
    
    /* Header adjustments */
    header h1 {
        font-size: 2rem;
    }
    header p {
        font-size: 1rem;
    }
    
    /* Navigation adjustments */
    nav ul li a {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Footer adjustments */
    footer {
        font-size: 0.8em;
    }
    footer a {
        font-size: 0.8em;
    }
    
    /* Container adjustments */
    .container {
        width: 100%;
        padding: 0 10px;
    }
    
    /* Skills grid adjustments */
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    /* About section adjustments */
    .about-content {
        flex-direction: column;
    }
    
    #about img {
        max-height: 150px;
        width: auto;
    }}

