/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.2s ease-out;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1e3a8a;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 50;
}

.hero-content h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 50;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 50;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 100;
}

.btn-primary {
    background: #fff;
    color: #1e3a8a;
}

.btn-primary:hover {
    background: #f1f5f9;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn-outline:hover {
    background: #1e3a8a;
    color: white;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -1;
}

.profile-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.profile-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
}

.circuit-board-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border: 6px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.circuit-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circuit-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.circuit-line.horizontal {
    width: 80%;
    height: 2px;
    top: 30%;
    left: 10%;
}

.circuit-line.vertical {
    width: 2px;
    height: 60%;
    top: 20%;
    left: 50%;
}

.circuit-line.diagonal-1 {
    width: 60%;
    height: 2px;
    top: 60%;
    left: 20%;
    transform: rotate(45deg);
}

.circuit-line.diagonal-2 {
    width: 60%;
    height: 2px;
    top: 40%;
    left: 20%;
    transform: rotate(-45deg);
}

.circuit-components {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.component {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.component.resistor {
    width: 20px;
    height: 8px;
    top: 25%;
    left: 15%;
}

.component.capacitor {
    width: 12px;
    height: 20px;
    top: 65%;
    left: 75%;
}

.component.led {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    top: 20%;
    left: 80%;
}

.component.chip {
    width: 24px;
    height: 16px;
    top: 70%;
    left: 20%;
}

.main-chip {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    position: relative;
}

.blog-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-image {
  width: 100% !important;
  height: 220px !important;          /* kartın görsel yüksekliği */
  overflow: hidden !important;
  border-radius: 18px !important;
  position: relative;
}

.project-image img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;       /* scale eder */
  display: block !important;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    border-radius: 18px;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* .project-tech in overlay (featured projects) */
.project-overlay .project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.project-overlay .project-tech span {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-top: 1rem;
}

.projects-preview {
    padding: 80px 0;
    background: white;
}

.projects-showcase {
    margin-top: 3rem;
}

.project-highlight {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.project-info p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: #1e40af;
}

/* About Section */
.about {
    background: #f8fafc;
}

/* This is for index.html about section, not hakkimda.html */
.about-content-old {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
}

.skills h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #1e293b;
}

.skill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-item i {
    font-size: 1.5rem;
    color: #1e3a8a;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-card i {
    font-size: 3rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background: #f8fafc;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.project-card .project-image {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

body.dark-mode .project-content {
    background: #1e293b;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.project-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tags span {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link:hover {
    color: #1e40af;
}

.project-content .project-link {
    margin-top: 1rem;
    z-index: 20;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 2rem;
}

.blog-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #1e293b;
    line-height: 1.4;
}

.blog-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e40af;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: #1e3a8a;
    font-size: 1.2rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: #1e3a8a;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1e3a8a;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #94a3b8;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-self: end;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}



/* Blog/Articles Styles */
.blog-preview {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
    z-index: 50;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.4;
}

.blog-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #1e40af;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 100;
}

/* Blog Categories */
.blog-categories {
    padding: 40px 0;
    background: white;
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: #1e3a8a;
    background: #1e3a8a;
    color: white;
}

/* Featured Article */
.featured-article {
    padding: 60px 0;
    background: #f8fafc;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image {
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #1e3a8a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.featured-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-meta span {
    color: #6b7280;
    font-size: 0.9rem;
}

.article-meta .category {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-weight: 500;
}

.excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-tags span {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* All Articles Grid */
.all-articles {
    padding: 80px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.article-image {
    position: relative;
}

.article-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(30, 58, 138, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.4;
}

.article-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}



/* Newsletter */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: #1e3a8a;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1e40af;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .featured-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .featured-text h2 {
        font-size: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        max-width: 300px;
    }
}

/* Dark Mode Support - Manual Toggle */
body.dark-mode {
    background: #0b1220;
    color: #e2e8f0;
}

body.dark-mode .navbar {
    background: rgba(11, 18, 32, 0.95);
}

body.dark-mode .navbar.scrolled {
    background: rgba(11, 18, 32, 0.98);
}

body.dark-mode .nav-link {
    color: #e2e8f0;
}

