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

/* ---------- Variables ---------- */
:root {
    --bg-color: #121212;
    --second-bg-color: #1a1a1a;
    --text-color: #ffffff;
    --main-color: #00a8ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
}

/* ---------- Base Styles ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: var(--font-inter);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-outfit);
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 800;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1rem;
    color: var(--text-color);
    margin-left: 3rem;
    font-weight: 400;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.btn-contact {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    font-size: 0.9rem;
    transition: 0.3s;
    font-family: var(--font-outfit);
}

.btn-contact:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #121212;
}

/* ---------- Sections ---------- */
section {
    padding: 6rem 9% 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.ghost-text {
    font-family: var(--font-outfit);
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    font-weight: 800;
    letter-spacing: 5px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.view-more {
    font-size: 0.9rem;
    color: var(--main-color);
    margin-top: 10px;
    display: inline-block;
    transition: 0.3s;
}

.view-more:hover {
    text-shadow: 0 0 10px var(--main-color);
}

/* ---------- Hero Section ---------- */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 4rem;
}

.home-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-outfit);
}

.home-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    font-family: var(--font-outfit);
    margin: 10px 0;
}

.text-animation {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.text-animation span {
    color: var(--main-color);
}

.home-content p {
    font-size: 1rem;
    margin: 2rem 0;
    line-height: 1.8;
    color: #a0a0a0;
    max-width: 600px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-right: 15px;
    transition: .3s;
}

.social-icons a:hover {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #121212;
    box-shadow: 0 0 15px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
    font-size: 1rem;
    color: #121212;
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .3s;
    margin-top: 2rem;
}

.btn:hover {
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.6);
}

.home-img .img-box {
    width: 350px;
    height: 350px;
    background: var(--second-bg-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    border-radius: 20px;
}

.glow-effect {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--main-color);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 1;
}

/* ---------- Projects Section ---------- */
.projects {
    background: var(--second-bg-color);
}

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

.project-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: .4s;
    position: relative;
    overflow: hidden;
}

.project-box:hover {
    transform: translateY(-10px);
    border-color: var(--main-color);
}

.project-icon {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.project-box h3 {
    font-size: 1.4rem;
    font-family: var(--font-outfit);
    margin-bottom: 1rem;
}

.project-box p {
    font-size: 0.95rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-box .date {
    position: absolute;
    bottom: 2.5rem;
    font-size: 0.8rem;
    color: var(--main-color);
    font-weight: 600;
}

/* ---------- Skills Section ---------- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.skill-box {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 15px;
    transition: .4s;
}

.skill-box:hover {
    background: rgba(255, 255, 255, 0.08);
}

.skill-icon {
    font-size: 4rem;
    color: var(--main-color);
    margin-right: 2rem;
    text-shadow: 0 0 15px rgba(0, 168, 255, 0.4);
}

.skill-box h3 {
    font-family: var(--font-outfit);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.skill-box p {
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
}

/* ---------- Education Section ---------- */
.education {
    background: var(--second-bg-color);
}

.edu-container {
    display: flex;
    gap: 4rem;
}

.edu-column {
    flex: 1;
}

.column-title {
    font-family: var(--font-outfit);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--main-color);
}

.timeline-box {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -33px;
    width: 15px;
    height: 15px;
    background: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--main-color);
}

.timeline-item h4 {
    font-size: 1.2rem;
    font-family: var(--font-outfit);
    margin-bottom: 0.3rem;
}

.timeline-item span {
    font-size: 0.95rem;
    color: #cccccc;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--main-color);
    margin-top: 0.5rem;
}

.timeline-desc {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #a0a0a0;
    line-height: 1.5;
}

.cert-icon {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.hobbies-list h4 {
    font-size: 1.2rem;
    font-family: var(--font-outfit);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.hobbies-list ul {
    list-style: none;
}

.hobbies-list ul li {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.hobbies-list ul li i {
    color: var(--main-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* ---------- Contact Section ---------- */
.contact-container {
    display: flex;
    gap: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 15px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-family: var(--font-outfit);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #a0a0a0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--main-color);
    margin-right: 15px;
}

.contact-item span {
    font-size: 1rem;
    color: #e0e0e0;
}

.contact-socials {
    margin-top: 2rem;
}

.contact-form {
    flex: 1.5;
}

.contact-form .input-row {
    display: flex;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
}

.contact-form .btn-submit {
    width: 100%;
    margin-top: 0;
    cursor: pointer;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--second-bg-color);
    padding: 2rem 9%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #a0a0a0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }
    section {
        padding: 5rem 5% 2rem;
    }
    .home {
        flex-direction: column;
        text-align: center;
        margin-top: 5rem;
    }
    .home-content p {
        margin: 2rem auto;
    }
    .edu-container, .contact-container {
        flex-direction: column;
    }
    .navbar {
        display: none; /* In a full project, you'd add a hamburger menu here */
    }
}
