* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #07070e;
    --card-bg: rgba(18, 18, 35, 0.6);
    --primary-glow: #a855f7;
    --secondary-glow: #3b82f6;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    position: relative;
    min-height: 100vh;
}

a:focus, button:focus, input:focus, textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}


.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softPulse {
    0% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    }
    50% {
        box-shadow: 0 0 45px rgba(168, 85, 247, 0.35);
    }
    100% {
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
    }
}

.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
    max-width: 100%;
}

.glow-purple {
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    top: 10%;
    left: 5%;
}

.glow-blue {
    width: 300px;
    height: 300px;
    background: var(--secondary-glow);
    bottom: 20%;
    right: 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(7, 7, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.logo span {
    color: var(--primary-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.btn-nav {
    text-decoration: none;
    color: var(--text-white);
    background: var(--primary-glow);
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid var(--primary-glow);
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav:hover {
    background: transparent;
    color: var(--primary-glow);
    border-color: var(--primary-glow);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-glow);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-glow), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    text-decoration: none;
    color: var(--text-white);
    background: var(--primary-glow);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    text-decoration: none;
    color: var(--text-white);
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

.about-section {
    padding: 100px 8%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 55px; 
    align-items: center;
}

.about-img {
    display: flex;
    justify-content: center; 
    position: relative;
}

.avatar-glow {
    width: 280px;
    height: 280px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: softPulse 4s infinite ease-in-out;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-glow:hover {
    transform: scale(1.05) rotate(2deg);
}

.about-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.about-info {
    display: flex;
    gap: 40px;
}

.info-box h3 {
    font-size: 32px;
    color: var(--primary-glow);
}

.info-box p {
    font-size: 14px;
    color: var(--text-muted);
}


.features-section {
    padding: 100px 8%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.feature-icon {
    font-size: 26px;
    color: var(--primary-glow);
    margin-bottom: 20px;
    background: rgba(168, 85, 247, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.08);
}

/* ---------------------------------------------------- */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.skills-section, .portfolio-section, .contact-section {
    padding: 100px 8%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card i {
    font-size: 45px;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.15);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-img {
    height: 220px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.img-placeholder i {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.project-link {
    text-decoration: none;
    color: var(--primary-glow);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.project-link i {
    transition: 0.3s;
}

.project-link:hover i {
    transform: translateX(5px);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.15);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-glow);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 8%;
    border-top: 1px solid var(--border-color);
    background: #040409;
}

footer p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-socials a {
    color: var(--text-muted);
    margin-left: 15px;
    font-size: 20px;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--primary-glow);
}

@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .about-img {
        order: -1;
        justify-content: center; 
    }
    .about-info {
        justify-content: center;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 9, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.25);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-icon {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.modal-card h3 {
    font-size: 28px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-glow), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-card .btn-primary {
    padding: 10px 35px;
    font-size: 14px;
}

@media (max-width: 768px) {
    nav {
        padding: 16px 5%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
        left: 0;
    }

    .logo {
        font-size: 20px;
        line-height: 1;
    }

    .nav-links {
        display: none;
    }

    .btn-nav {
        padding: 8px 16px;
        font-size: 12px;
        white-space: nowrap;
        line-height: 1;
    }

    .hero {
        padding: 130px 6% 50px 6%;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 14.5px;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .about-section, .skills-section, .portfolio-section, .contact-section, .features-section {
        padding: 60px 6%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .avatar-glow {
        width: 200px;
        height: 200px;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .about-info {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }

    .skills-grid, .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 30px 6%;
    }
    
    .footer-socials {
        margin-top: 10px;
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    .footer-socials a {
        margin-left: 0;
    }
}