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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle at top left, #0f172a 30%, #1e293b);
    color: #f8fafc;
    overflow-x: hidden;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}
    .hero .btn-outline {
        border: 2px solid #00eaff;
        color: #edede6;
        background: transparent;
        box-shadow: 0 0 10px rgba(0, 234, 255, 0.3);
        transition: all 0.4s ease;
    }

        .hero .btn-outline:hover {
            background: linear-gradient(135deg, #00eaff, #38bdf8);
            color: #edede6;
            box-shadow: 0 0 25px rgba(0, 234, 255, 0.8);
            transform: scale(1.08);
        }

    .hero::after {
       /* content: "";*/
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top, rgba(56, 189, 248, 0.1), transparent);
    }

    .hero h1 {
        font-size: 2.8rem;
        font-weight: 700;
        z-index: 2;
    }

        .hero h1 span {
            color: #38bdf8;
            text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
        }

    .hero h3 {
        font-weight: 400;
        opacity: 0.9;
        margin-top: 12px;
    }

.hero-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
}
/* ================= HERO MOBILE FIX ================= */
@media (max-width: 768px) {

    /* Apply ONLY to hero section → safe */
    header.hero {
        height: auto;
        padding: 120px 20px 80px;
        text-align: center;
        background-position: right;
    }

        header.hero h1 {
            font-size: 1.9rem;
            line-height: 2.3rem;
            word-break: break-word;
        }

        header.hero h3 {
            font-size: 1rem;
            line-height: 1.4rem;
            margin-top: 10px;
            padding: 0 5px;
        }

        header.hero .summary {
            font-size: 0.9rem;
            margin-top: 12px;
            line-height: 1.4rem;
            padding: 0 10px;
        }

        /* Button fixes */
        header.hero .hero-buttons {
            flex-direction: column;
            gap: 12px;
            /*width: 100%;*/
            padding: 0 20px;
        }

            header.hero .hero-buttons a {
               /* width: 100%;*/
                padding: 12px 0;
                font-size: 1rem;
            }
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 45px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
}
.hero .summary {
    max-width: 850px;
    margin: 20px auto 0;
    line-height: 1.8;
    font-size: 1.05rem;
}
.hero h3 {
    font-weight: 400;
    opacity: 0.9;
    margin-top: 12px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/*.btn-primary,
.btn-outline {
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

    .btn-primary:hover {
        transform: scale(1.08);
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.7);
    }

.btn-outline {
    border: 2px solid #38bdf8;
    color: #38bdf8;
}

    .btn-outline:hover {
        background: #38bdf8;
        color: #0f172a;
    }
*/

/* 🌟 Modern Button Design */
.btn-primary,
.btn-outline {
    position: relative;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

/* Primary Button (Gradient Glow) */
.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

    .btn-primary:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.9);
    }

/* Outline Button (Transparent with Glow) */
.btn-outline {
    border: 2px solid #38bdf8;
    color: #38bdf8;
    background: transparent;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.2);
}

    .btn-outline:hover {
        background: linear-gradient(135deg, #38bdf8, #0ea5e9);
        color: #0f172a;
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.9);
    }

    /* Optional ripple-like animation */
    .btn-primary::after,
    .btn-outline::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.2);
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.4s ease;
        border-radius: inherit;
        z-index: -1;
    }

    .btn-primary:hover::after,
    .btn-outline:hover::after {
        opacity: 1;
        transform: scale(1);
    }

/* ================= SECTIONS ================= */
.section {
    padding: 90px 10%;
    text-align: center;
    position: relative;
}

    .section h2 {
        color: #38bdf8;
        font-size: 2rem;
        margin-bottom: 50px;
        position: relative;
        display: inline-block;
    }

        .section h2::after {
            content: "";
            width: 60%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #38bdf8, transparent);
            position: absolute;
            bottom: -10px;
            left: 20%;
            border-radius: 2px;
        }

