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

:root {
    --primary-bg: #121417; /* Main background */
    --secondary-bg: #1c1e22; /* Lighter section background */
    --accent-color: #e0b88b; /* Highlight color for buttons, active links */
    --text-color: #e3e3e3; /* Main text */
    --subtle-gray: #3a3a3a; /* Borders, inactive elements */
    --hover-color: #ff914d; /* Icons & hover effects */
    --font-main: 'Poppins', sans-serif;
}

body {
    background: var(--primary-bg);
    font-family: var(--font-main);
    color: var(--text-color);
}
html{
    scroll-behavior: smooth-scroll;
}

/* ================= NAVBAR STYLING ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 20px;
    z-index: 1000;
    background: rgba(18, 20, 23, 0.9); /* Dark transparent */
    border-bottom: 1px solid var(--subtle-gray);
}

/* LOGO */
.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
}
.logo span {
    color: var(--text-color);
}

/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transform: scaleX(-1);
}

.menu-toggle .bar1 {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}
.menu-toggle .bar2 {
    width: 20px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}
.menu-toggle .bar3 {
    width: 10px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* NAVIGATION LIST */
.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-list li {
    padding: 0 15px;
}

/* NAV LINKS */
.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 15px;
    transition: 0.3s ease-in-out;
}

/* ACTIVE LINK */
.nav-list a.active {
    background: rgba(255, 145, 77, 0.2); /* Slight highlight */
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--hover-color);
}

/* HOVER EFFECT */
.nav-list a:hover {
    background: rgba(255, 145, 77, 0.2);
    border-radius: 8px;
    color: var(--hover-color);
}

/* ========== MOBILE RESPONSIVE MENU ========== */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: var(--secondary-bg);
        border-radius: 10px;
        flex-direction: column;
        text-align: center;
        display: none;
    }

    .nav-list li {
        padding: 5px 0;
    }

    .nav-list.active {
        display: flex;
        background: rgba(28, 30, 34, 0.95);
    }

    .nav-list a {
        width: 100%;
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--subtle-gray);
    }

    .nav-list a:hover,
    .nav-list a.active {
        background: rgba(255, 145, 77, 0.2);
        color: var(--hover-color);
    }
}

/* ========== HERO SECTION ========== */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 30px;
    position: relative;
    background: var(--primary-bg);
    color: var(--primary-text);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* When in Viewport */
#hero.show {
    opacity: 1;
    transform: translateY(0);
}

/* Apply animation when in viewport */
#hero.show .hero-text,
#hero.show .hero-image {
    opacity: 1;
    transform: translateX(0);
}
/* Hero Container */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 1200px;
    width: 100%;
}

/* HERO TEXT */
.hero-text {
    flex: 1;
    text-align: left;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-text h1 {
    font-size: 35px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 500px;
    color: var(--secondary-text);
}

/* Typing Text Effect */
#typing-text {
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Montserrat', sans-serif;
}

/* BUTTONS */
.hero-buttons {
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s ease-in-out;
    margin: 10px;
}

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

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

.btn-secondary {
    background-color: rgba(225, 225, 225, 0.2);
    color: var(--accent-color);
    padding: 12px 15px;
}

.btn-secondary i {
    font-size: 18px;
}

.btn-secondary:hover {
    background: var(--social-hover);
}

/* SOCIAL ICONS */
.social-icons {
    margin-top: 30px;
    margin-bottom: 30px;
    width: auto;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-right: 15px;
    transition: 0.3s;
    background-color: var(--social-bg);
    padding: 12px 15px;
    border-radius: 50%;
    background-color: rgba(225, 225, 225, 0.2);
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* HERO IMAGE (Circular Container) */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--social-bg);
    box-shadow: 0px 0px 15px rgba(255, 165, 0, 0.7);
}

/* WATERMARK TEXT */
.watermark {
    position: absolute;
    bottom: 10px;
    right: 30px;
    font-size: 60px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
}

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

    .hero-text {
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .watermark {
        font-size: 30px;
        margin: 20px;
        left: 3px;
    }
}

/* About Section */
#about-me {
    padding: 80px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-bg); /* Main background */
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    width: 90%;
    background: rgba(255, 255, 255, 0.1); /* Glass effect */
    border-radius: 15px;
    backdrop-filter: blur(12px);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Profile Image */
.about-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Text Content */
.about-text {
    flex: 1;
    font-family: var(--font-main);
}

.about-text h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--accent-color); /* Highlight color */
    margin-bottom: 15px;
}

.about-text p {
    font-size: 18px;
    color: var(--text-color); /* Main text color */
    line-height: 1.6;
    margin-bottom: 10px;
}

/* About Info */
.about-info {
    display: flex;
    gap: 40px;
    margin: 20px 0;
}

.about-info div {
    background: var(--secondary-bg); /* Lighter section background */
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
    text-align: center;
}

