/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --primary: #6c63ff;
    --primary-dark: #5a52d5;
    --bg: #0a0a1a;
    --bg-card: #12122a;
    --text: #e0e0e0;
    --text-light: #a0a0b8;
    --border: #2a2a4a;
    --shadow: 0 8px 32px rgba(108, 99, 255, 0.15);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 8px auto 0;
    border-radius: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 700;
}
.logo span {
    color: var(--primary);
}

/* site logo image in the header */
.site-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text);
    border-radius: 4px;
    transition: 0.3s;
}

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

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-light);
}
.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-light);
    margin: 4px 0 16px;
    min-height: 50px;
}
.typed-text {
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}
.cursor {
    display: inline-block;
    width: 3px;
    background: var(--primary);
    margin-left: 4px;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.social-icons {
    display: flex;
    gap: 18px;
}
.social-icons a {
    color: var(--text-light);
    font-size: 1.4rem;
    transition: all 0.3s;
}
.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-4px);
}

.hero-image .image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10rem;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 0 80px rgba(108, 99, 255, 0.3);
}

/* Profile photo styling (uses profile.jpg in project root) */
.profile-photo {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    border: 6px solid rgba(255,255,255,0.04);
    background-color: #fff;
}

/* Wrapper with decorative circular background behind the photo */
.profile-wrapper {
    --profile-size: 400px; /* default outer circle size */
    --circle-color: radial-gradient(circle at 30% 30%, #2dd4bf 0%, #06b6d4 45%, transparent 60%);
    position: relative;
    width: var(--profile-size);
    height: var(--profile-size);
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden; /* mask image to circle */
    background: transparent;
}
.profile-wrapper::before {
    content: '';
    position: absolute;
    width: calc(var(--profile-size) * 1.12);
    height: calc(var(--profile-size) * 1.12);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--circle-color);
    z-index: 0;
    filter: blur(10px);
}
.profile-wrapper .profile-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain; /* show whole image inside the circle */
    object-position: center;
    border-radius: 50%;
    border: 6px solid rgba(255,255,255,0.9);
    box-shadow: 0 18px 50px rgba(2,6,23,0.6);
    background-color: transparent;
}

/* ===== ABOUT ===== */
#about {
    background: var(--bg-card);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
}
.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin: 20px 0;
    color: var(--text-light);
}
.about-details strong {
    color: var(--text);
}

.about-image .image-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    border-radius: 20px;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--primary);
    margin: 0 auto;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== PROJECTS SLIDER ===== */
.projects-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 40px;
    overflow: hidden;
    border-radius: 16px;
    padding: 18px 12px;
    background: rgba(18,18,36,0.6);
    border: 1px solid rgba(255,255,255,0.03);
}
.projects-slider .slides {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(.22,.9,.35,1);
    will-change: transform;
}
.projects-slider .slide {
    min-width: 260px;
    flex: 0 0 260px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}
.slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: left center;
    border-radius: 8px;
}
.slide .slide-title {
    font-weight: 700;
    color: var(--text);
}
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.35);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.slider-prev { left: 8px; }
.slider-next { right: 8px; }
.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
}
.slider-dots button.active { background: var(--primary); }

@media (max-width: 768px) {
    .projects-slider .slide { flex: 0 0 220px; min-width: 220px; }
    .slide img { height: 120px; }
}

/* ===== SERVICES / SOLUTIONS SECTION ===== */
.services-description {
    max-width: 900px;
    margin: 12px auto 28px;
    color: var(--text-light);
    text-align: center;
    font-size: 1.05rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 24px auto;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}
.service-icon {
    font-size: 2.2rem;
    color: var(--primary);
}
.service-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text);
}
.service-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.98rem;
}
.services-cta {
    text-align: center;
    margin-top: 22px;
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
}
.services-cta .cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.project-icon {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 12px;
}
.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.project-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.project-tags span {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.project-links {
    display: flex;
    gap: 16px;
}
.project-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.project-links a:hover {
    color: var(--primary);
}
.project-links i {
    margin-right: 4px;
}

/* ===== SKILLS ===== */
#skills {
    background: var(--bg-card);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* place two related skill categories side-by-side */
.skill-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .skill-row {
        grid-template-columns: 1fr;
    }
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--primary);
}
.skill-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 14px;
}
.skill-items span {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-block;
    width: 100%;
    text-align: center;
}
.skill-items span:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

/* Show only the first 4 skills per category (2x2 grid). Hide extras. */
.skill-items span:nth-child(n+5) {
    display: none;
}

/* ===== CONTACT ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
form input,
form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text);
    font-size: 1rem;
    transition: border 0.3s;
    font-family: inherit;
}
form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
form textarea {
    resize: vertical;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.contact-info p {
    color: var(--text-light);
    margin-bottom: 24px;
}
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.contact-details div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}
.contact-details i {
    color: var(--primary);
    width: 24px;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container,
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .social-icons {
        justify-content: center;
    }
    .about-details {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 24px;
        gap: 16px;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    .hero h2 {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-image .image-placeholder {
        max-width: 250px;
        font-size: 6rem;
    }

    .profile-photo {
        max-width: 250px;
    }

    .profile-wrapper {
        --profile-size: 250px;
    }
    .about-image .image-placeholder {
        max-width: 250px;
        font-size: 5rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
}