:root {
    --primary-color: #00b894;
    --primary-dark-color: #019874;
    --text-color-light: #111;
    --text-color-medium: #333;
    --background-light: #f6f8fc;
    --background-white: white;
    --border-color-light: #ccc;
    --shadow-color: rgba(0,0,0,0.08);
    --shadow-color-hover: rgba(0,0,0,0.15);
    --dark-mode-background: #0d1117;
    --dark-mode-section-background: #161b22;
    --dark-mode-text-color: #f0f0f0;
    --dark-mode-text-color-medium: #c9d1d9;
    --dark-mode-border-color: #333;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: Arial, sans-serif;
    background: var(--background-light);
    color: var(--text-color-light);
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    background: var(--text-color-light);
    color: var(--background-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--background-white);
    font-weight: bold;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-btn {
    background: var(--primary-color);
    padding: 8px 15px;
    border-radius: 6px;
}

/* ACTIVE NAV LINK */
.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

/* DARK MODE TOGGLE BUTTON */
.toggle-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.toggle-btn:hover {
    background: var(--primary-color);
    color: var(--background-white);
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 40px;
    max-width: 1100px;
    margin: auto;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.hero-text span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
    color: var(--text-color-medium);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

#typing-text {
    color: var(--primary-color);
    font-weight: bold;
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

.hero-subtext {
    margin-top: 10px;
    font-size: 16px;
    color: var(--text-color-medium);
}

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

/* SOCIAL ICONS */
.social-icons {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 22px;
    color: var(--primary-color);
    background: var(--background-white);
    padding: 10px 12px;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0px 2px 8px var(--shadow-color);
}

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


.btn {
    background: var(--primary-color);
    color: var(--background-white);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

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

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-white);
}

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

.btn-small-outline:hover {
    background: var(--primary-color);
    color: var(--background-white);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-box {
    width: 260px;
    height: 260px;
    background: var(--background-light);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 6px solid var(--primary-color);
    box-shadow: 0px 5px 15px var(--shadow-color-hover);
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* SECTION */
.section {
    background: var(--background-white);
    max-width: 1100px;
    margin: 20px auto;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0px 2px 10px var(--shadow-color);
}

.section h2 {
    margin-bottom: 15px;
    font-size: 26px;
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
}

/* CONTACT FORM */
.contact-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 250px;
}

.contact-info h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: var(--text-color-light);
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-color-medium);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.contact-form {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color-light);
    outline: none;
    font-size: 15px;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}


/* SKILLS */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-card:hover {
    transform: scale(1.05);
    transition: 0.3s;
    cursor: pointer;
}

.skill-card {
    background: var(--primary-color);
    color: var(--background-white);
    padding: 10px 18px;
    border-radius: 20px;
    font-weight: bold;
}

/* PROJECTS */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--background-light);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0px 2px 8px var(--shadow-color);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 18px;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 6px 15px var(--shadow-color-hover);
}

.project-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.project-card p {
    font-size: 14px;
    color: var(--text-color-medium);
}

/* TESTIMONIALS */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: var(--background-light);
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    border-left: 5px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 4px 12px var(--shadow-color-hover);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-color-medium);
}

.testimonial-card h4 {
    margin-bottom: 3px;
    color: var(--text-color-light);
}

.testimonial-card span {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
}

/* BOTTONS */
.btn-small {
    background: var(--primary-color);
    color: var(--background-white);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.btn-small-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* CONTACT */
.contact-box p {
    margin-bottom: 10px;
}

.contact-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

/* SERVICES */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--background-light);
    padding: 25px;
    border-radius: 12px;
    transition: 0.3s;
    border-left: 5px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 3px 12px var(--shadow-color-hover);
}

.service-card h3 {
    margin-bottom: 10px;
    color: var(--text-color-light);
}

/* DARK MODE THEME */
body.dark-mode {
    background: var(--dark-mode-background);
    color: var(--dark-mode-text-color);
}

body.dark-mode .section {
    background: var(--dark-mode-section-background);
    color: var(--dark-mode-text-color);
}

body.dark-mode .project-card,
body.dark-mode .service-card {
    background: var(--dark-mode-background);
    color: var(--dark-mode-text-color);
}

body.dark-mode .project-card p,
body.dark-mode .service-card p,
body.dark-mode .contact-info p {
    color: var(--dark-mode-text-color-medium);
}

body.dark-mode .navbar {
    background: var(--dark-mode-section-background);
}

body.dark-mode .footer {
    background: var(--dark-mode-section-background);
}

body.dark-mode .btn-outline,
body.dark-mode .btn-small-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .btn-small-outline:hover,
body.dark-mode .btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-white);
}

body.dark-mode input,
body.dark-mode textarea {
    background: var(--dark-mode-background);
    color: var(--background-white);
    border: 1px solid var(--dark-mode-border-color);
}

body.dark-mode .testimonial-card {
    background: var(--dark-mode-background);
    color: var(--dark-mode-text-color);
}

body.dark-mode .testimonial-card p {
    color: var(--dark-mode-text-color-medium);
}

body.dark-mode .footer {
    background: var(--dark-mode-section-background);
}

body.dark-mode .footer-bottom {
    border-top: 1px solid var(--dark-mode-border-color);
}

body.dark-mode .hero-subtext {
    color: var(--dark-mode-text-color-medium);
}

body, .section, .navbar, .footer {
    transition: background 0.4s ease, color 0.4s ease;
}

body.dark-mode #backToTop {
    background: var(--primary-color);
    color: var(--background-white);
}

/* SCROLL ANIMATION */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0px);
}

/* FOOTER */
.footer {
    background: var(--text-color-light);
    color: var(--background-white);
    padding: 50px 20px 15px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-about h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-about span {
    color: var(--primary-color);
}

.footer-about p {
    color: var(--dark-mode-text-color-medium);
    font-size: 14px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--dark-mode-text-color-medium);
    font-size: 14px;
    transition: 0.3s;
}

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

.footer-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-icons a {
    font-size: 20px;
    color: var(--primary-color);
    background: var(--background-white);
    padding: 10px 12px;
    border-radius: 50%;
    transition: 0.3s;
}

.footer-icons a:hover {
    background: var(--primary-color);
    color: var(--background-white);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid var(--dark-mode-border-color);
    padding-top: 15px;
    font-size: 14px;
    color: var(--dark-mode-text-color-medium);
}

/* BACK TO TOP BUTTON */
    #backToTop {
        position: fixed;
        bottom: 25px;
        right: 25px;
        background: var(--primary-color);
        color: var(--background-white);
        border: none;
        padding: 12px 14px;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        display: none;
        z-index: 2000;
        box-shadow: 0px 4px 10px var(--shadow-color-hover);
        transition: 0.3s;
    }

    #backToTop:hover {
        background: var(--primary-dark-color);
        transform: translateY(-5px);
    }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .contact-container {
        flex-direction: column;
    }

}
