/* Base Styles */
:root {
    /* Light Theme (default) */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --light-gray: #e5e7eb;
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --dark-color: #e5e7eb;
    --light-color: #1f2937;
    --gray-color: #9ca3af;
    --light-gray: #374151;
    --bg-color: #111827;
    --text-color: #f9fafb;
    --card-bg: #1f2937;
    --border-color: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1.6rem;
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 1.5rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

.section-title {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 6rem;
    text-align: center;
    position: relative;
    color: var(--dark-color);
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background-color: var(--primary-color);
    border-radius: 1rem;
}

section {
    padding: 8rem 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
    transition: var(--transition);
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 3rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2.1rem;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 0.3rem;
    background-color: var(--dark-color);
    border-radius: 1rem;
    transition: var(--transition);
}

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

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

.hero-content {
    flex: 1;
    max-width: 60rem;
}

.hero-content h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: 5.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-content h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.8rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    align-items: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-placeholder {
    width: 40rem;
    height: 40rem;
    background: linear-gradient(145deg, #e0e7ff, #dbeafe);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.image-placeholder i {
    font-size: 15rem;
    color: var(--primary-color);
    opacity: 0.8;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-2rem) rotate(2deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.6rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.info-item span {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 10rem;
    display: inline-block;
}

.info-item p {
    margin: 0;
    color: var(--gray-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: #f0f4ff;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Resume Section */
.resume {
    background-color: #f9fafb;
}

.resume-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    margin-top: 5rem;
}

.resume-column {
    flex: 1;
}

.resume-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
    position: relative;
}

.resume-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 5rem;
    height: 2px;
    background-color: var(--primary-color);
}

.resume-item {
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.resume-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.resume-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.resume-item:hover::before {
    width: 6px;
}

.resume-item h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.resume-item h5 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.resume-item p {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.resume-item ul {
    padding-left: 2rem;
}

.resume-item li {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

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

/* Projects Section */
.projects {
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

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

.project-image {
    height: 20rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image i {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.project-content {
    padding: 2.5rem;
}

.project-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Skills Section */
.skills {
    background-color: #f9fafb;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    margin-top: 5rem;
}

.skills-column h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.skill-item {
    margin-bottom: 2.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-info span {
    font-size: 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 1rem;
    background-color: #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 1rem;
    transition: width 1.5s ease-in-out;
}

.tools-section {
    margin-top: 8rem;
}

.tools-section h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 3rem;
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.tool-item {
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #e5e7eb;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tool-item i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.tool-item span {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 35% 60%;
    gap: 5rem;
    margin-top: 5rem;
}

.contact-info {
    flex: 1;
}

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

.contact-info p {
    font-size: 1.5rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    margin-top: 0.5rem;
}

.contact-item h4 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

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

.contact-form {
    flex: 1;
    background-color: #f9fafb;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    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(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 15rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 8rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-logo h2 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-logo h2 span {
    color: var(--primary-color);
}

.footer-logo p {
    font-size: 1.5rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 5rem;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 1.5rem;
}

.footer-links ul li a {
    font-size: 1.5rem;
    color: #9ca3af;
    transition: var(--transition);
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact p {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.8rem;
    width: 2.5rem;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: #9ca3af;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 4.5rem;
    height: 4.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .hero-image {
        width: 45rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 15rem;
    }
    
    .hero-content {
        margin-bottom: 5rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .resume-container {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 1.5rem 0;
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-image {
        width: 100%;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .back-to-top {
        width: 4rem;
        height: 4rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1.6rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 1.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .project-card {
        max-width: 100%;
    }
}