body.dark-mode .nav-link:hover {
    color: #3b82f6;
}

body.dark-mode .section-title {
    color: #f1f5f9;
}

body.dark-mode .section-subtitle {
    color: #94a3b8;
}

body.dark-mode .blog-preview,
body.dark-mode .projects-preview {
    background: #0f172a;
}

body.dark-mode .blog-card,
body.dark-mode .project-card {
    background: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .blog-content h3,
body.dark-mode .project-content h3 {
    color: #f1f5f9;
}

body.dark-mode .blog-content p,
body.dark-mode .project-content p {
    color: #cbd5e1;
}

body.dark-mode .footer {
    background: #020617;
}

body.dark-mode .card,
body.dark-mode .contact-card,
body.dark-mode .contact-info {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .skill-category,
body.dark-mode .education-card,
body.dark-mode .certification-item {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .skill-category h3,
body.dark-mode .education-card h3,
body.dark-mode .certification-item h4 {
    color: #f1f5f9;
}

body.dark-mode .education-content h3,
body.dark-mode .education-content h4 {
    color: #f1f5f9;
}

body.dark-mode .education-content p {
    color: #cbd5e1;
}

body.dark-mode .education-period {
    color: #94a3b8;
}

body.dark-mode .education-icon,
body.dark-mode .cert-icon {
    color: #3b82f6;
}

body.dark-mode .cert-content h4 {
    color: #f1f5f9;
}

body.dark-mode .cert-content p {
    color: #94a3b8;
}

body.dark-mode .skill-info span {
    color: #cbd5e1;
}

body.light-mode .skill-info span {
    color: #475569;
}

body.dark-mode .skill-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .timeline::before {
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
}

body.dark-mode .timeline-marker {
    background: #3b82f6;
    border-color: #1e293b;
    box-shadow: 0 0 0 2px #3b82f6, 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .timeline-content {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .timeline-content h3 {
    color: #f1f5f9;
}

body.dark-mode .timeline-content h4 {
    color: #94a3b8;
}

body.dark-mode .timeline-content p {
    color: #cbd5e1;
}

body.dark-mode .timeline-date {
    color: #94a3b8;
}

body.dark-mode .timeline-achievements span {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

body.light-mode .timeline-content {
    background: white;
}

body.light-mode .timeline-content h3 {
    color: #1e293b;
}

body.light-mode .timeline-content h4 {
    color: #64748b;
}

body.light-mode .timeline-content p {
    color: #475569;
}

body.light-mode .timeline-date {
    color: #64748b;
}

body.light-mode .timeline-achievements span {
    background: #dbeafe;
    color: #1e3a8a;
}

body.dark-mode .project-highlight,
body.dark-mode .featured-project {
    background: #1e293b;
}

body.dark-mode .project-info h3,
body.dark-mode .project-content h3,
body.dark-mode .project-content h4 {
    color: #f1f5f9;
}

body.dark-mode .project-info p,
body.dark-mode .project-content p {
    color: #cbd5e1;
}

body.dark-mode .project-challenges h4,
body.dark-mode .project-results h4 {
    color: #f1f5f9;
}

body.dark-mode .project-challenges li,
body.dark-mode .project-results li {
    color: #cbd5e1;
}

body.dark-mode .project-info {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-info span {
    color: #94a3b8;
}

body.dark-mode .project-description {
    color: #cbd5e1;
}

body.light-mode .project-challenges h4,
body.light-mode .project-results h4 {
    color: #1e293b;
}

body.light-mode .project-challenges li,
body.light-mode .project-results li {
    color: #475569;
}

body.light-mode .project-info {
    border-bottom-color: #e2e8f0;
}

body.light-mode .project-info span {
    color: #64748b;
}

body.light-mode .project-description {
    color: #64748b;
}

body.dark-mode .project-tags span {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

body.dark-mode .article-content {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .article-content h2,
body.dark-mode .article-content h3 {
    color: #f1f5f9;
}

body.dark-mode .article-content p,
body.dark-mode .article-content li {
    color: #cbd5e1;
}

body.dark-mode .article-content code {
    background: rgba(255, 255, 255, 0.1);
    color: #60a5fa;
}

body.dark-mode .callout {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mini-table {
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mini-table th {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .mini-table td {
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .comment-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .page-header,
body.dark-mode .page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Light mode override for about-hero */
body.light-mode .about-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

body.dark-mode .about-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1e3a8a;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

body.dark-mode .dark-mode-toggle {
    background: #3b82f6;
}

body.dark-mode .dark-mode-toggle:hover {
    background: #60a5fa;
}

body.light-mode .dark-mode-toggle {
    background: #1e3a8a;
}

body.light-mode .dark-mode-toggle:hover {
    background: #1e40af;
}

/* Auto dark mode based on system preference (fallback) */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        background: #0b1220;
        color: #e2e8f0;
    }
    
    body:not(.light-mode) .navbar {
        background: rgba(11, 18, 32, 0.95);
    }
    
    body:not(.light-mode) .navbar.scrolled {
        background: rgba(11, 18, 32, 0.98);
    }
    
    body:not(.light-mode) .nav-link {
        color: #e2e8f0;
    }
    
    body:not(.light-mode) .nav-link:hover {
        color: #3b82f6;
    }
    
    body:not(.light-mode) .section-title {
        color: #f1f5f9;
    }
    
    body:not(.light-mode) .section-subtitle {
        color: #94a3b8;
    }
    
    body:not(.light-mode) .blog-preview,
    body:not(.light-mode) .projects-preview {
        background: #0f172a;
    }
    
    body:not(.light-mode) .blog-card,
    body:not(.light-mode) .project-card {
        background: #1e293b;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    body:not(.light-mode) .blog-content h3,
    body:not(.light-mode) .project-content h3 {
        color: #f1f5f9;
    }
    
    body:not(.light-mode) .blog-content p,
    body:not(.light-mode) .project-content p {
        color: #cbd5e1;
    }
    
body:not(.light-mode) .footer {
    background: #020617;
}

/* Light mode explicit styles */
body.light-mode {
    background: #ffffff;
    color: #333;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.95);
}

body.light-mode .nav-link {
    color: #333;
}

body.light-mode .section-title {
    color: #1e293b;
}

body.light-mode .section-subtitle {
    color: #64748b;
}

body.light-mode .blog-preview,
body.light-mode .projects-preview {
    background: #f8fafc;
}

body.light-mode .blog-card,
body.light-mode .project-card {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .footer {
    background: #1e293b;
}

body.light-mode .skill-category,
body.light-mode .education-card,
body.light-mode .certification-item {
    background: white;
    color: #333;
}

body.light-mode .skill-category h3,
body.light-mode .education-card h3,
body.light-mode .certification-item h4 {
    color: #1e293b;
}

body.light-mode .skill-item {
    background: #f8fafc;
}

body.light-mode .timeline-content h3 {
    color: #1e293b;
}

body.light-mode .timeline-content h4 {
    color: #64748b;
}

body.light-mode .timeline-achievements span {
    background: #dbeafe;
    color: #1e3a8a;
}

body.light-mode .article-content {
    background: white;
    color: #333;
}

body.light-mode .article-content h2,
body.light-mode .article-content h3 {
    color: #1e293b;
}

body.light-mode .article-content p,
body.light-mode .article-content li {
    color: #475569;
}

body.light-mode .article-content code {
    background: #f1f5f9;
    color: #1e3a8a;
}

body.light-mode .card,
body.light-mode .contact-card,
body.light-mode .contact-info {
    background: white;
    color: #333;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: white;
    border-color: #e2e8f0;
    color: #333;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    border-color: #1e3a8a;
    background: white;
}
}

/* Additional Utility Classes */
.page-header {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    margin-top: 70px;
}

.page-header-content {
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    margin-top: 70px;
}

.page-hero .section-title,
.page-hero .section-subtitle {
    color: white !important;
}

body.light-mode .page-hero .section-title,
body.light-mode .page-hero .section-subtitle {
    color: white !important;
}

body.dark-mode .page-hero .section-title,
body.dark-mode .page-hero .section-subtitle {
    color: white !important;
}

/* About Page Styles */
.about-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    margin-top: 70px;
    min-height: auto;
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.about-image-section {
    position: relative;
}

.about-image-container {
    position: relative;
    margin-bottom: 2rem;
}

.about-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    color: #1e3a8a;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: white;
    opacity: 0.9;
}

.stat-text {
    color: white;
}

.stat-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.stat-text span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.about-content {
    color: white;
}

.about-intro {
    margin-bottom: 2rem;
}

.about-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 700;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.about-content strong {
    color: white;
    font-weight: 600;
}

.about-cta {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-cta .btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.about-cta .btn.primary {
    background: white;
    color: #1e3a8a;
}

.about-cta .btn.primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.about-cta .btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.about-cta .btn.secondary:hover {
    background: white;
    color: #1e3a8a;
}

.about-cta .btn.ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.about-cta .btn.ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.about-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.signature-line {
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.about-signature p {
    margin: 0.5rem 0 0.3rem;
    font-size: 1.1rem;
    color: white;
}

.about-signature span {
    font-size: 0.95rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.9);
    display: block;
}

.skill-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

body.dark-mode .tag {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

body.light-mode .tag {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
    border-color: rgba(30, 58, 138, 0.2);
}

.skills-section,
.experience-section,
.education-section {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1e3a8a;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #1e3a8a;
}

.timeline-date {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.timeline-content h4 {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.timeline-achievements {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.timeline-achievements span {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.certification-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    align-items: start;
}

.cert-icon {
    font-size: 2rem;
    color: #1e3a8a;
}

/* Contact Page Styles */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

.contact-card,
.contact-info {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1e293b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn.primary {
    background: #1e3a8a;
    color: white;
}

.btn.primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn.secondary:hover {
    background: white;
    color: #1e3a8a;
}

.btn.ghost {
    background: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.btn.ghost:hover {
    background: #1e3a8a;
    color: white;
}

/* Article Page Styles */
.article-page {
    padding: 40px 0;
}

.article-content {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #475569;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.article-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #1e3a8a;
}

/* Project Categories Filter */
.project-categories {
    padding: 40px 0;
    background: #f8fafc;
}

.categories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Featured Projects */
.featured-projects {
    padding: 80px 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}

.featured-project {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-project:hover {
    transform: translateY(-5px);
}

.featured-project.large {
    grid-column: span 1;
}

.featured-project img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.featured-project .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-project .project-details {
    flex: 1;
}

.featured-project .project-actions {
    margin-top: auto;
}

.project-details {
    margin-top: 1.5rem;
    flex: 1;
}

.featured-project .project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.project-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.project-info i {
    color: #3b82f6;
}

.project-challenges,
.project-results {
    margin-bottom: 1.5rem;
}

.project-challenges h4,
.project-results h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.project-challenges ul,
.project-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-challenges li,
.project-results li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-challenges li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #f59e0b;
}

.project-results li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.project-highlights {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.project-highlights span {
    background: #dbeafe;
    color: #1e3a8a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.project-description {
    margin-bottom: 1rem;
    color: #64748b;
    line-height: 1.6;
}

.all-projects {
    padding: 80px 0;
    background: #f8fafc;
}

.project-stats {
    padding: 60px 0;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 3rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.stat-content p {
    color: #64748b;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .featured-project.large {
        grid-row: span 1;
    }
    
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-image-section {
        text-align: center;
    }
    
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1rem auto 0;
        display: inline-block;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-project.large {
        grid-column: span 1;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .about-hero {
        padding: 100px 0 60px;
    }
    
    .about-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content h1 {
        font-size: 2rem;
    }
    
    .about-image {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .experience-badge {
        bottom: -15px;
        right: -15px;
        padding: 1rem;
        position: relative;
        margin: 1rem auto 0;
        display: inline-block;
    }
    
    .experience-badge .years {
        font-size: 2rem;
    }
    
    .about-hero {
        padding: 100px 0 60px;
    }
    
    .about-hero-content {
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto 0;
    }
    
    .about-cta {
        flex-direction: column;
    }
    
    .about-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content h1 {
        font-size: 2.5rem;
    }
    
    .skill-tags {
        justify-content: center;
    }
    
    .dark-mode-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 20px;
    }
}