/* 🌌 STARFIELD BACKGROUND */
#starfield {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: #0a0a0a;
}

/* 🌍 GLOBAL RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

/* 📦 CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 🧭 NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover { color: #667eea; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

/* 🎯 HERO SECTION */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding-top: 3rem;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 🔘 BUTTONS */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover { 
    background: rgba(102, 126, 234, 0.1); 
}

/* 📸 PROFILE */
.hero-profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 220px;
}

.profile-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
    border: 4px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(160, 30, 255, 0.4);
}

.profile-photo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 0 45px rgba(160, 30, 255, 0.9), 0 0 80px rgba(255, 80, 200, 0.6);
}

.badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    margin-top: 1rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.15);
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.badge .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #26ff70;
    box-shadow: 0 0 10px #26ff70;
}

.location-text {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #aaa;
    opacity: 0.9;
}

/* 📌 GLOBAL SECTION STYLES */
section { 
    padding: 6rem 0; 
}

.section-header { 
    margin-bottom: 3rem; 
}

.section-label {
    color: #667eea;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: #aaa;
    max-width: 700px;
}

/* 🧍 ABOUT SECTION */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
    gap: 4rem;
}

.about-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    color: #fff;
    opacity: 0.9;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 4px 4px #764ba2;
}

.about-text p {
    color: #ffffff;
    margin-bottom: 1.3rem;
    line-height: 1.75;
    font-size: 1.2rem;
}

.about-text strong,
.about-skills span {
    color: #667eea;
    font-weight: 600;
}

.about-link {
    display: inline-block;
    margin-top: 1.2rem;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.about-link:hover {
    border-color: #667eea;
}

/* 🧩 ABOUT CARDS (alternative layout) */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.about-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.about-card p { 
    color: #aaa; 
    line-height: 1.7; 
}

/* 📌 SERVICES SECTION */
.services-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr; /* better balance */
    align-items: start;
    gap: 6rem; /* extra breathing space */
}

.services-title {
    margin-top: 0.4rem; /* slight down offset */
    text-align: left;   /* keep natural reading direction */
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    color: #fff;
    opacity: 0.9;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 4px 4px #764ba2;
}

.services-text {
    font-size: 1.05rem;
    color: #aaa;
    line-height: 1.75;
}

.services-intro strong {
    color: #667eea;
}

.services-sub {
    margin-top: 1rem;
    color: #aaa;
}

.services-list-title {
    margin-top: 2rem;
    font-weight: 600;
    color: #667eea;
}

.services-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: #e0e0e0;
    list-style: none;
    padding-left: 0;
}

.services-list li {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.services-list li:hover {
    color: #667eea;
    transform: translateX(4px);
}

/* 💻 PROJECTS */
.projects-grid { 
    display: grid; 
    gap: 2rem; 
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon { 
    font-size: 2rem; 
}

.project-title { 
    font-size: 1.8rem; 
    color: #fff; 
}

.project-description {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #667eea;
}

/* 🛠 SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.skill-category h3 {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.skill-list { 
    display: flex; 
    flex-direction: column; 
    gap: 0.8rem; 
}

.skill-item {
    color: #aaa;
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-item::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #667eea;
}

/* 🎨 SKILLS ICONS */
.skills-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 55px;
    padding: 10px 0 40px;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.25s ease;
}

.skill-icon img {
    width: 9vw;
    max-width: 55px;
    min-width: 35px;
    height: auto;
    object-fit: contain;
}

.skill-icon span {
    font-size: 13px;
    opacity: 0.85;
}

.skill-icon:hover {
    transform: translateY(-4px);
}

/* 🖼️ IMAGE SLIDER */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(0,0,0,0.45);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }
.slide-btn:hover { background: black; }

.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.dots div {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.45;
    border-radius: 50%;
    cursor: pointer;
}

.dots .active {
    opacity: 1;
}

/* 📩 CONTACT */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-content p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 📝 CONTACT FORM */
.contact-form {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 550px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    background: transparent;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
}

.form-row input {
    flex: 1;
    min-width: 250px;
}

.contact-form button {
    width: fit-content;
}

/* 🔗 SOCIAL LINKS */
.social-links {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 22px;
}

.social-links img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease, opacity 0.3s;
}

.social-links img:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}

/* 🦶 FOOTER */
footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content { 
    color: #888; 
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover { 
    color: #667eea; 
}

/* 🎥 ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in { 
    animation: fadeInUp 0.8s ease-out; 
}

/* 📱 RESPONSIVE */
@media (max-width: 900px) {
    .about-layout,
    .services-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-title,
    .services-title {
        order: -1;
        text-align: center;
    }

    .services-title {
        order: -1;
    }

    .about-text p { 
        text-align: center; 
    }

    .services-list li:hover {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .hero-row {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-content { 
        text-align: center; 
    }

    .hero-buttons { 
        justify-content: center; 
    }

    .nav-links { 
        display: none; 
    }

    .container { 
        padding: 0 1.5rem; 
    }

    .hero { 
        padding-top: 100px; 
    }
}