@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #FFD700;
    --secondary-color: #FFFFFF;
    --background-dark: #1a1a2e;
    --card-bg: #2b2b48;
    --text-light: #f0f0f0;
    --border-color: #3f3f6e;
    --hover-light: #444466;
    --font-heading: 'Fira Code', monospace;
    --font-body: 'Poppins', sans-serif;
    --gradient-text: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    --highlight-yellow: #FFD700;
    --gradient-color-1: #1a1a2e;
    --gradient-color-2: #3f3f6e;
    --gradient-color-3: #FFD700;
    --gradient-color-4: #F06292;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-light);
    background-color: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    padding: 40px 20px;
    margin: 0 auto;
    background-color: rgba(26, 26, 46, 0.9);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--secondary-color);
    background-image: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-text);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn.primary {
    background: var(--primary-color);
    color: var(--background-dark);
}

.btn.primary:hover {
    background: var(--secondary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.btn.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

#navbar {
    width: 100%;
    background-color: rgba(26, 26, 46, 0.95);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    height: 80px;
    display: flex;
    align-items: center;
}

#navbar .container {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#navbar .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-right:30px;
    color: var(--primary-color);
    background-image: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#navbar .nav-links {
    display: flex;
    gap: 30px;
}

#navbar .nav-links li a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}

#navbar .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-text);
    transition: width 0.3s ease;
}

#navbar .nav-links li a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.coding-words-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f1d 100%);
}

.coding-word {
    position: absolute;
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    opacity: 0;
    white-space: nowrap;
    user-select: none;
    will-change: transform, opacity;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.2);
}

@keyframes moveWord {
    0% {
        transform: translate(calc(var(--start-x) * 1vw), calc(var(--start-y) * 1vh)) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.08;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translate(calc(var(--end-x) * 1vw), calc(var(--end-y) * 1vh)) scale(0.8);
        opacity: 0;
    }
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: none;
    padding-top: 80px;
    min-height: 100vh;
    justify-content: flex-start;
}

