* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --shadow: rgba(15, 23, 42, 0.1);
    --gradient: linear-gradient(135deg, #3b82f6, #60a5fa);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Styles */
.header {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #dbeafe 100%);
    position: relative;
    padding: 2rem 0 4rem 0;
}

.header::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 0;
}

.header .container {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-social {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.header-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding: 4rem 0;
}



.header-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.header-mono {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.header-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
}

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

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    bottom: auto;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.brand-text h5 {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.brand-text span {
    color: var(--accent);
    font-size: 0.75rem;
}

.nav-links {
    display: flex;
    gap: 8rem;
    list-style: none;
}
.nav-links li:nth-child(2) {
    margin-right: 18rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

/* Hero Section */
.hero {
    text-align: center;

}

.tagline {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px var(--shadow);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-card h3 {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    margin: 0;
}

.project-card p {
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.project-links {
    padding: 0.75rem 1rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--bg-secondary);
}

.project-links a {
    color: var(--text-secondary);
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent);
}

/* Optional: Add this for 4 cards per row on large screens */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    background: var(--bg-primary);
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    color: var(--text-primary);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

button {
    padding: 1rem;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

button:hover {
    opacity: 0.9;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        padding: 2rem 0;
    }

    .header-buttons {
        justify-content: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .header-description {
        margin: 0 auto 2rem;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand {
        margin: 0;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        justify-content: space-around;
        padding: 0.75rem;
        background: var(--bg-primary);
        box-shadow: 0 -2px 10px var(--shadow);
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.5rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-link::after {
        display: none;
    }

    section {
        padding-bottom: 5rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 1rem;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Add education timeline styles */
.education-section {
    margin: 3rem 0;
}

.education-section h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

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

.timeline-title {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Add these styles */
.skills-section {
    margin: 3rem 0;
}

.skills-section h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
}

.skills-category h4 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.skill {
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill i {
    font-size: 1.2rem;
    color: var(--accent);
}

.skill-level {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient);
    border-radius: 0 3px 3px 0;
    transition: width 0.3s ease;
}

.skill:hover .skill-level {
    height: 4px;
    background: var(--accent);
}

@media (min-width: 768px) {
    .skills-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
} 