/* Global Styles */
:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #343a40;
    --text-light: #6c757d;
    --white: #ffffff;
    --black: #000000;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --primary-color: #6c63ff;
    --secondary-color: #8f94fb;
    --accent-color: #ff6b6b;
    --light-color: #2d2d2d;
    --dark-color: #f8f9fa;
    --text-color: #e9ecef;
    --text-light: #adb5bd;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --header-bg: rgba(18, 18, 18, 0.95);
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: var(--transition);
}

h1, h2, h3, .section-title, .logo {
    font-family: 'Montserrat', 'Inter', 'Poppins', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

.highlight {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(78, 84, 200, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-color: transparent;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    height: 80px;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 1.1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    border-radius: 3px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

.theme-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 18px;
    margin-right: 0;
    transition: var(--transition);
    position: relative;
    z-index: 1100;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s;
        z-index: 1000;
        opacity: 0;
        pointer-events: none;
    }

    [data-theme="dark"] .nav-links {
        background: rgba(30, 30, 30, 0.98);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        margin: 25px 0;
    }

    .nav-links a {
        color: var(--dark-color);
        font-size: 1.5rem;
    }

    [data-theme="dark"] .nav-links a {
        color: var(--light-color);
    }

    .hamburger .line {
        background-color: var(--dark-color);
    }

    [data-theme="dark"] .hamburger .line {
        background-color: var(--light-color);
    }

    .theme-toggle {
        margin-left: 10px;
        margin-right: 0;
        order: 3;
    }

    nav {
        padding: 20px 0;
    }

    .nav-controls {
        gap: 8px;
    }
}

/* Hamburger Animation */
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 90px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
    animation: fadeInLeft 1s ease;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-light);
    font-weight: 500;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image .image-wrapper {
    width: 320px;
    height: 320px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 60% 40%, rgba(142,148,251,0.15) 60%, transparent 100%);
    box-shadow: 0 8px 32px rgba(78, 84, 200, 0.18);
    border-radius: 50%;
}

.hero-image img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 8px 32px rgba(78, 84, 200, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-image img:hover {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 16px 48px rgba(78, 84, 200, 0.22), 0 4px 16px rgba(0,0,0,0.12);
}

.circle-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
    opacity: 0.13;
    filter: blur(2px);
}

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

.hero .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.hero .social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-5px);
}

/* About Section */
.about {
    background-color: var(--light-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-tags span {
    background-color: var(--card-bg);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    color: var(--text-color);
}

.skill-tags span:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-3px);
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.03);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.project-info p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

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

/* Blogs Section */
.blogs {
    background-color: var(--light-color);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.blog-image {
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--dark-color);
}

.blog-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-content p {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--dark-color);
    gap: 10px;
}

.view-all {
    text-align: center;
    margin-top: 50px;
}

/* Resume Section */
.resume-content {
    display: flex;
    gap: 50px;
}

.resume-download {
    flex: 1;
    text-align: center;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.resume-preview {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.resume-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.resume-details {
    flex: 2;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -33px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item h4 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--dark-color);
}

.company {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 8px;
}

.date {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--light-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.timeline-item ul {
    margin-left: 20px;
}

.timeline-item li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.timeline-item li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(78, 84, 200, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

footer p {
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Blog Modal Styles */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    transition: opacity 0.3s;
}
.blog-modal-content {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    padding: 32px 24px 24px 24px;
    animation: fadeInModal 0.3s;
}
.blog-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}
.blog-modal-close:hover {
    color: var(--accent-color);
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .blog-modal-content {
        max-width: 95vw;
        padding: 18px 8px 16px 8px;
    }
    .blog-modal-close {
        top: 8px;
        right: 12px;
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

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

@media screen and (max-width: 768px) {
    /* Hero Section */
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 10px;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

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

    .hero-image {
        margin-top: 30px;
    }

    .hero-image .image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-image img {
        width: 170px;
        height: 170px;
    }

    .circle-shape {
        width: 220px;
        height: 220px;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
    }

    .about-text {
        margin-bottom: 40px;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Blogs Section */
    .blogs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Resume Section */
    .resume-content {
        flex-direction: column;
    }

    .resume-download {
        position: static;
        margin-bottom: 40px;
    }

    .resume-preview {
        max-width: 100%;
        margin: 0 auto 20px auto;
    }

    .resume-preview img {
        width: 100%;
        height: auto;
        border-radius: 15px;
        box-shadow: var(--box-shadow);
        display: block;
    }

    /* Contact Section */
    .contact-content {
        flex-direction: column;
    }

    .contact-info {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

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

    .btn {
        padding: 12px 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-image .image-wrapper {
        width: 150px;
        height: 150px;
    }

    .hero-image img {
        width: 120px;
        height: 120px;
    }

    .circle-shape {
        width: 150px;
        height: 150px;
    }

    .skill-tags {
        justify-content: center;
    }

    .contact-form {
        padding: 20px;
    }
}

/* Hero Animation Effects */
.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(142, 148, 251, 0.2) 0%, transparent 70%);
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.2); opacity: 0.4; }
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 20px rgba(78, 84, 200, 0.3);
}

.hero-image img {
    border: 6px solid #fff;
    box-shadow: 0 0 0 4px var(--primary-color), 0 20px 40px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}