/* Portfolio Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --primary: #14b8a6;
    /* Teal */
    --primary-hover: #0d9488;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--primary) !important;
}

.btn-nav:hover {
    background: var(--primary);
    color: white !important;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.greeting {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.name {
    font-size: 4rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-wrapper {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.typing-text {
    color: var(--primary);
    border-right: 2px solid var(--primary);
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.bio-short {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 500px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-gray);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.img-wrapper {
    width: 400px;
    height: 400px;
    background: #ffffff;
    /* White background for the transparent PNG */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    overflow: hidden;
    /* Ensures image stays within circle */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers area without distortion */
    object-position: center center;
    /* Focuses on the center of the image */
}

.avatar-placeholder {
    font-size: 10rem;
    color: var(--text-gray);
    opacity: 0.5;
}

.badge {
    position: absolute;
    background: var(--bg-darker);
    padding: 15px 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 3s ease-in-out infinite;
}

.badge i {
    color: var(--primary);
}

.badge-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 20%;
    right: 0;
    animation-delay: 1.5s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--text-gray);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-alt {
    background: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.info-item span {
    display: block;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.skill-category h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0;
    /* Animated via JS */
    transition: width 1.5s ease-in-out;
}

.certifications {
    text-align: center;
}

.cert-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cert-card {
    background: var(--card-bg);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: all 0.3s;
}

.cert-card:hover {
    background: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 10;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.timeline-content h3 {
    font-size: 1.2rem;
}

.timeline-content h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.project-card h3 {
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Contact */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-left {
    background: rgba(20, 184, 166, 0.1);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-left h3 {
    margin-bottom: 15px;
}

.contact-left p {
    color: var(--text-gray);
    margin-bottom: 30px;
}

.c-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-white);
}

.c-item i {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-gray);
    border: 1px solid var(--border);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
}

.contact-right {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: white;
    font-family: inherit;
}

.contact-right input:focus,
.contact-right textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-right textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        margin-bottom: 40px;
    }

    .img-wrapper {
        width: 280px;
        height: 280px;
    }

    .skills-grid,
    .about-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
        padding-right: 0;
        padding-left: 30px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -9px;
        right: auto;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger .line {
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
    }

    .name {
        font-size: 2.5rem;
    }

    .title-wrapper {
        font-size: 1.2rem;
    }

    .badge {
        position: absolute;
        animation: float 3s ease-in-out infinite;
        padding: 10px 15px;
        font-size: 0.8rem;
        z-index: 10;
        margin: 0; /* Reset auto margin */
        width: auto;
    }

    .badge-1 {
        top: 10%;
        left: 5%;
        right: auto;
        bottom: auto;
    }

    .badge-2 {
        bottom: 10%;
        right: 5%;
        left: auto;
        top: auto;
    }

}