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

img {
    border: 0;
}

ul,
ol {
    list-style-type: none;
}

a {
    text-decoration: none;
    font-family: 'Poppins';
}

a:hover {
    text-decoration: none;
}

/* font setup  */
@font-face {
    font-family: 'Montserrat-Bold';
    src: url("https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap");
}

h1 {
    font-size: 84px;
    line-height: 100%;
    letter-spacing: 0.84px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 64px;
}

h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 44px;
}

h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 38px;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 400;
}

/* button css  */

.primary-btn {
    display: inline-block;
    height: 65px;
    color: #FFFFFF !important;
    line-height: 50px;
    padding-left: 35px !important;
    padding-right: 35px !important;
    position: relative;
    z-index: 1;
    font-size: 22px;
    border: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background: linear-gradient(135deg, #2563EB 0%, #172554 100%);
}

.primary-btn::after {
    top: 2px;
    left: 3px;
    content: '';
    width: 97%;
    height: 94%;
    z-index: -1;
    position: absolute;
    background: #121212;
    border-radius: 50rem;
}

/* navbar  */
.navbar {
    background-color: #0f172a;
}

.navbar .nav-item .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #FFFFFF;
}

.navbar-brand img {
    max-height: 60px;
}

.collapse:not(.show) {
    display: block;
}

/* hero section  */
.hero-section {
    background-color: #0f172a;
    background-image: url('../image/network-bg.png');
    background-size: cover;
    background-position: center;
    padding-top: 150px;
    padding-bottom: 200px;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.hero-text h4 {
    color: #3b82f6;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    color: #e2e8f0;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 35px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

/* About Section */
.skills-section {
    background-color: #1e293b;
    color: white;
    padding: 90px 0;
}

.skills-text p {
    color: #e2e8f0;
}

/* Skills Section */
.projects-section {
    padding-top: 74px;
    padding-bottom: 74px;
    background-color: #0f172a;
    color: white;
}

.project-content {
    padding: 50px;
    border-radius: 20px;
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.skill-card {
    background-color: #334155;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    background-color: #3b82f6;
}

.skill-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #60a5fa;
}

.skill-card:hover .skill-icon {
    color: #ffffff;
}

/* Experience Section */
.stack-section {
    background-color: #1e293b;
    color: #ffffff;
    padding: 90px 0;
}

.experience-card {
    background-color: #334155;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
}

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

.experience-card h4 {
    font-size: 24px;
    margin-bottom: 5px;
}

.experience-card h5 {
    font-size: 18px;
    color: #3b82f6;
    margin-bottom: 5px;
}

.experience-card ul {
    padding-left: 20px;
    list-style-type: disc;
}

.experience-card ul li {
    margin-bottom: 8px;
    color: #e2e8f0;
}

/* Fade animation (3 cycles) */
.fade-effect {
    animation: fadeCycle 2s ease-in-out 3;
}

@keyframes fadeCycle {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Cursor styling */
.typed-cursor {
    color: #ffffff;
    font-size: 22px;
    animation: cursorBlink 0.7s infinite;
    transition: opacity 0.3s;
}

@keyframes cursorBlink {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Contact section  */
.contact-section {
    padding: 100px 0;
    background-color: #0f172a;
    color: white;
}

.contact-text h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 28px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.contact-text a {
    font-size: 24px;
    color: #3b82f6 !important;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: #60a5fa !important;
    text-decoration: underline;
}

/* Footer section */
.footer-section {
    padding: 64px 0;
    background-color: #0a0a0a;
    color: white;
}

.footer-text h5 {
    font-size: 35px;
}

.social-links a {
    color: white;
    font-size: 28px;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #3b82f6;
    transform: translateY(-5px);
}

/* Version switch button */
.version-switch .btn {
    border: 1px solid #60a5fa;
    color: #60a5fa;
    transition: all 0.3s ease;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
}

.version-switch .btn:hover {
    background-color: #60a5fa;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Dark theme styling */
body {
    background-color: #0f172a;
    color: white;
}

/* Certifications styling */
.cert-card {
    background-color: #334155;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    background-color: #1e40af;
}

.cert-card i {
    color: #60a5fa;
}

.cert-card:hover i {
    color: #ffffff;
}

/* Code snippet styling */
.code-section {
    background-color: #1e293b;
    padding: 80px 0;
}

.code-snippet {
    background-color: #0f172a;
    border-radius: 10px;
    padding: 25px;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    position: relative;
    margin: 30px 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border: 1px solid #334155;
}

.code-snippet pre {
    color: #e2e8f0;
    margin: 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
}

.code-snippet .language {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #3b82f6;
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* // Small devices (landscape phones, 767px and up) */
@media (max-width: 767.98px) {
    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 30px;
    }

    h4 {
        font-size: 30px;
    }

    p {
        font-size: 16px;
    }


    .navbar .nav-item .nav-link {
        font-size: 14px;
    }

    .primary-btn {
        height: 40px;
        line-height: 100%;
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 16px;
    }

    .hero-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .project-content {
        padding: 30px;
    }

    .project-text {
        bottom: -129px;
    }

    .project-text h4 {
        font-size: 40px;
    }

    .project-text p {
        font-size: 20px;
    }

    .stack-section {
        padding-bottom: 50px;
    }

    .stack-section .primary-btn {
        height: 50px;
        width: 242px;
    }

    .contact-text a {
        font-size: 24px;
    }

    .footer-text h5 {
        font-size: 24px;
    }
}

/* // Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 40px;
    }

    h3 {
        font-size: 30px;
    }

    h4 {
        font-size: 30px;
    }

    p {
        font-size: 16px;
    }

    .primary-btn {
        height: 55px;
        line-height: 100%;
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .project-content {
        padding: 30px;
    }

    .project-text {
        padding: 15px;
        bottom: -100px;
    }

    .project-text h4 {
        font-size: 40px;
        margin-bottom: 0;
    }

    .project-text p {
        font-size: 16px;
    }
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .project-text {
        padding: 15px;
        bottom: -100px;
    }

    .project-text p {
        font-size: 20px;
    }
}
