/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #2c2c2c;
    background-color: #fefefe;
    background-image: 
        radial-gradient(circle at 1px 1px, #e8e8e8 1px, transparent 0);
    background-size: 20px 20px;
}

/* Slideshow Styles */
.slideshow-section {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    animation-duration: 1.5s;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: white;
    width: 80%;
    max-width: 700px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    animation: fadeInDown 1s ease-out;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots-container {
    text-align: center;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: white;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 10;
}

/* Navigation */
/* === Classic Navigation Bar Styling === */

/* Main navbar container */
.navbar {
    background-color: #ffffff;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    position: fixed; /* Makes navbar sticky */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
}

/* Scrolled state for the navbar */
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    align-items: center;
}

/* Logo styling */
.nav-logo a {
    color: #2c3e50;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Menu links container */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

/* Individual link styling */
.nav-link {
    color: #34495e;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

/* Underline effect for links */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

/* Hover and Active states */
.nav-link:hover,
.nav-link.active {
    color: #3498db;
}

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

/* --- Mobile Navigation --- */
.nav-toggle {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #2c3e50;
}

/* Responsive styles for mobile */
@media screen and (max-width: 960px) {
    .nav-toggle {
        display: block; /* Show on mobile */
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Position below navbar */
        left: -100%; /* Hide off-screen */
        opacity: 1;
        transition: all 0.5s ease;
        background: #ffffff;
        padding: 2rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0; /* Bring into view */
        opacity: 1;
        transition: all 0.5s ease;
    }

    .nav-link {
        padding: 1.5rem;
        width: 100%;
        text-align: center;
    }

    /* Hamburger icon animation */
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Name Slideshow Styles */
.name-slideshow {
    display: inline-block;
    position: relative;
    min-height: 60px;
    min-width: 300px;
}

.name-slide {
    color: #1e40af;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.name-slide::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    z-index: -1;
}

.name-slide.active {
    opacity: 1;
    transform: translateY(0);
}

/* About Slideshow Styles */
.about-slideshow {
    position: relative;
    min-height: 180px;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Education Slideshow Styles */
.education-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.education-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.education-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}

.education-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.edu-prev, .edu-next {
    background: linear-gradient(135deg, #1e40af, #3730a3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.3);
    transition: all 0.3s ease;
}

.edu-prev:hover, .edu-next:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    transform: scale(1.1);
}

.edu-dots {
    display: flex;
    gap: 8px;
}

.edu-dot {
    width: 12px;
    height: 12px;
    background-color: #e0f2fe;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #06b6d4;
}

.edu-dot.active {
    background-color: #1e40af;
    transform: scale(1.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 24%, rgba(6, 182, 212, 0.05) 25%, rgba(6, 182, 212, 0.05) 26%, transparent 27%, transparent 74%, rgba(6, 182, 212, 0.05) 75%, rgba(6, 182, 212, 0.05) 76%, transparent 77%);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0f172a;
    font-family: 'Times New Roman', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.highlight {
    color: #1e40af;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 500;
    color: #1e40af;
    margin-bottom: 25px;
    font-style: italic;
    font-family: 'Georgia', serif;
}

.hero-description {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 35px;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.btn {
    padding: 15px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
    border: 2px solid #1e40af;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3730a3 0%, #1e40af 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.btn-secondary:hover {
    background-color: #1e40af;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.hero-social {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #1e40af;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #06b6d4;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.2);
}

.social-link:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

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

.profile-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
    border: 8px solid #f0f9ff;
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px solid #06b6d4;
    border-radius: 50%;
    background: transparent;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.image-placeholder {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #1e40af, #3730a3, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4.5rem;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.3);
    border: 8px solid #f0f9ff;
    position: relative;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 2px solid #06b6d4;
    border-radius: 50%;
    background: transparent;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #0f172a;
    position: relative;
    font-family: 'Times New Roman', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.section-title::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #3730a3);
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306b6d4' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 1;
}

.about-content {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 25px;
    line-height: 1.9;
    font-family: 'Georgia', serif;
    text-align: justify;
    font-weight: 500;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.stat {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 10px;
    border: 2px solid #06b6d4;
    box-shadow: 0 5px 15px rgba(30, 64, 175, 0.2);
    transition: transform 0.3s ease;
}

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

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 8px;
    font-family: 'Times New Roman', serif;
}

.stat p {
    color: #1e40af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.about-image .profile-image {
    width: 280px;
    height: 280px;
    border: 6px solid #f0f9ff;
}

.about-image .image-placeholder {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #1e40af, #0ea5e9, #06b6d4);
    font-size: 3.5rem;
    border: 6px solid #f0f9ff;
}

/* Education Section */
.education {
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 50%, #f0f9ff 100%);
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(6, 182, 212, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75px 75px, rgba(30, 64, 175, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
    opacity: 0.6;
    z-index: 1;
}

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

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #06b6d4, #0891b2, #1e40af);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item::before {
    display: none;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

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

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 40px;
}

.timeline-date {
    background: linear-gradient(135deg, #1e40af, #3730a3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    font-family: 'Georgia', serif;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
    border: 2px solid #06b6d4;
}

.timeline-content {
    flex: 1;
    background: linear-gradient(135deg, #fefefe, #f0f9ff);
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.15);
    margin-top: 70px;
    border: 2px solid #e0f2fe;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.3;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: 'Times New Roman', serif;
}

.timeline-content h4 {
    font-size: 1.2rem;
    color: #1e40af;
    margin-bottom: 15px;
    font-style: italic;
    font-family: 'Georgia', serif;
    font-weight: 600;
}

.timeline-content p {
    color: #1e293b;
    line-height: 1.8;
    font-family: 'Georgia', serif;
    margin-bottom: 15px;
    font-weight: 500;
}

.grade-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 8px;
    border-left: 4px solid #06b6d4;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.1);
}

.grade-label {
    font-weight: 600;
    color: #1e40af;
    font-family: 'Georgia', serif;
    font-size: 1rem;
}

.grade-value {
    font-weight: 700;
    color: #1e40af;
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grade-info small {
    color: #64748b;
    font-style: italic;
    font-size: 0.85rem;
    margin-left: auto;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 35px,
        rgba(6, 182, 212, 0.03) 35px,
        rgba(6, 182, 212, 0.03) 70px
    );
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 45px;
    position: relative;
    z-index: 1;
}

.skill-category {
    background: linear-gradient(135deg, #fefefe, #f0f9ff);
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
    border: 2px solid #e0f2fe;
    position: relative;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-8px);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #06b6d4, #0891b2, #1e40af);
    border-radius: 15px 15px 0 0;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
}

.skill-bar {
    width: 100%;
    height: 12px;
    background-color: #e0f2fe;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #06b6d4;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #0ea5e9, #06b6d4);
    border-radius: 6px;
    transition: width 0.8s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.project-card {
    background: linear-gradient(135deg, #fefefe, #f0f9ff);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.15);
    transition: all 0.4s ease;
    border: 2px solid #e0f2fe;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(30, 64, 175, 0.25);
    border-color: #06b6d4;
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #1e40af, #0ea5e9, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20zm0-20c0 11.046-8.954 20-20 20s-20-8.954-20-20 8.954-20 20-20 20 8.954 20 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.project-content {
    padding: 35px 30px;
    position: relative;
    z-index: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    font-family: 'Times New Roman', serif;
}

.project-content p {
    color: #1e293b;
    line-height: 1.8;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    font-weight: 500;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #1e40af;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #06b6d4;
    font-family: 'Georgia', serif;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
    padding: 8px 16px;
    border: 2px solid #1e40af;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.project-link:hover {
    background-color: #1e40af;
    color: white;
    transform: translateY(-2px);
}

/* Problem-Solving Profiles Section */
.problem-solving {
    padding: 100px 0;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 50%, #fefefe 100%);
    position: relative;
}

.problem-solving::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(6, 182, 212, 0.08) 1px, transparent 0);
    background-size: 25px 25px;
    z-index: 1;
}

.problem-solving .container {
    position: relative;
    z-index: 2;
}

.problem-solving .section-description {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-family: 'Georgia', serif;
    font-style: italic;
}

.profile-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    margin: 0 auto;
    max-width: 900px;
    padding: 30px 0;
}

.profile-circle {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
    transition: transform 0.3s ease;
}

.profile-circle:hover {
    transform: translateY(-10px);
}

.profile-circle .circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
    border: 4px solid #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-circle:hover .circle {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.5);
}

.profile-circle .circle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    z-index: 1;
}

.profile-circle .circle i {
    color: white;
    font-size: 3.5rem;
    z-index: 2;
}

.profile-circle h3 {
    font-size: 1.2rem;
    color: #0f172a;
    text-align: center;
    font-family: 'Georgia', serif;
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.profile-circle:hover h3 {
    color: #1e40af;
}

/* Reference Section */
.references {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
}

.references::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(30, 64, 175, 0.1) 1px, transparent 0);
    background-size: 30px 30px;
    z-index: 1;
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.reference-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0f2fe;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reference-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #06b6d4, #1e40af);
}

.reference-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.reference-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.reference-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06b6d4, #1e40af);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.reference-info h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 8px;
    font-weight: 700;
}

.reference-info p {
    color: #64748b;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.reference-content p {
    font-style: italic;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.6;
    position: relative;
}

.reference-content p::before {
    content: '"';
    font-size: 3rem;
    color: #06b6d4;
    position: absolute;
    left: -15px;
    top: -10px;
    font-family: Georgia, serif;
}

.reference-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.reference-contact i {
    color: #06b6d4;
    width: 16px;
}

/* =================================================== */
/* ============== Contact Section Styles ============= */
/* =================================================== */

.contact {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
    padding: 100px 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(6, 182, 212, 0.1) 1px, transparent 0);
    background-size: 30px 30px;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

/* Wrapper to center the contact box */
.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* A single, wider card for contact info */
.contact-info-box {
    background: #ffffff;
    padding: 40px 45px;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.1);
    border: 2px solid #e0f2fe;
    position: relative;
    max-width: 700px; /* Control max width on large screens */
    width: 100%;
}