/* ================= PROJECT CARDS ================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transform-style: preserve-3d;
}

    .project-card:hover {
        transform: translateY(-10px) rotate3d(1, 1, 0, 6deg);
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    }

    .project-card img {
        width: fit-content;
        height: 150px; /* ↓ reduced from 200px */
        object-fit: cover;
        transition: transform 0.6s ease;
        border-radius: 10px; /* optional: smoother edges */
        position: relative;
    }

    .project-card:hover img {
        transform: scale(1.08); /* slightly less aggressive zoom */
    }


.card-overlay {
    padding: 22px;
    /*text-align: left;*/
}

    .card-overlay h3 {
        font-size: 1.2rem;
        color: #38bdf8;
        margin-bottom: 8px;
    }

    .card-overlay p {
        color: #e2e8f0;
        font-size: 0.95rem;
        opacity: 0.9;
        line-height: 1.5;
        min-height: 72px;
    }

.card-actions {
    /*display: flex;*/
    justify-content: flex-start;
    gap: 10px;
    margin-top: 15px;
}

    .card-actions button {
        background: #38bdf8;
        border: none;
        color: #0f172a;
        font-weight: 600;
        border-radius: 25px;
        padding: 8px 16px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .card-actions button:hover {
            background: #0ea5e9;
            box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
            transform: scale(1.05);
        }

/* ================= MODAL ================= */
.project-modal {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease;
}

.modal-content {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 15px;
    padding: 35px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    animation: slideUp 0.6s ease;
}

.close-btn {
    float: right;
    font-size: 26px;
    color: #38bdf8;
    cursor: pointer;
}

    .close-btn:hover {
        color: #0ea5e9;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ================= SKILLS ================= */
.skills-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

    .skills-carousel span {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 30px;
        padding: 12px 24px;
        color: #fff;
        font-weight: 500;
        transition: all 0.4s ease;
        cursor: pointer;
    }

        .skills-carousel span:hover {
            background: linear-gradient(135deg, #38bdf8, #0ea5e9);
            transform: scale(1.1);
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
        }

/* ================= CONTACT ================= */
.contact-form {
    max-width: 480px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .contact-form input,
    .contact-form textarea {
        background: rgba(255, 255, 255, 0.08);
        border: none;
        border-radius: 8px;
        color: #fff;
        padding: 12px;
        font-size: 0.95rem;
    }

    .contact-form button {
        background: linear-gradient(135deg, #38bdf8, #0ea5e9);
        border: none;
        color: #0f172a;
        font-weight: bold;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .contact-form button:hover {
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
        }

/* ================= FOOTER ================= */
footer {
    background: #0f172a;
    text-align: center;
    padding: 25px;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    font-size: 14px;
}

.social-links a {
    color: #38bdf8;
    text-decoration: none;
}

    .social-links a:hover {
        text-decoration: underline;
    }

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 70px 6%;
    }

    .project-card img {
        height: 180px;
    }

    .card-actions {
        flex-direction: column;
    }

        .card-actions button {
            width: 100%;
        }
}

/* demoNotify - Toast Notification (Top Center) */
.toast {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: linear-gradient(135deg, #6366f1, #3b82f6);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 25px rgba(59, 130, 246, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 9999;
    letter-spacing: 0.3px;
}

    .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

/* Your existing @media code here... */

/* ================= FIXES FOR BETTER MOBILE RESPONSIVE ================= */
/*@media (max-width: 768px) {*/

    /* HERO FIX */
    /*.hero {
        height: auto;
        padding: 120px 20px;
        text-align: center;
    }

        .hero h1 {
            font-size: 1.8rem;
            line-height: 2.2rem;
        }

        .hero h3 {
            font-size: 1rem;
        }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }*/

    /* PROJECT CARD FIX */
    /*.project-grid {
        grid-template-columns: 1fr !important;
    }

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

    /* SECTION PADDING FIX */
    /*.section {
        padding: 40px 20px;
    }

        .section h2 {
            font-size: 1.6rem;
        }
}*/

/* Prevent horizontal scroll */
/** {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;*/
/*}*/
