/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    background: linear-gradient(to right, rgba(108, 92, 231, 0.97), rgba(142, 68, 173, 0.97));
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(108, 92, 231, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: linear-gradient(to right, rgba(108, 92, 231, 1), rgba(142, 68, 173, 1));
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* Home Section */
.home-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(circle at 90% 10%, rgba(153, 110, 180, 0.1) 20%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(142, 68, 173, 0.1) 30%, transparent 60%),
        linear-gradient(135deg, #f8f1ff 0%, #e8dcff 100%);
    position: relative;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent 0, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
    pointer-events: none;
}

.hero {
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero .tagline {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #450a3d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* About Section */
.about-section {
    padding: 8rem 2rem 4rem;
    background: 
        radial-gradient(circle at 0% 0%, rgba(147, 135, 198, 0.1) 20%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(108, 92, 231, 0.1) 30%, transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #f9f7ff 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(135deg, transparent 0, transparent 10px, rgba(108, 92, 231, 0.02) 10px, rgba(108, 92, 231, 0.02) 20px);
    pointer-events: none;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.skill-tag {
    background-color: #f0f2f5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.education {
    margin-top: 2rem;
}

.edu-item {
    margin-bottom: 1rem;
}

.image-placeholder {
    background-color: #f0f2f5;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.profile-image {
    position: sticky;
    top: 100px;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover::before {
    opacity: 0.5;
}

.projects-preview {
    transition: transform 0.3s ease;
}

.projects-preview:hover {
    transform: scale(1.02);
}



/* Projects Section */
.projects-section {
    padding: 8rem 2rem 4rem;
    background: 
        radial-gradient(circle at 100% 0%, rgba(155, 89, 182, 0.1) 20%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(142, 68, 173, 0.1) 30%, transparent 60%),
        linear-gradient(135deg, #f4f1ff 0%, #f0e5ff 100%);
    position: relative;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(-45deg, transparent 0, transparent 10px, rgba(142, 68, 173, 0.02) 10px, rgba(142, 68, 173, 0.02) 20px);
    pointer-events: none;
    z-index: 0;
}

.projects-section > * {
    position: relative;
    z-index: 1;
}

.projects-section h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #6c5ce7 0%, #8e44ad 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 2rem;
}

.projects-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #6c5ce7 0%, #8e44ad 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.projects-section h2 {
    text-align: center;
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.project-info {
    padding: 1.5rem;
    text-align: center;
}

/* Featured Main Project */
.featured-section {
    max-width: 1100px;
    margin: 1.5rem auto 2.5rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(20,20,40,0.06);
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.featured-info h3 {
    margin-top: 0;
}

@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .featured-image img { height: 220px; }
}

.projects-grid {
    display: grid;
    /* allow cards to shrink a bit so 4 can fit on wider screens */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Force 4 columns on wide viewports so all project cards sit in one row */
@media (min-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px; /* give a bit more room on very wide screens */
    }
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 250px;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags span {
    background-color: #f0f2f5;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Contact Section */
.contact-section {
    padding: 8rem 2rem 4rem;
    background: 
        radial-gradient(circle at 100% 50%, rgba(125, 95, 255, 0.1) 20%, transparent 50%),
        radial-gradient(circle at 0% 50%, rgba(108, 92, 231, 0.1) 30%, transparent 60%),
        linear-gradient(135deg, #ffffff 0%, #f5f0ff 100%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(90deg, transparent 0, transparent 10px, rgba(108, 92, 231, 0.02) 10px, rgba(108, 92, 231, 0.02) 20px);
    pointer-events: none;
}

.contact-section h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-btn {
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3a4f63 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent 0, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
    pointer-events: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }
}