.about-info h4 {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.about-info p {
    font-size: 16px;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.primary-btn {
    background: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.primary-btn:hover {
    background: var(--hover-color); /* Hover effect */
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
    }

    .about-image img {
        width: 180px;
        height: 180px;
    }

    .about-info {
        flex-direction: column;
        gap: 20px;
    }

    .about-text h2 {
        font-size: 32px;
    }

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

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

@media (max-width: 768px) {
    .about-text h2 {
        font-size: 28px;
    }

    .about-text p {
        font-size: 15px;
    }

    .about-image img {
        width: 150px;
        height: 150px;
    }

    .btn {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* Service Section*/
#services {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* Flexbox Layout */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Service Card */
#services {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

/* Service Card */
.service-card {
    background: var(--secondary-bg);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    width: 100%; /* Full width on mobile */
    max-width: 400px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.service-card i {
    font-size: 40px;
    margin-bottom: 10px;
    color: var(--hover-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
}

.service-card p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive: 3x2 Layout for Desktop */
@media (min-width: 1024px) {
    .services-container {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row; /* Arrange in rows */
        justify-content: center;
        gap: 20px;
    }
    .service-card {
        flex: 1 1 calc(33.333% - 20px); /* 3 per row */
        max-width: 350px;
    }
}

#skills {
    padding: 80px 20px;
    background-color: var(--bg-dark);
    text-align: center;
    color: var(--text-white);
}

.skills-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 280px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.skill-card::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    transition: var(--transition);
}

.skill-card:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: 0.1;
}

.skill-card i {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.skill-card:hover i {
    transform: rotate(10deg);
}

.skill-card h3 {
    font-size: 22px;
    font-weight: bold;
}

.skill-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
}

/* Responsive Layout */
@media (min-width: 768px) {
    .skills-container {
        justify-content: space-between;
    }
    .skill-card {
        width: calc(50% - 20px);
    }
}

@media (min-width: 1024px) {
    .skill-card {
        width: calc(25% - 20px);
    }
}

/* Portfolio Section */
#portfolio {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

/* Portfolio Grid */
.portfolio-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Portfolio Item */
.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--secondary-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    opacity: 0; /* Initially hidden */
    transform: translateY(30px); /* Fade-in from below */
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.portfolio-item h3{
    margin: 20px auto;
    color: var(--accent-color);
}

/* Animation when scrolled into view */
.portfolio-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Image Styling */
.portfolio-item img {
    max-width: 200px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-radius: 100px;
    height: 200px;
    transition: transform 0.5s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.05); /* Zoom effect */
}

/* Live Demo Button */
.portfolio-item a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background: var(--hover-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.portfolio-item a:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

/* Responsive: 3 Columns on Desktop */
@media (min-width: 1024px) {
    .portfolio-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .portfolio-item {
        flex: 1 1 calc(33.333% - 20px);
        max-width: 350px;
        text-align: left;
    }

    /* Left to Right Animation for Desktop */
    .portfolio-item:nth-child(odd) {
        transform: translateX(-50px);
    }
    .portfolio-item:nth-child(even) {
        transform: translateX(50px);
    }

    .portfolio-item.show {
        transform: translateX(0);
    }
}

/* Responsive: Adjust for smaller devices (tablets, mobile) */
@media (max-width: 768px) {
    .portfolio-container {
        gap: 20px;
    }

    .portfolio-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .portfolio-item img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Get In Touch*/
#contact {
    background: var(--secondary-bg);
    padding: 5rem 2rem;
    text-align: center;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
}

.contact-title {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-title span {
    color: var(--accent-color);
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info {
    color: var(--text-color);
    text-align: left;
}
.contact-content .contact-info p {
    line-height: 1.8; /* Adjust this value to suit your design */
}
.contact-info p {
    margin-bottom: 1rem;
    gap: 1.5rem;
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-socials {
    margin-top: 1.5rem;
}

.contact-socials a {
    color: var(--text-color);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.contact-socials a:hover {
    color: var(--accent-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group input,
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: var(--primary-bg);
    color: var(--text-color);
}

.contact-button {
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-button i {
    margin-left: 0.5rem;
}

.contact-button:hover {
    background: var(--hover-color);
}
/* Contact Section Initial State */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* When in Viewport */
.reveal-section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop View */
@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .contact-info {
        max-width: 40%;
    }

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

    .input-group {
        flex-direction: row;
    }

    .input-group input {
        width: 48%;
    }
}

/* Footer Styling */
#footer {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    color: var(--text-color);
    text-align: left;
    border-top: 1px solid var(--accent-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
}

/* Footer Brand */
.footer-brand h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-brand p {
    font-size: 1rem;
    opacity: 0.7;
    color: var(--text-color);
}

/* Footer Links */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin: 0.5rem 0;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Footer Contact */
.footer-contact p {
    margin: 0.5rem 0;
}

/* Social Icons */
.footer-socials .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-socials a {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--accent-color);
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--accent-color);
}

/* Desktop Layout */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-socials .social-icons {
        justify-content: flex-start;
    }
}