/* ===============================
   GOOGLE FONT
================================ */

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


/* ===============================
   RESET
================================ */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Poppins', sans-serif;
    background: #f6f8fc;
    color: #1f2937;
    line-height: 1.6;
    transition: 0.3s ease;
}


/* ===============================
   NAVBAR
================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    padding: 15px 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.95);

    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);

    backdrop-filter: blur(10px);
}


.logo {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}


.logo span {
    color: #2563eb;
}


/* Navigation Links */

.nav-links {
    display: flex;
    gap: 25px;
}


.nav-links a {
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;

    transition: 0.3s;
}


.nav-links a:hover {
    color: #2563eb;
}


/* Dark Mode Button */

#darkBtn {

    border: none;

    background: #111827;

    color: white;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    cursor: pointer;

    font-size: 17px;

    transition: 0.3s;

}


#darkBtn:hover {

    transform: rotate(20deg) scale(1.1);

}


/* ===============================
   HERO SECTION
================================ */

.hero {

    min-height: 90vh;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    padding: 80px 20px;

    background:
        radial-gradient(circle at top left,
        #dbeafe,
        transparent 40%),
        radial-gradient(circle at bottom right,
        #e0e7ff,
        transparent 40%);

}


.hero-content {

    max-width: 750px;

}


.profile-image {

    width: 150px;
    height: 150px;

    margin: auto;

    border-radius: 50%;

    padding: 5px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #7c3aed
    );

    box-shadow:
        0 15px 40px
        rgba(37, 99, 235, 0.25);

}


.profile-image img {

    width: 100%;
    height: 100%;

    border-radius: 50%;

    object-fit: cover;

}


.hello {

    margin-top: 25px;

    color: #2563eb;

    font-weight: 600;

}


.hero h1 {

    font-size: 48px;

    margin-top: 10px;

    color: #111827;

}


.hero h2 {

    font-size: 22px;

    font-weight: 500;

    color: #6b7280;

    margin-top: 8px;

}


.hero-text {

    max-width: 600px;

    margin: 20px auto;

    color: #6b7280;

    font-size: 16px;

}


/* Hero Buttons */

.hero-buttons {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 30px;

}


.btn {

    padding: 12px 22px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 600;

    transition: 0.3s;

}


.primary-btn {

    background: #2563eb;

    color: white;

}


.primary-btn:hover {

    background: #1d4ed8;

    transform: translateY(-3px);

}


.secondary-btn {

    border: 2px solid #2563eb;

    color: #2563eb;

}


.secondary-btn:hover {

    background: #2563eb;

    color: white;

}


/* ===============================
   GENERAL SECTION
================================ */

.section {

    width: 90%;

    max-width: 1100px;

    margin: auto;

    padding: 90px 20px;

}


.section-title {

    text-align: center;

    margin-bottom: 50px;

}


.section-title p {

    color: #2563eb;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 2px;

}


.section-title h2 {

    font-size: 34px;

    color: #111827;

    margin-top: 5px;

}


/* ===============================
   ABOUT
================================ */

.about-card {

    max-width: 850px;

    margin: auto;

    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.07);

    text-align: center;

}


.about-card p {

    margin-bottom: 15px;

    color: #6b7280;

}


/* ===============================
   SKILLS
================================ */

.skills-container {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


.skill-card {

    background: white;

    padding: 30px 20px;

    text-align: center;

    border-radius: 15px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.06);

    transition: 0.3s;

}


.skill-card:hover {

    transform: translateY(-8px);

}


.skill-card i {

    font-size: 40px;

    color: #2563eb;

    margin-bottom: 15px;

}


.skill-card h3 {

    font-size: 18px;

    margin-bottom: 5px;

}


.skill-card p {

    color: #6b7280;

    font-size: 14px;

}


/* ===============================
   PROJECTS
================================ */

.projects-container {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

}


.project-card {

    background: white;

    padding: 30px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.07);

    transition: 0.3s;

    border: 1px solid #eef2f7;

}


.project-card:hover {

    transform: translateY(-10px);

    box-shadow:
        0 20px 40px
        rgba(37, 99, 235, 0.15);

}


.project-icon {

    width: 60px;

    height: 60px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 25px;

    margin-bottom: 20px;

}


.project-card h3 {

    font-size: 21px;

    margin-bottom: 10px;

}


.project-card p {

    color: #6b7280;

    font-size: 14px;

    margin-bottom: 20px;

}


/* Technologies */

.tech {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;

}


.tech span {

    background: #eff6ff;

    color: #2563eb;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 500;

}


/* Project Buttons */

.project-buttons {

    display: flex;

    gap: 10px;

}


.project-btn {

    text-decoration: none;

    padding: 8px 14px;

    background: #2563eb;

    color: white;

    border-radius: 7px;

    font-size: 13px;

    font-weight: 500;

    transition: 0.3s;

}


.project-btn:hover {

    background: #1d4ed8;

}

/* =========================================
   PROJECT SECTION EXTRA DESIGN
========================================= */

#projects {
    position: relative;
}


/* Projects Grid */

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}


/* Project Card */

.project-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #e8edf5;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
}


/* Hover Effect */

.project-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 35px rgba(37, 99, 235, 0.15);
}


/* Project Icon */

