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

:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --navbar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --footer-bg: #2c3e50;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --card-shadow-hover: rgba(0, 0, 0, 0.15);
}

html.dark-mode {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --navbar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --footer-bg: #1a1a1a;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-hover: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* Navbar Styles */
.navbar {
    background: var(--navbar-bg);
    padding: 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
}

.navbar-logo {
    flex: 1;
}

.navbar-logo a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-logo a:hover {
    opacity: 0.8;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 10px;
}

.navbar-menu li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.navbar-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
    margin-left: 10px;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s;
}

/* Header with Profile Photo */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin: 0;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.profile-photo {
    margin: 0;
    position: relative;
    display: inline-block;
}

.profile-photo::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: -1;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-img:hover {
    transform: scale(1.05) rotateZ(2deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.header-text h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-text .role {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.95;
    letter-spacing: 1px;
}

/* Home Hero */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #eaf2ff;
    padding: 80px 20px;
}

.hero-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1 1 360px;
    min-width: 300px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: rgba(234, 242, 255, 0.85);
    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 12px;
}

.subtitle {
    font-size: 18px;
    color: rgba(234, 242, 255, 0.9);
    margin-bottom: 20px;
}

.cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.btn {
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    text-align: center;
}

.btn.primary {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.45);
}

.btn.ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: transparent;
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.social {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.social a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #eaf2ff;
    transition: all 0.3s ease;
}

.social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.skills-list li {
    background: rgba(255, 255, 255, 0.12);
    color: #eaf2ff;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 14px;
    letter-spacing: 0.2px;
}

.hero-image {
    flex: 1 1 260px;
    display: flex;
    justify-content: center;
}

.profile-img-lg {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.1);
}

