:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --primary-color: #38bdf8;
    --secondary-color: #818cf8;
    --accent-color: #c084fc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 41, 59, 0.7);
    --nav-bg: rgba(15, 23, 42, 0.8);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: padding 0.3s;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
}

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

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

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(150px);
    opacity: 0.3;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(150px);
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping */
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 300px;
    /* Ensure it takes space */
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.hero-socials a {
    font-size: 1.5rem;
    margin-right: 20px;
    color: #94a3b8;
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    display: inline-block;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    min-width: 300px;
    /* Ensure it takes space */
}

.hero-img img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.2);
    animation: float 6s ease-in-out infinite;
}

.placeholder-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 5px solid var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Timeline (Experience & Education) */
.timeline {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    /* Allow wrapping */
}

.timeline-column {
    flex: 1;
    min-width: 300px;
}

.timeline-column h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.timeline-item {
    background: var(--glass-bg);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateY(-5px);
    background: var(--card-bg);
}

.timeline-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-item .company,
.timeline-item .institution {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-item .date {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

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

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

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

.project-card {
    background: var(--glass-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
}

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

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.project-info p {
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tech span {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

.btn-sm {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.btn-sm:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Contact */
.contact-content {
    text-align: center;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    color: #94a3b8;
}

.footer .socials {
    margin-top: 20px;
}

.footer .socials a {
    font-size: 1.2rem;
    margin: 0 10px;
    color: var(--text-color);
}