.project-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    color: white;

    font-size: 24px;

    margin-bottom: 20px;

    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.25);
}


/* Project Title */

.project-card h3 {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 12px;
}


/* Project Description */

.project-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;

    flex-grow: 1;

    margin-bottom: 20px;
}


/* Technology Tags */

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 20px;
}


.tech span {
    background: #eff6ff;
    color: #2563eb;

    padding: 6px 11px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 600;
}


/* Project Buttons */

.project-buttons {
    display: flex;
    gap: 10px;
}


.project-btn {
    flex: 1;

    text-align: center;

    text-decoration: none;

    padding: 10px 12px;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s ease;
}


.project-btn:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}


/* =========================================
   STUDENT SAFETY SYSTEM SPECIAL CARD
========================================= */

.project-card:nth-child(4) .project-icon {
    background: linear-gradient(
        135deg,
        #dc2626,
        #f97316
    );
}


/* =========================================
   DARK MODE PROJECT SECTION
========================================= */

.dark-mode .project-card {
    background: #1e293b;
    border-color: #334155;
}


.dark-mode .project-card h3 {
    color: white;
}


.dark-mode .project-card p {
    color: #94a3b8;
}


.dark-mode .tech span {
    background: #263548;
    color: #60a5fa;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

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

    .project-card {
        padding: 24px;
    }

}


/* ===============================
   EDUCATION
================================ */

.education-card {

    max-width: 750px;

    margin: auto;

    display: flex;

    gap: 20px;

    align-items: center;

    padding: 30px;

    background: white;

    border-radius: 18px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.07);

}


.education-card i {

    font-size: 40px;

    color: #2563eb;

}


.education-card h3 {

    font-size: 18px;

}


.education-card p {

    color: #6b7280;

    font-size: 14px;

}


.education-year {

    color: #2563eb !important;

    font-weight: 600;

}


/* ===============================
   CONTACT
================================ */

.contact-section {

    text-align: center;

}


.contact-text {

    max-width: 600px;

    margin: auto;

    color: #6b7280;

}


.social-icons {

    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 30px;

}


.social-icons a {

    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    border-radius: 50%;

    background: white;

    color: #2563eb;

    font-size: 22px;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.08);

    transition: 0.3s;

}


.social-icons a:hover {

    background: #2563eb;

    color: white;

    transform: translateY(-5px);

}


.email {

    margin-top: 25px;

    color: #6b7280;

}


/* ===============================
   FOOTER
================================ */

footer {

    text-align: center;

    padding: 30px 20px;

    background: #111827;

    color: #d1d5db;

    font-size: 14px;

}


.visitor {

    margin-top: 8px;

}


#visitorCount {

    color: #60a5fa;

    font-weight: bold;

}


/* ===============================
   DARK MODE
================================ */

.dark-mode {

    background: #0f172a;

    color: white;

}


.dark-mode .navbar {

    background: rgba(15, 23, 42, 0.95);

}


.dark-mode .logo {

    color: white;

}


.dark-mode .nav-links a {

    color: #cbd5e1;

}


.dark-mode .hero {

    background:
        radial-gradient(
            circle at top left,
            #172554,
            transparent 40%
        ),
        radial-gradient(
            circle at bottom right,
            #312e81,
            transparent 40%
        );

}


.dark-mode .hero h1 {

    color: white;

}


.dark-mode .hero h2 {

    color: #cbd5e1;

}


.dark-mode .hero-text {

    color: #94a3b8;

}


.dark-mode .section-title h2 {

    color: white;

}


.dark-mode .about-card,
.dark-mode .skill-card,
.dark-mode .project-card,
.dark-mode .education-card,
.dark-mode .social-icons a {

    background: #1e293b;

    border-color: #334155;

}


.dark-mode .about-card p,
.dark-mode .project-card p,
.dark-mode .skill-card p,
.dark-mode .education-card p,
.dark-mode .contact-text,
.dark-mode .email {

    color: #94a3b8;

}


.dark-mode .project-card h3,
.dark-mode .skill-card h3,
.dark-mode .education-card h3 {

    color: white;

}


.dark-mode .social-icons a {

    color: #60a5fa;

}


/* ===============================
   MOBILE RESPONSIVE
================================ */

@media (max-width: 900px) {

    .skills-container {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .projects-container {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 600px) {

    .navbar {

        padding: 12px 5%;

    }


    .nav-links {

        display: none;

    }


    .hero {

        min-height: 85vh;

        padding: 60px 20px;

    }


    .profile-image {

        width: 120px;
        height: 120px;

    }


    .hero h1 {

        font-size: 32px;

    }


    .hero h2 {

        font-size: 17px;

    }


    .hero-text {

        font-size: 14px;

    }


    .hero-buttons {

        flex-direction: column;

        align-items: center;

    }


    .btn {

        width: 200px;

    }


    .section {

        width: 95%;

        padding: 60px 15px;

    }


    .section-title h2 {

        font-size: 28px;

    }


    .about-card {

        padding: 25px 20px;

    }


    .skills-container {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .projects-container {

        grid-template-columns:
            1fr;

    }


    .education-card {

        flex-direction: column;

        text-align: center;

    }


    .social-icons {

        gap: 12px;

    }


    .social-icons a {

        width: 45px;
        height: 45px;

        font-size: 19px;

    }

}