* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #0f172a;
    --second-bg-color: #1e293b;
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --main-color: #00d9ff;
    --main-color-dark: #00b4d8;
    --accent-color: #7c3aed;
    --gradient-1: linear-gradient(135deg, #00d9ff 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-glow: 0 0 30px rgba(0, 217, 255, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 10%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: sliderRight 1s ease forwards;
}

#menu {
    font-size: 24px;
    cursor: pointer;
    display: none;
    color: var(--main-color);
}

.nav-link {
    display: flex;
    gap: 35px;
}

.nav-link a {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0;
    animation: sliderTop 0.5s ease forwards;
    animation-delay: calc(0.1s * var(--i));
}

.nav-link a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link a:hover,
.nav-link a.activeS {
    color: var(--main-color);
}

.nav-link a:hover::after,
.nav-link a.activeS::after {
    width: 100%;
}

/* Home Section */
.Home {
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 10% 50px;
    gap: 50px;
}

.main {
    max-width: 600px;
}

.main h3 {
    font-size: 22px;
    font-weight: 500;
    color: #94a3b8;
    opacity: 0;
    animation: sliderBottom 1s ease forwards;
    animation-delay: 0.2s;
}

.main h1 {
    font-size: 56px;
    font-weight: 700;
    margin: 15px 0;
    background: linear-gradient(to right, #fff, var(--main-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: sliderRight 1s ease forwards;
    animation-delay: 0.4s;
}

.heading {
    font-size: 24px;
    font-weight: 600;
    opacity: 0;
    animation: sliderBottom 1s ease forwards;
    animation-delay: 0.6s;
}

.heading span {
    color: var(--main-color);
    font-weight: 700;
}

.main p {
    font-size: 16px;
    line-height: 1.8;
    color: #94a3b8;
    margin: 20px 0 30px;
    opacity: 0;
    animation: sliderLeft 1s ease forwards;
    animation-delay: 0.8s;
}

.media-icon {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.media-icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    color: var(--main-color);
    transition: all 0.3s ease;
    opacity: 0;
    animation: sliderLeft 1s ease forwards;
    animation-delay: calc(0.2s * var(--i));
}

.media-icon a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
    transform: translateY(-3px);
}

.btn-animation {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-1);
    border-radius: 50px;
    border: none;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 217, 255, 0.3);
    opacity: 0;
    animation: sliderTop 1s ease forwards;
    animation-delay: 1s;
}

.btn-animation:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

.img-box {
    position: relative;
    opacity: 0;
    animation: zoomin 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 0.5s, 2s;
}

.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.img-box img {
    max-width: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--second-bg-color);
    gap: 80px;
    padding: 100px 10%;
    min-height: 100vh;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid var(--main-color);
    border-radius: 20px;
    z-index: -1;
}

.about-img img {
    width: 350px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

.about-containt {
    max-width: 600px;
}

.about-containt h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.about-containt h2 span {
    color: var(--main-color);
}

.about-containt h3 {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.about-containt p {
    font-size: 16px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--main-color);
}

.stat-label {
    font-size: 14px;
    color: #94a3b8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50px;
    font-size: 16px;
    color: var(--main-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

/* Skills Section */
.skills {
    padding: 100px 10%;
    background: var(--bg-color);
}

.skills h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
}

.skills h2 span {
    color: var(--main-color);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: var(--shadow-glow);
}

.skill-card i {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-card h3 span {
    color: var(--main-color);
    font-size: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 10px;
    transition: width 1.5s ease;
}

/* Projects Section - NEW MODERN DESIGN */
.projects {
    padding: 100px 10%;
    background: var(--second-bg-color);
}

.projects-header {
    text-align: center;
    margin-bottom: 50px;
}

.projects h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.projects h2 span {
    color: var(--main-color);
}

.projects-subtitle {
    color: #94a3b8;
    font-size: 18px;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 30px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--main-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-color);
    font-size: 20px;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--main-color);
    margin-bottom: 15px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.project-info p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.project-tech span {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    font-size: 12px;
    color: #cbd5e1;
}

.projects-cta {
    text-align: center;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-github:hover {
    background: #fff;
    color: var(--bg-color);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-us {
    padding: 100px 10%;
    background: var(--bg-color);
}

.contact-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--second-bg-color);
    border-radius: 30px;
    padding: 60px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.contact-containt h3 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-desc {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 16px;
}

.con-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.con-box:hover {
    border-color: var(--main-color);
    transform: translateX(5px);
}

.con-box i {
    font-size: 24px;
    color: var(--main-color);
    width: 50px;
    height: 50px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.con-box span {
    display: block;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.con-box p {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.contact-con h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.input-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-group input:focus + i {
    color: var(--main-color);
}

.textarea-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

/* Footer */
.footer {
    background: #0a0f1c;
    padding: 60px 10% 20px;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about h2 {
    font-size: 28px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.footer-about p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.btn-footer {
    display: inline-block;
    padding: 12px 25px;
    background: var(--main-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-footer:hover {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

.footer-links h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--main-color);
    padding-left: 5px;
}

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

.footer-icons a {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-icons a:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
}

.footer-bottom i {
    color: #ef4444;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Animations */
@keyframes sliderRight {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes sliderLeft {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes sliderTop {
    0% { transform: translateY(100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes sliderBottom {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes zoomin {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .Home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 150px;
    }

    .main h1 {
        font-size: 40px;
    }

    .media-icon {
        justify-content: center;
    }

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-containt h2,
    .about-containt h3 {
        text-align: center;
    }

    .stats {
        justify-content: center;
    }

    .contact-main {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

@media (max-width: 768px) {
    #menu {
        display: block;
    }

    .nav-link {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        display: none;
        border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    }

    .nav-link.active {
        display: flex;
    }

    .main h1 {
        font-size: 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-filter {
        gap: 10px;
    }

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

    .contact-main {
        padding: 30px;
    }

    .con-box {
        flex-direction: column;
        text-align: center;
    }
}