/* ====== Global Styles ====== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    margin: 0;
    color: #333;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

/* ====== Navbar ====== */
header {
    background: linear-gradient(135deg, #102522, #43caad);
    
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.navbar {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #43caad;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #43caad;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #43caad;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ====== Mobile Menu ====== */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* ====== Sections ====== */
section {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 20px;
}

h2 {
    color: #43caad;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

/* ====== Hero Section ====== */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 40px;
    background: linear-gradient(135deg, #102522, #43caad);
    color: white;
}

.hero img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.hero-text {
    max-width: 600px;
    font-size: 1.1rem;
    text-align: center; 
}

/* ====== About Section ====== */
#about {
    margin-top: 5px;
    padding: 60px 20px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: auto;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 350px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

.about-text {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.about-text p {
    margin-bottom: 15px;
}

.about-text strong {
    color: #43caad;
}

/* ====== Skills Grid ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-content: center;
}

/* Skill Card */
.skill-card {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    max-width: 320px;
    margin: auto;
}

.skill-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.skill-card img:hover {
    transform: scale(1.15);
}

.skill-info h3 {
    font-size: 1.4rem;
    margin: 12px 0 8px;
    color: #222;
}

.skill-info p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* ====== Buttons ====== */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 28px;
    background: #43caad;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background: #36b39a;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* ====== Contact Section ====== */
#contact {
    padding: 60px 20px;
    margin-top: 5px;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #43caad;
    text-align: center;
    position: relative;
}

#contact h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #43caad;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ====== Contact Form ====== */
.contact-form {
    width: 100%;
    max-width: 650px;
    background: #ffffff;
    padding: 45px 35px;
    border-radius: 25px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08), 0 6px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s ease-in-out;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12), 0 12px 30px rgba(0,0,0,0.08);
}

.contact-form h3 {
    font-size: 1.9rem;
    margin-bottom: 25px;
    color: #102522;
    text-align: center;
    letter-spacing: 0.5px;
}

.contact-form label {
    font-weight: 500;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 95%;
    padding: 16px 20px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background: #f7f9fc;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #43caad;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(67,202,173,0.25);
    outline: none;
}

.contact-form textarea {
    min-height: 180px;
    resize: none;
}

.contact-form button {
    width: 100%;
    padding: 16px 0;
    background: linear-gradient(135deg, #43caad, #36a58a);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(67,202,173,0.4);
}

.contact-form button:hover {
    background: linear-gradient(135deg, #36a58a, #2f8771);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(67,202,173,0.5);
}

/* Success message */
.contact-success {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: #27ae60;
}

/* ====== Contact Cards ====== */
.contact-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 50px;
}

.contact-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    min-width: 20px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-card a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    word-break: break-word;
}

.contact-card a:hover {
    color: #43caad;
}

.contact-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.contact-card:hover .contact-icon {
    transform: scale(1.15);
}

/* ====== Responsive Styles ====== */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 60px;
        right: 100%;
        background: #102522;
        width: 190px;
        flex-direction: column;
        text-align: center;
        padding: 10px;
        gap: 15px;
        border-radius: 0 0 10px 10px;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .about-container {
        flex-direction: column;
        min-width: 20px;
        text-align: center;
        gap: 25px;
    }
    .about-text {
        font-size: 1rem;
    }
    .about-image img {
        max-width: 220px;
    }

    .contact-form {
        padding: 30px 20px;
        max-width: 100%;
    }
    .contact-form h3 {
        font-size: 1.6rem;
    }

    .contact-cards {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 20px;
    }
    .contact-card {
        width: 100%;
        flex-direction: row;
        justify-content: flex-start;
        padding: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    #skills h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .skill-card {
        max-width: 260px;
        padding: 18px;
    }

    .skill-card img {
        width: 70px;
        height: 70px;
    }

    .skill-info h3 {
        font-size: 1.1rem;
    }

    .skill-info p {
        font-size: 0.85rem;
    }

    section {
        margin: 70px auto;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 25px 15px;
    }
    .contact-form h3 {
        font-size: 1.6rem;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 12px 14px;
    }
    .contact-form button {
        font-size: 0.9rem;
        padding: 12px 0;
    }

    .contact-cards {
        gap: 15px;
    }

    .contact-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        width: 90%;
        margin: 0 auto;
    }

    .contact-card a {
        display: block;
        margin-top: 10px;
        word-break: break-word;
    }
}

/* ====== Footer ====== */
footer {
    background: #102522;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9rem; /* keeps general footer text readable */
}

footer p {
    margin: 0; /* avoid extra spacing */
}

footer .powered-by {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #43caad; /* subtle highlight for the text */
}

footer .powered-by strong {
    color: #00bcd4; /* highlight company name */
}


/* ====== Projects Section ====== */
#projects {
    margin-top: 5px;
    padding: 60px 20px;
    text-align: center;
    background: #f9f9f9;
}

#projects h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #43caad;
    font-weight: bold;
}

.projects-nav a {
    color: #00bcd4;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.projects-nav a:hover,
.projects-nav a.active {
    background: linear-gradient(90deg, #00bcd4, #0097a7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.6);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.project-card {
    background: #fff;
    padding: 20px;
    border-radius: 18px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    max-width: 350px;
    margin: auto;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.project-img img {
    width: 100%;
    max-width: 280px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-info h3 {
    font-size: 1.4rem;
    color: #222;
    margin-bottom: 10px;
}

.project-info p {
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

/* ====== Modern Read More Button ====== */
.read-more-btn {
    background: linear-gradient(135deg, #43caad, #102522);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #102522, #43caad);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.full-desc {
    display: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.project-info.show-full .full-desc {
    display: block;
    max-height: 500px;
    opacity: 1;
}
