/* --- Google Fonts (Optional) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Syne:wght@700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --bg-hero-gradient: linear-gradient(135deg, #1d2b64, #f8cdda);
    --bg-about-gradient: #f4f4f9;
    --bg-skills-gradient: linear-gradient(135deg, #485563, #29323c);
    --bg-projects-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --bg-contact-gradient: #ffffff;

    --primary-color: #a892ee;
    --secondary-color: #72c6ef;
    --text-color: #e0e0e0;
    --text-color-dark: #333;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --card-bg: #1a1a2e;
    --navbar-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* --- Reveal Animation --- */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- Navbar --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background-color: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 400;
    font-size: 1rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease-out;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    background: var(--bg-hero-gradient);
    display: flex;
    align-items: center;
    padding-top: var(--navbar-height);
}

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

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 1.5rem;
}

.typing-text {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 600;
    height: 40px;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 700;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: #fff;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(168, 146, 238, 0.3);
}

.hero-image {
    flex: 0 0 40%;
    position: relative;
}

.hero-image img {
    border-radius: 50%;
    width: 350px;
    height: 350px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(168, 146, 238, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}


/* --- About Section --- */
.about-section {
    background: var(--bg-about-gradient);
    padding: 6rem 0;
    color: var(--text-color-dark);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-box {
    background: #fff;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 5px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.highlight-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* --- Skills Section --- */
.skills-section {
    padding: 6rem 0;
    background: var(--bg-skills-gradient);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.skill-card:hover .skill-icon {
    color: var(--secondary-color);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.progress-bar-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Projects Section --- */
.projects-section {
    padding: 6rem 0;
    background: var(--bg-projects-gradient);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-content {
    padding: 2rem;
}

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

.project-content p {
    margin-bottom: 1.5rem;
    color: #ccc;
}



/* --- Contact Section --- */
.contact-section {
    padding: 6rem 0;
    background: var(--bg-contact-gradient);
    color: var(--text-color-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: #f4f4f9;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.contact-card:hover i {
    transform: scale(1.2);
}

.contact-card h3 {
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    padding: 2rem 0;
    background: #0f0c29;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--navbar-height);
        flex-direction: column;
        background-color: #1a1a2e;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        padding: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-image img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
