/* General Styling with Poppins Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0d0614; /* Deep, rich background */
    color: #E2D9F3; 
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar for a premium feel */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0d0614; 
}
::-webkit-scrollbar-thumb {
    background: #3A265E; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B388EB; 
}

/* Glassmorphism Navbar */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5% ;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 6, 20, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}
.logo .dot { color: #FFCBA4; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: #E2D9F3;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: #FFCBA4; }
.nav-btn {
    border: 1px solid #B388EB;
    padding: 8px 20px;
    border-radius: 20px;
}
.nav-btn:hover { background: rgba(179, 136, 235, 0.2); }

/* Sections */
.section {
    padding: 120px 5% 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h4 {
    color: #FFCBA4;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Animated Gradient Text */
.gradient-text {
    font-size: 70px;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(-45deg, #B388EB, #FFCBA4, #B388EB, #fff);
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    max-width: 600px;
    margin-bottom: 40px;
    font-size: 18px;
    color: #a095b5;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glow-btn {
    background: linear-gradient(45deg, #B388EB, #9d66e5);
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(179, 136, 235, 0.3);
}

.glow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(255, 203, 164, 0.5);
    background: linear-gradient(45deg, #FFCBA4, #fcae74);
    color: #120A1F;
}

.outline-btn {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.outline-btn:hover {
    border-color: #B388EB;
    background: rgba(179, 136, 235, 0.1);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(179, 136, 235, 0.4);
}

/* Card Grids */
.resume-grid, .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.highlight-text {
    color: #FFCBA4;
    font-weight: 600;
    margin: 10px 0 5px;
}

.tech-stack span {
    display: inline-block;
    background: rgba(179, 136, 235, 0.15);
    color: #B388EB;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin: 10px 5px 0 0;
}

/* Highlight Text for About Section */
.summary-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: #a095b5;
}

/* =========================================
   --- NEW SKILLS GRID WITH IMAGES --- 
   ========================================= */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
}

.skill-box:hover {
    border-color: #FFCBA4;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 203, 164, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.skill-box img {
    width: 55px;
    height: 55px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.skill-box:hover img {
    transform: scale(1.1);
}

.skill-box span {
    font-size: 14px;
    font-weight: 600;
    color: #E2D9F3;
    letter-spacing: 0.5px;
}

/* GitHub logo is black by default, this makes it white for dark mode */
.invert-img {
    filter: invert(1) brightness(2);
}

/* =========================================
   --- CONTACT FORM --- 
   ========================================= */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group input { flex: 1; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #B388EB;
    background: rgba(179, 136, 235, 0.05);
}

.w-100 { width: 100%; }

/* Background Animated Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}
.orb-1 {
    width: 400px; height: 400px;
    background: rgba(179, 136, 235, 0.12);
    top: -5%; left: -5%;
}
.orb-2 {
    width: 350px; height: 350px;
    background: rgba(255, 203, 164, 0.08);
    top: 40%; right: -5%;
    animation-duration: 12s;
}
.orb-3 {
    width: 300px; height: 300px;
    background: rgba(179, 136, 235, 0.1);
    bottom: -5%; left: 30%;
    animation-duration: 8s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-40px) scale(1.1); }
}

/* Scroll Reveal */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.show {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Effect */
.typing-text {
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFCBA4;
    height: 36px;
    font-weight: 400;
}
.cursor { animation: blink 0.8s infinite; }
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #a095b5;
}