/* General Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(45deg, #4a90e2, #9013fe, #50e3c2, #f5a623, #d0021b);
    background-size: 400% 400%;
    animation: rgbBackground 15s ease infinite;
    color: #222;
    line-height: 1.6;
}

/* RGB Background Animation */
@keyframes rgbBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    background-color: rgba(39, 114, 144, 0.95);
    padding: 15px 0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 25px;
}

nav ul li a {
    color: #e0f7fa;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

nav ul li a:active,
nav ul li a:focus,
nav ul li a:hover {
    color: #ffcc00;
    text-shadow: 0 0 12px #ffcc00;
    outline: none;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #ffffff;
    text-shadow: 0 0 12px #ffffff;
    outline: none;
}

/* Sections */
.section {
    padding: 80px 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

/* Profile Picture with Enhanced Glow Effect */
.profile-pic {
    border-radius: 50%;
    width: 350px;
    height: 350px;
    object-fit: cover;
    margin-top: 30px;
    box-shadow: inset 0 0 15px rgba(222, 128, 235, 0.7), 0 0 40px rgba(0, 150, 255, 0.8), 0 0 50px rgba(255, 0, 200, 0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-pic:hover,
.profile-pic:focus {
    transform: scale(1.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 70px rgba(0, 150, 255, 1), 0 0 80px rgba(255, 0, 200, 1);
    outline: none;
}

/* About Section */
#about {
    background-color: rgba(230, 230, 250, 0.9);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#about:hover,
#about:focus-within {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

h2 {
    font-size: 2.8em;
    color: #222;
    margin-bottom: 20px;
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.15);
}

/* Project Section */
.project {
    background-color: rgba(49, 133, 186, 0.95);
    padding: 25px 20px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project:hover,
.project:focus-within {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.Objectives p, .project p {
    font-size: 1.1em;
    color: #f0f0f0;
    line-height: 1.7;
}

/* Buttons */
.about-me-btn,
.project-btn {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(38, 115, 255, 0.5);
    transition: all 0.4s ease;
    margin: 0;
    display: inline-block;
    text-align: center;
    user-select: none;
}

.about-me-btn:hover,
.project-btn:hover,
.about-me-btn:focus,
.project-btn:focus {
    background: linear-gradient(135deg, #2575fc, #6a11cb);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(38, 115, 255, 0.8);
    outline: none;
}

.about-me-btn:active,
.project-btn:active {
    transform: translateY(1px);
    box-shadow: 0 5px 12px rgba(38, 115, 255, 0.4);
}

/* Project Details */
.project-details {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(62, 147, 130, 0.95);
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #f9f9f9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    overflow: hidden;
}

/* Project Images */
.project-image {
    width: 100%;
    max-width: 500px;
    margin: 25px 0;
    display: block;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
#contact {
    background-color: rgba(57, 176, 154, 0.6);
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    margin: 40px auto;
    color: #222;
}

#contact p {
    font-size: 1.2em;
    color: #222;
}

#contact a {
    color: #1a4f4f;
    text-decoration: none;
    transition: color 0.4s ease;
}

#contact a:hover,
#contact a:focus {
    color: #0b2a2a;
    text-decoration: underline;
    outline: none;
}

/* Footer */
footer {
    background-color: rgba(39, 114, 144, 0.95);
    color: #e1ecee;
    text-align: center;
    padding: 15px 0;
    font-size: 1.1em;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes zoomIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.zoom-in {
    animation: zoomIn 2s ease-out;
}

@keyframes bounce {
    0%, 20%, 40%, 60%, 80%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 2s ease infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.typing {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #000;
    animation: typing 2s steps(1000) 0.5s 1 normal both;
}

@keyframes slideIn {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.slide-in {
    animation: slideIn 1.5s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        padding: 0;
    }
    nav ul li {
        margin: 10px 0;
    }
    .profile-pic {
        width: 250px;
        height: 250px;
    }
    .section {
        padding: 50px 15px;
    }
    .container {
        width: 95%;
    }
    .project-details {
        max-width: 100%;
        padding: 15px;
    }
    #contact {
        max-width: 100%;
        padding: 30px 15px;
    }
}

/* Certificates Section */
#certificates .container {
    background-color: #7ed6a1;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.skills-languages-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 20px;
}

.skills-languages-container > div {
    flex: 1;
}

.soft-skills ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.soft-skills ul li {
    margin-bottom: 6px;
}

.languages-known p {
    margin: 6px 0;
    text-align: left;
    padding-left: 10px;
    font-weight: 600;
}

.languages-known h3 {
    white-space: nowrap;
}

/* Circular Progress Chart Container */
.circular-chart-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 700px;
    margin: 20px auto 0 auto;
}

.circular-skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
}

.circular-chart {
    max-width: 120px;
    max-height: 120px;
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke-dasharray: 0, 100;
    transition: stroke-dasharray 1.5s ease;
}

.circular-chart.intermediate .circle {
    stroke: #3498db;
}

.circular-chart.beginner .circle {
    stroke: #f6b93b;
}

.percentage {
    fill: #333;
    font-size: 0.8em;
    text-anchor: middle;
    dominant-baseline: middle;
    transform: rotate(90deg);
}

.skill-info {
    margin-top: 10px;
    text-align: center;
}

.skill-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.skill-level {
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
    margin-top: 4px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
    list-style: none;
    margin-top: 20px;
}

.certificates-grid::-webkit-scrollbar {
    height: 8px;
}

.certificates-grid::-webkit-scrollbar-thumb {
    background-color: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
}

.certificates-grid::-webkit-scrollbar-track {
    background-color: transparent;
}

.certificate-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
    word-wrap: break-word;
    white-space: normal;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certificate-card:hover,
.certificate-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(118, 75, 162, 0.8);
    outline: none;
}

.certificate-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.certificate-card a {
    color: #ecd75f;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: auto;
}

.certificate-card a:active,
.certificate-card a:focus,
.certificate-card a:hover {
    color: #ffcc00;
    outline: none;
}

.certificate-card a:visited {
    color: #ffffff;
}

.certificate-card a:hover,
.certificate-card a:focus {
    color: #868479;
    outline: none;
}