.hero .container {
    z-index: 1;
    background-color: transparent;
    box-shadow: none;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .greeting {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.hero .name {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    background-image: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.hero .name .highlight-name {
    color: var(--highlight-yellow);
    -webkit-text-fill-color: var(--highlight-yellow);
    background: none;
}

.profile-image-container {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 20px 0 30px;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit:contain ;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    clip-path: polygon(50% 0%, 90% 20%, 100% 50%, 90% 80%, 50% 100%, 10% 80%, 0% 50%, 10% 20%);
    animation: rotateOctagon 15s linear infinite;
}

@keyframes rotateOctagon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dynamic-text-container {
    min-height: 2.5rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.typing-text {
    display: inline-block;
}

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

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-icon img {
    width: 30px;
    height: 30px;
    filter: invert(1) sepia(1) saturate(100) hue-rotate(0deg) brightness(0.8);
    transition: filter 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-icon:hover img {
    filter: invert(0) sepia(0) saturate(0) hue-rotate(0deg) brightness(0.1);
}

.about-section {
    padding: 100px 0;
    background-color: transparent;
}
.about-section .quote {
    font-style: italic;
    color: #f1c40f;
    text-align: center;
    margin-top: 20px;
    margin-bottom:20px;
    font-size: 1.1rem;
}
.about-section p {
    text-align: justify;
}
.skills-section {
    padding: 100px 0;
    background-color: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background-color: rgba(43, 43, 72, 0.95);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.skill-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.projects-section {
    padding: 100px 0;
    background-color: transparent;
}

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

.project-card {
    background-color: rgba(26, 26, 46, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.project-card p {
    font-size: 1rem;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 15px;
    padding: 0 20px 20px;
    margin-top: auto;
}

.certifications-section {
    padding: 100px 0;
    background-color: transparent;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-item {
    background-color: rgba(43, 43, 72, 0.95);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.cert-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cert-item p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cert-item .date {
    font-style: italic;
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 15px;
}
.cert-item .cert-icon {
    width: 100%;
    height:200px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.contact-section {
    padding: 100px 0;
    background-color: transparent;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

#contact-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(26, 26, 46, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: rgba(51, 51, 79, 0.9);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

#contact-form button {
    width: 100%;
}

.social-links {
    flex: 0.8;
    min-width: 250px;
    background-color: rgba(26, 26, 46, 0.95);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.social-links h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.social-links ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.social-links ul li a:hover {
    color: var(--primary-color);
}

.social-links ul li a img {
    width: 30px;
    height: 30px;
    filter: invert(1) sepia(1) saturate(100) hue-rotate(0deg) brightness(0.8);
    transition: filter 0.3s ease;
}

.social-links ul li a:hover img {
    filter: invert(1) sepia(1) saturate(500) hue-rotate(0deg) brightness(1.2);
}

.success-message {
    color: #8BC34A;
    margin-top: 15px;
    text-align: center;
    display: none;
    font-family: var(--font-heading);
}
.error-message {
    color: #FF5722;
    margin-top: 15px;
    text-align: center;
    display: none;
    font-family: var(--font-heading);
}

footer {
    background-color: rgba(17, 17, 31, 0.98);
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
}

footer .container {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 20px;
}
footer .footer-social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-size:20px;
}

footer .footer-social-icons a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

footer .footer-social-icons a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}
footer .footer-social-icons img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--background-dark);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.5s ease, visibility 0.5s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background-color: var(--secondary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }

    #navbar {
        position: fixed;
        top: 0;
        left: 0;
        height: 80px;
        padding: 0;
        display: flex;
        align-items: center;
    }

    #navbar .container {
        padding: 0 15px;
        height: 100%;
    }

    #navbar .logo {
        font-size: 1.6rem;
    }

    #navbar .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        height: calc(100vh - 80px);
        background-color: rgba(26, 26, 46, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        max-width: 350px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 999;
    }

    #navbar .nav-links.nav-active {
        transform: translateX(0%);
        z-index: 1001;
    }

    #navbar .nav-links li {
        opacity: 0;
        margin-bottom: 30px;
    }

    #navbar .nav-links.nav-active li:nth-child(1) { animation: navLinkFade 0.5s ease forwards 0.3s; }
    #navbar .nav-links.nav-active li:nth-child(2) { animation: navLinkFade 0.5s ease forwards 0.4s; }
    #navbar .nav-active li:nth-child(3) { animation: navLinkFade 0.5s ease forwards 0.5s; }
    #navbar .nav-active li:nth-child(4) { animation: navLinkFade 0.5s ease forwards 0.6s; }
    #navbar .nav-active li:nth-child(5) { animation: navLinkFade 0.5s ease forwards 0.7s; }
    #navbar .nav-active li:nth-child(6) { animation: navLinkFade 0.5s ease forwards 0.8s; }


    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    #navbar .nav-links li a {
        font-size: 1.5rem;
    }

    .burger {
        display: flex;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding-top: 80px;
        height: auto;
        min-height: 100vh;
        justify-content: flex-start;
    }

    .hero .greeting {
        font-size: 1.3rem;
    }

    .hero .name {
        font-size: 2.5rem;
    }

    .profile-image-container {
        width: 200px;
        height: 200px;
        margin: 15px 0 25px;
    }

    .dynamic-text-container {
        font-size: 1.3rem;
        min-height: 2rem;
        margin-bottom: 30px;
    }

    .cta-buttons.social-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
    }

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

    .social-icon img {
        width: 25px;
        height: 25px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .skill-card {
        padding: 20px 10px;
    }

    .skill-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    .skill-card h3 {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-card {
        margin: 0 15px;
    }

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

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

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .cert-item .cert-icon {
        height: 150px;
    }

    .contact-content {
        gap: 30px;
    }

    #contact-form, .social-links {
        width: 95%;
        min-width: unset;
        padding: 25px;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    .social-links h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .social-links ul li a {
        font-size: 1.1rem;
        gap: 10px;
    }

    .social-links ul li a img {
        width: 25px;
        height: 25px;
    }

    footer {
        padding: 20px 0;
    }
    footer .footer-social-icons {
        gap: 15px;
        font-size: 18px;
    }
    footer .footer-social-icons img {
        width: 28px;
        height: 28px;
    }

    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }
}