@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0c0c0e;
    --card-bg: #161618;
    --text-primary: #ffffff;
    --text-secondary: #949494;
    --accent-color: #3b82f6;
    /* Professional blue */
    --accent-gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(22, 22, 24, 0.7);
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

section {
    padding: 8rem 0;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    transition: var(--transition-fast);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(12, 12, 14, 0.95), rgba(12, 12, 14, 0.85)), url('../assets/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
}

.hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.hello-text {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-image-container {
    flex: 0 0 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    padding: 10px;
    position: relative;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
    animation: floating 6s ease-in-out infinite;
    transition: all 0.5s ease;
    cursor: pointer;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    filter: blur(60px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    border-radius: 50%;
}

.hero-image:hover {
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
}

.hero-image:hover::after {
    opacity: 0.4;
}

.hero-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: all 0.5s ease;
}

.hero-image:hover img {
    filter: brightness(1);
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

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

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

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 550px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

/* Sections Styling */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
}

.section-header.centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-header.centered h2 {
    position: relative;
    padding-bottom: 15px;
}

.section-header.centered h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--accent-color);
}

.underline-left {
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.underline-left::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* About Grid Redesign */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
}

.tilted-img {
    width: 320px;
    height: 400px;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    overflow: hidden;
    transform: rotate(3deg);
    transition: var(--transition-slow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.tilted-img:hover {
    transform: rotate(0deg) scale(1.05);
}

.tilted-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: var(--transition-slow);
}

.tilted-img:hover img {
    filter: grayscale(0%);
}

/* Info Grid (Experience & Education) */
.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.info-title i {
    color: var(--accent-color);
}

.info-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--border-color);
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.info-meta {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.info-item p,
.info-item ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-item ul {
    list-style: none;
}

.info-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.info-item ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    height: 100%;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 9px;
    height: 9px;
    background: var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Grid Layouts for Skills & Projects */
#skills {
    position: relative;
    padding-bottom: 12rem;
    /* Increased space before contact */
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-fast);
}

.skill-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-img {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center top;
    border-bottom: 1px solid var(--border-color);
    transition: background-position 2s ease-in-out;
}

.project-card:hover .project-img {
    background-position: center bottom;
}

/* Specific Project Overrides */
.static-img {
    background-position: center !important;
    transition: none !important;
}

.project-card:hover .static-img {
    background-position: center !important;
}

.monitor-only {
    background-size: 155% !important;
    background-position: center 15% !important;
    transition: none !important;
}

.project-card:hover .monitor-only {
    background-position: center 15% !important;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact Section Redesign */
#contact {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0f172a 100%);
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 750px;
    margin: 3rem auto 0;
}

.contact-card-item {
    background: rgba(17, 24, 39, 0.8);
    /* Semi-transparent dark navy */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-card-item:hover {
    transform: translateY(-15px);
    background: rgba(31, 41, 55, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.contact-card-item i {
    font-size: 2.2rem;
    color: var(--accent-color);
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.2));
}

.contact-card-item span {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-card-item:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4));
}

/* Footer */
footer {
    padding: 1.9rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 0;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 100vh;
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .hero-grid {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-image-container {
        flex: 0 0 auto;
        order: -1;
    }

    .hero-image {
        width: 220px;
        height: 220px;
    }

    h1 {
        font-size: 2.4rem;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}