/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(0, 215, 255, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 215, 255, 0.8), 0 0 30px rgba(0, 215, 255, 0.3);
    }

    100% {
        text-shadow: 0 0 10px rgba(0, 215, 255, 0.5);
    }
}

body {
    background: linear-gradient(135deg, #2D3250 0%, #424769 50%, #2D3250 100%);
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
    color: #e6e6e6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(45, 50, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 215, 255, 0.1);
}

nav ul {
    font-size: 1.2rem;
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #00D7FF;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: #9D44C0;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px #9D44C0;
}

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

.left {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00D7FF, #9D44C0);
    background-size: 200% 200%;
    animation: gradient 4s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.firstsection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.firstsection::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 215, 255, 0.1) 0%, rgba(157, 68, 192, 0.05) 50%, rgba(0, 0, 0, 0) 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.leftsection {
    position: relative;
    z-index: 1;
}

.avtar {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00D7FF, #9D44C0);
    padding: 5px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 215, 255, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.avtar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.rightsection {
    font-size: 2.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

#name {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00D7FF, #9D44C0);
    background-size: 200% 200%;
    animation: gradient 4s ease infinite, glow 2s ease-in-out infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
    white-space: nowrap;
    overflow: hidden;
}

/* About Section */
.about-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    color: #e6e6e6;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #a0a0a0;
}

/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(45, 50, 80, 0.95);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 215, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

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

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: #00D7FF;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.project-links a:hover {
    color: #9D44C0;
    transform: translateY(-3px);
}

.project-content {
    padding: 1.2rem;
}

.project-content h3 {
    color: #00D7FF;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.project-content p {
    color: #a0a0a0;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tech span {
    background: rgba(0, 215, 255, 0.1);
    color: #00D7FF;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    background: linear-gradient(45deg, #00D7FF, #9D44C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Contact Icons */
.contact {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact img {
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.contact img:hover {
    transform: translateY(-5px);
    filter: brightness(0) invert(0.8);
}

/* Skills Section */
.skills-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
}

.skills-section.visible {
    animation-play-state: running;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #4a90e2, #67b26f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(45, 50, 80, 0.95);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 215, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: #00D7FF;
    text-shadow: 0 0 10px rgba(0, 215, 255, 0.3);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #9D44C0;
    text-shadow: 0 0 10px rgba(157, 68, 192, 0.3);
}

/* Education Section */
.education-section {
    padding: 5rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
}

.education-section.visible {
    animation-play-state: running;
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #00D7FF, #9D44C0);
    box-shadow: 0 0 15px rgba(0, 215, 255, 0.3);
}

.education-item {
    margin-bottom: 3rem;
    position: relative;
    width: 50%;
    padding-right: 2rem;
}

.education-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 2rem;
}

.education-content {
    background: rgba(45, 50, 80, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 215, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.education-content:hover {
    transform: translateX(10px);
}

/* Certificates Section */
.certificates-section {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-play-state: paused;
    overflow: hidden;
}

.certificates-section.visible {
    animation-play-state: running;
}

.certificates-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
}

.certificates-grid {
    display: flex;
    transition: transform 0.5s ease;
    gap: 2rem;
    padding: 1rem 0;
}

.certificate-card {
    min-width: 100%;
    flex: 0 0 100%;
    background: rgba(45, 50, 80, 0.95);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 215, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.certificate-image {
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
}

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

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

.certificate-card h3 {
    margin-bottom: 0.5rem;
    color: #e6e6e6;
    font-size: 1.2rem;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(45, 50, 80, 0.8);
    border: 1px solid rgba(0, 215, 255, 0.3);
    color: #00D7FF;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(0, 215, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 215, 255, 0.3);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Footer Styles */
footer {
    background: rgba(45, 50, 80, 0.98);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(0, 215, 255, 0.1);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    color: #e6e6e6;
}

.contact-info h3 {
    color: #00D7FF;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #00D7FF, #9D44C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    color: #00D7FF;
    transform: translateX(10px);
}

.contact-detail-item i {
    color: #00D7FF;
    margin-right: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-detail-item:hover i {
    transform: scale(1.2);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    color: #a0a0a0;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 215, 255, 0.1);
}

.social-link:hover {
    color: #00D7FF;
    background: rgba(0, 215, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 215, 255, 0.2);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 215, 255, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.contact-form h3 {
    color: #00D7FF;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
    background: linear-gradient(45deg, #00D7FF, #9D44C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00D7FF;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 215, 255, 0.2);
    border-radius: 8px;
    color: #e6e6e6;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00D7FF;
    box-shadow: 0 0 10px rgba(0, 215, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #00D7FF, #9D44C0);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 215, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 215, 255, 0.1);
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .firstsection {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .avtar {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }

    .rightsection {
        font-size: 2rem;
    }

    #name {
        font-size: 2.5rem;
    }

    .education-timeline::before {
        left: 0;
    }

    .education-item {
        width: 100%;
        padding-left: 2rem;
        padding-right: 0;
    }

    .education-item:nth-child(even) {
        margin-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certificates-carousel {
        max-width: 500px;
        padding: 0 40px;
    }

    .certificate-image {
        height: 300px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-btn.prev {
        left: 5px;
    }

    .carousel-btn.next {
        right: 5px;
    }

    .contact-form {
        max-width: 100%;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

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