.contact-card {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 40px 20px;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.contact-card h2 {
    margin-bottom: 10px;
}

.contact-card p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

/* Home Page Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    color: white;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-content {
    padding: 20px 0;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-role {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    opacity: 0.95;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.15; }
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Home Skills Section */
.home-skills {
    padding: 80px 20px;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.skill-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Home Projects Section */
.home-projects {
    padding: 80px 20px;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--card-shadow-hover);
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

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

.view-all-projects {
    text-align: center;
}

/* Home CTA Section */
.home-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-cta .btn-primary {
    background: white;
    color: #667eea;
}

.home-cta .btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.home-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* About Page Styles */
.about-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    color: white;
}

.about-header {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.about-image {
    flex-shrink: 0;
}

.about-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-intro {
    flex: 1;
    min-width: 300px;
}

.about-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-subtitle {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.95;
}

.about-contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-contact-info p {
    font-size: 16px;
    opacity: 0.9;
}

.about-contact-info i {
    margin-right: 10px;
    width: 20px;
}

.about-content {
    padding: 60px 20px;
    background: var(--bg-primary);
}

.about-section {
    background: var(--bg-secondary);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.content-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tech-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tech-item {
    font-size: 16px;
    color: var(--text-primary);
    padding: 8px 0;
}

.tech-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

.about-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cta-text {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}

.about-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta .btn-primary {
    background: white;
    color: #667eea;
}

.about-cta .btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}

.about-cta .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Skills Page Styles */
.skills-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.skills-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.skills-hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.skills-content {
    padding: 60px 20px;
    background: var(--bg-primary);
}

.skill-category {
    margin-bottom: 60px;
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-title i {
    color: var(--primary-color);
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--card-shadow-hover);
}

.skill-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.skill-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.skill-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Contact Page Styles */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.contact-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.contact-section {
    padding: 60px 20px;
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.contact-info-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 32px;
    color: var(--primary-color);
    min-width: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
}

.contact-detail h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-detail p,
.contact-detail a {
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-detail a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.social-links-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--card-shadow);
    border-left: 4px solid var(--primary-color);
}

.contact-form-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: none;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Projects Page Styles */
.projects-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.projects-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.projects-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.projects-section {
    padding: 60px 20px;
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--card-shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--card-shadow-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.project-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.project-date {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.project-summary {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-details {
    flex: 1;
    margin-bottom: 20px;
}

.detail-block {
    margin-bottom: 18px;
}

.detail-block h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.features-list li {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 16px;
}

.project-link {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Education Page Styles */
.education-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 20px;
    color: white;
    text-align: center;
}

.education-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.education-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.education-section {
    padding: 60px 20px;
    background: var(--bg-primary);
}

.education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    text-align: right;
}

.timeline-item:nth-child(odd) .education-card {
    margin-left: 0;
    margin-right: auto;
    max-width: calc(50% - 30px);
}

.timeline-item:nth-child(even) .education-card {
    margin-left: auto;
    margin-right: 0;
    max-width: calc(50% - 30px);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 8px rgba(102, 126, 234, 0.1);
}

.education-card {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--card-shadow);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--card-shadow-hover);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.degree-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.education-year {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.institution-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.marks-badge {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

main > h2:first-child {
    margin-top: 0;
}

/* Section Spacing */
section {
    margin-bottom: 40px;
}

/* Skills Section */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.skills li {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 16px;
    list-style: none;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skills li:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

/* Lists */
ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

ul li, ol li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px var(--card-shadow-hover);
    border-left-color: var(--primary-dark);
}

/* Cards Grid for multiple items */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.cards-grid .card {
    margin-bottom: 0;
}

/* Alternative card style */
.card-highlighted {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 2px solid var(--primary-color);
}

/* Footer Styles */
.footer {
    background: var(--footer-bg);
    color: white;
    margin-top: 60px;
    padding: 50px 20px 20px;
    transition: background 0.3s;
    border-top: 4px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.footer-section:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    border-left-color: var(--primary-dark);
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    margin: 10px 0;
    opacity: 1;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.8;
}

.footer-section p i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.footer-section ul li a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transition: opacity 0.3s, margin 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 8px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.85;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive */

/* Large Tablets & Desktops */
@media (max-width: 1024px) {
    .navbar-logo a {
        font-size: 20px;
    }

    .header-text h1 {
        font-size: 36px;
    }

    main {
        padding: 30px 20px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-logo a {
        font-size: 18px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .navbar-menu.active {
        max-height: 500px;
    }

    .navbar-menu li a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu li:last-child a {
        border-bottom: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-role {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-title {
        font-size: 36px;
    }

    .projects-subtitle {
        font-size: 18px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cta-description {
        font-size: 16px;
    }

    .about-header {
        flex-direction: column;
        text-align: center;
    }

    .about-title {
        font-size: 32px;
    }

    .about-subtitle {
        font-size: 18px;
    }

    .about-profile-img {
        width: 150px;
        height: 150px;
    }

    .cta-text {
        font-size: 26px;
    }

    .tech-list {
        grid-template-columns: 1fr;
    }

    .skills-hero-title {
        font-size: 36px;
    }

    .skills-hero-subtitle {
        font-size: 18px;
    }

    .category-title {
        font-size: 26px;
    }

    .skill-cards {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: 36px;
    }

    .contact-subtitle {
        font-size: 18px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info,
    .contact-form {
        padding: 30px;
    }

    .education-title {
        font-size: 36px;
    }

    .education-subtitle {
        font-size: 18px;
    }

    .education-timeline::before {
        left: 20px;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
    }

    .timeline-item:nth-child(odd) .education-card,
    .timeline-item:nth-child(even) .education-card {
        margin-left: 60px;
        margin-right: 0;
        max-width: 100%;
    }

    .header {
        padding: 40px 15px;
    }

    .header-content {
        gap: 20px;
    }

    .header-text h1 {
        font-size: 28px;
    }

    .header-text .role {
        font-size: 16px;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    main {
        padding: 25px 15px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .navbar-container {
        height: 60px;
        padding: 0 10px;
    }

    .navbar-logo a {
        font-size: 16px;
    }

    .navbar-menu li a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-left: 5px;
    }

    .header {
        padding: 30px 10px;
    }

    .header-text h1 {
        font-size: 24px;
        line-height: 1.2;
    }

    .header-text .role {
        font-size: 14px;
    }

    .profile-img {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }

    main {
        padding: 20px 12px;
    }

    h2 {
        font-size: 1.3rem;
        margin-top: 15px;
    }

    h3 {
        font-size: 1.1rem;
    }

    .card {
        padding: 18px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .skills {
        gap: 8px;
    }

    .skills li {
        padding: 8px 12px;
        font-size: 13px;
    }

    .footer-section h3 {
        font-size: 15px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .navbar-logo a {
        font-size: 14px;
    }

    .header-text h1 {
        font-size: 20px;
    }

    .profile-img {
        width: 90px;
        height: 90px;
        border-width: 3px;
    }

    .card {
        padding: 15px;
    }

    .footer-section {
        padding: 12px;
    }
}
