/* --- CYBER-GRADIENT THEME --- */
:root {
    --bg-color: #09090b; /* Almost Black */
    --card-bg: #18181b; /* Dark Zinc */
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    
    /* THE MAGIC GRADIENT */
    --gradient-main: linear-gradient(135deg, #a855f7 0%, #ec4899 100%); /* Purple to Pink */
    --gradient-hover: linear-gradient(135deg, #9333ea 0%, #db2777 100%);
    --glow: rgba(168, 85, 247, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.7; 
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- LAYOUT --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }
section { padding: 100px 0; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    display: inline-block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Makes text gradient */
    position: relative;
}

/* --- NAVBAR --- */
nav {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 9, 11, 0.8); /* See-through */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: #fff;
}
.logo span { color: #d946ef; } /* Pink Dot */

.nav-links { display: flex; gap: 40px; }
.nav-links a { 
    font-size: 0.9rem; 
    font-weight: 600; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover { color: #fff; }

/* --- HERO SECTION --- */
/* --- HERO SECTION (Updated) --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes text left, image right */
    padding-top: 80px; /* Space for navbar */
}

/* Left Side (Text) */
.hero-content {
    flex: 1; /* Takes up half the space */
    max-width: 600px;
    z-index: 2; /* Keeps text above background */
}

/* Right Side (Image Box) */
.hero-image-box {
    flex: 1; /* Takes up the other half */
    display: flex;
    justify-content: flex-end; /* Aligns image to the right */
    position: relative;
}

/* The Image Itself */
.hero-img {
    width: 100%;
    max-width: 550px; /* Limits size so it doesn't get too huge */
    border-radius: 20px;
    /* Cool Floating Animation */
    animation: floatImage 4s ease-in-out infinite;
    /* Soft Glow Effect */
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Animation Keyframes */
@keyframes floatImage {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Mobile Responsiveness (Stack them on phones) */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse; /* Puts image on top, text below */
        text-align: center;
        justify-content: center;
        gap: 40px;
    }
    .hero-image-box { justify-content: center; }
    .hero-img { max-width: 80%; }
    .hero p { margin: 0 auto 30px auto; } /* Centers paragraph */
}
.hero h4 { 
    color: #d946ef; /* Fuchsia */
    font-weight: 600; 
    margin-bottom: 15px; 
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.hero h1 { 
    font-size: 4.5rem; 
    font-weight: 800; 
    line-height: 1.1;
    margin-bottom: 10px;
    color: #fff;
}
.hero h2 { 
    font-size: 3rem; 
    font-weight: 700;
    margin-bottom: 25px; 
    background: linear-gradient(to right, #a1a1aa, #52525b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { 
    max-width: 500px; 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    margin-bottom: 40px; 
    
}

/* MODERN GRADIENT BUTTON */
.btn {
    padding: 15px 40px;
    background: var(--gradient-main);
    color: #fff;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 20px -5px var(--glow);
    cursor: pointer;
    display: inline-block;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px var(--glow);
}

/* --- ABOUT & PHOTO --- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-muted); }

.profile-img-container {
    position: relative;
    width: 300px;
    height: 380px;
    margin: 0 auto;
}
/* Colorful border behind image */
.profile-img-container::after {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: var(--gradient-main);
    z-index: -1;
    border-radius: 20px;
    opacity: 0.6;
    filter: blur(20px); /* Glowing effect */
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.1);
}

/* --- CARDS (Education & Projects) --- */
.edu-card, .project-card {
    background: var(--card-bg);
    padding: 35px;
    margin-bottom: 25px;
    border-radius: 16px;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
/* Hover Effect: Glowy Border */
.edu-card:hover, .project-card:hover {
    transform: translateY(-7px);
    border-color: #d946ef;
    box-shadow: 0 10px 40px -10px rgba(217, 70, 239, 0.2);
}

.edu-year { 
    color: #d946ef; 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    margin-bottom: 10px; 
}
.edu-degree { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.edu-school { color: var(--text-muted); font-size: 1rem; }

/* --- SKILLS --- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.skill-item {
    background: #27272a;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: 0.3s;
}
.skill-item:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

/* --- PROJECTS SPECIFIC --- */
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.folder-icon { color: #d946ef; font-size: 2rem; }
.project-links a { color: #fff; font-size: 1.2rem; }
.project-links a:hover { color: #d946ef; }

.project-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #fff; 
    display: block; 
    margin-bottom: 15px; 
}
.project-tech { margin-top: 25px; display: flex; gap: 15px; font-family: monospace; font-size: 0.8rem; color: var(--text-muted); }

/* --- CONTACT --- */
.contact-center { text-align: center; padding: 60px 0; }
.contact-center h2 { font-size: 3.5rem; margin-bottom: 20px; color: #fff; font-weight: 800; }
.social-links { margin-top: 50px; display: flex; justify-content: center; gap: 30px; }
.social-icon { 
    font-size: 1.8rem; 
    color: var(--text-muted); 
    transition: 0.3s; 
    background: #27272a;
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.social-icon:hover { 
    background: var(--gradient-main);
    color: #fff; 
    transform: translateY(-5px); 
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero h2 { font-size: 1.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .profile-img-container { width: 100%; max-width: 300px; height: 350px; margin-bottom: 40px; }
}
/* --- CONTACT SECTION (Two Columns) --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info is smaller, Form is wider */
    gap: 50px;
    align-items: flex-start;
}

/* Left Side Styling */
.contact-info h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}
.contact-details { margin: 30px 0; }
.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1rem;
}
.detail-item i {
    color: #d946ef; /* Pink Icon */
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
}

/* Right Side (Form) Styling */
.contact-form-box {
    background: rgba(24, 24, 27, 0.6); /* Glass effect */
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: #09090b;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

/* Glowing Border on Click */
.input-group input:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: #d946ef;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.2);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Stack them */
    }
    .contact-form-box { padding: 25px; }
}