/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #60a5fa;
    --background-color: #ffffff;
    --text-color: #1e293b;
    --light-blue: #f0f7ff;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--light-blue);
}

.shape {
    position: absolute;
    background-color: var(--secondary-color);
    opacity: 0.15;
    transition: all 0.5s ease;
}

.shape1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    transform: rotate(45deg);
    border-radius: 72px;
}

.shape2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    transform: rotate(-15deg);
    border-radius: 60px;
}

.shape3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 60%;
    transform: rotate(30deg);
    border-radius: 48px;
    opacity: 0.1;
}

.shape4 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 20%;
    transform: rotate(-20deg);
    border-radius: 36px;
    opacity: 0.08;
}

.hero:hover .shape {
    transform: scale(1.1) rotate(calc(var(--rotation) + 5deg));
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Point Sections */
.point-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.point-section:nth-child(even) {
    background-color: var(--light-blue);
}

/* Image Grid for Point 1 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.image-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-10px);
}

.image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.image-item h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Single Image Sections (Points 2-4) */
.single-image {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single-image:hover {
    transform: translateY(-10px);
}

.single-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.single-image h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .image-item img,
    .single-image img {
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
}
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(96, 165, 250, 0.1));
    z-index: 1;
}

.image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    max-width: 500px;
}

.skills {
    margin-top: 2rem;
}

/* Responsive design for about section */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
        margin: 0 auto;
    }

    .skills {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

.skill-icons {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.skill-icons i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Education Section */
.education {
    position: relative;
    background-color: var(--light-blue);
    padding: 120px 0;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.education-card {
    position: relative;
    width: calc(50% - 40px);
    margin-bottom: 60px;
}

.education-card.left {
    left: 0;
}

.education-card.right {
    left: 50%;
    margin-left: 40px;
}

.education-card .content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.1);
    transition: var(--transition);
}

/* Point Sections */
.point-section {
    padding: 100px 0;
    background-color: var(--background-color);
}

.point-section:nth-child(even) {
    background-color: var(--light-blue);
}

/* Image Grid for Point 1 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.image-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: translateY(-10px);
}

.image-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.image-item h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Single Image Sections (Points 2-4) */
.single-image {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.single-image:hover {
    transform: translateY(-10px);
}

.single-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.single-image h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .image-item img,
    .single-image img {
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}
    position: relative;
}

.education-card .content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    top: 30px;
    transform: rotate(45deg);
}

.education-card.left .content::before {
    right: -10px;
}

.education-card.right .content::before {
    left: -10px;
}

.education-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.education-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.education-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.education-card h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.education-card .school,
.education-card .year {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 0.95rem;
}

.education-card .school i,
.education-card .year i {
    font-size: 1rem;
}

.education-card .details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.education-card .details ul {
    list-style: none;
    padding: 0;
}

.education-card .details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: #4b5563;
}

.education-card .details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.education-card:hover .content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

/* Timeline dots */
.education-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    top: 30px;
    z-index: 1;
}

.education-card.left::after {
    right: -50px;
}

.education-card.right::after {
    left: -50px;
}

/* Responsive design for education timeline */
@media (max-width: 768px) {
    .timeline::after {
        left: 30px;
    }
    
    .education-card {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .education-card.left,
    .education-card.right {
        left: 0;
    }
    
    .education-card.left::after,
    .education-card.right::after {
        left: -50px;
    }
    
    .education-card.left .content::before,
    .education-card.right .content::before {
        left: -10px;
    }
}

/* Certificates Section */
.certificates {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f80ff 100%);
    position: relative;
    overflow: hidden;
}

.certificates::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/><circle fill="%23ffffff05" cx="800" cy="200" r="100"/></svg>');
    pointer-events: none;
}

.certificates .container {
    position: relative;
    z-index: 2;
}

.certificates .section-title {
    color: white;
    margin-bottom: 3rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.cert-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cert-card:hover::before {
    left: 100%;
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.cert-card .cert-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #4f80ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.cert-card:hover .cert-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.cert-card i {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.cert-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
}

.cert-card .cert-issuer {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.cert-card .cert-year {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #4f80ff);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-year {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(96, 165, 250, 0.05) 50%, rgba(37, 99, 235, 0.02) 100%);
    pointer-events: none;
}

.projects .container {
    position: relative;
    z-index: 2;
}

.projects .section-title {
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 1rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(37, 99, 235, 0.05);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
    background: white;
}

.project-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), #667eea);
}

.project-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(96, 165, 250, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-img::before {
    opacity: 1;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 2rem;
    position: relative;
    z-index: 3;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-weight: 700;
}

.project-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    text-decoration: none;
}

.project-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #667eea, var(--primary-color));
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Certificates responsive */
    .certificates {
        padding: 3rem 0;
    }

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .cert-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }

    .cert-card .cert-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }

    .cert-card i {
        font-size: 1.8rem;
    }

    .cert-card h3 {
        font-size: 1.4rem;
    }

    /* Projects responsive */
    .projects {
        padding: 3rem 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    .project-card {
        margin: 0 0.5rem;
    }

    .project-img {
        height: 180px;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .project-tech {
        gap: 0.3rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .project-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