.contact-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e40af, #06b6d4);
    border-radius: 15px 15px 0 0;
}

.contact-box-title {
    font-family: 'Times New Roman', serif;
    font-size: 2rem; /* Slightly larger title */
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-box-intro {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1e293b;
    margin-bottom: 35px;
}

.contact-details {
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
}

.contact-item a {
    color: #1e40af;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #06b6d4;
}

.contact-icon {
    color: #1e40af;
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.contact-social-links {
    display: flex;
    justify-content: center; /* Center social links */
    gap: 20px;
    margin-top: 25px;
    border-top: 1px solid #e0f2fe;
    padding-top: 30px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px; /* Slightly larger icons */
    height: 48px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #1e40af;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid #06b6d4;
    font-size: 1.3rem;
}

.social-icon-link:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: #f5f5f5;
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid #06b6d4;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(6, 182, 212, 0.05) 20px,
        rgba(6, 182, 212, 0.05) 40px
    );
}

.footer p {
    font-family: 'Georgia', serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
        width: 100%;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 30px 0;
        border-bottom: 3px solid #06b6d4;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .about-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-item .timeline-content {
        text-align: center !important;
        padding: 35px 25px !important;
        margin-top: 70px;
    }

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

    .timeline-date {
        left: 30px !important;
        transform: none !important;
    }

    .timeline-item::before {
        display: none !important;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-circles {
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-image .profile-image,
    .hero-image .image-placeholder {
        width: 280px;
        height: 280px;
    }

    .about-image .profile-image,
    .about-image .image-placeholder {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .profile-circle {
        width: 110px;
    }
    
    .profile-circle .circle {
        width: 100px;
        height: 100px;
    }
    
    .profile-circle .circle i {
        font-size: 2.5rem;
    }
    
    .profile-circle h3 {
        font-size: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-content {
        gap: 30px;
    }

    .timeline-content {
        padding: 25px 20px !important;
    }

    .grade-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        text-align: center;
    }

    .grade-info small {
        margin-left: 0;
        margin-top: 5px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}