:root {
    --bg-color: #0d1117;
    --bg-alt-color: #161b22;
    --card-bg: #21262d;
    --primary-color: #00d9ff;
    --text-color: #f0f6fc;
    --text-secondary: #8b949e;
    --border-color: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 8%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-color);
    font-size: 24px;
}

.logo span {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 100px 8% 60px;
}

.bg-alt {
    background: var(--bg-alt-color);
}

.heading {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.heading span {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
}

.btn-primary:hover {
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #000;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    margin-top: 40px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-text h3 {
    font-size: 24px;
    color: var(--text-secondary);
}

.hero-text h1 {
    font-size: 50px;
    color: var(--primary-color);
    margin: 10px 0;
}

.hero-text .role {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-text .tagline {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.3);
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img img {
    width: 350px;
    border-radius: 12px;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.personal-info div {
    margin-bottom: 10px;
}

.personal-info span {
    color: var(--primary-color);
    font-weight: bold;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.skill-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

/* Timelines (Experience & Education) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}

.timeline-date {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: bold;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: normal;
    margin-bottom: 10px;
}

/* Cards (Certificates & Projects) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 10px 0;
}

.tags span {
    display: inline-block;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 5px;
}

/* Contact Section */
.contact-container {
    text-align: center;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.icons {
    margin-top: 25px;
}

.icons a {
    font-size: 24px;
    color: var(--text-color);
    margin: 0 12px;
    transition: 0.3s;
}

.icons a:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .hero-content, .about-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }

    nav ul {
        display: none; /* Add a toggle menu via JS if needed */
    }
}