/* General Styles */
:root {
    /* Light Mode Colors */
    --primary-color: #4a6cf7;
    --primary-dark: #3955d8;
    --secondary-color: #333333;
    --text-color: #555555;
    --light-color: #f8f9fa;
    --dark-color: #232323;
    --border-color: #e8e8e8;
    --background-color: white;
    --card-bg: white;
    --section-bg-alt: #f9f9f9;
    --timeline-line: #e0e0e0;
    --tag-bg: #f0f0f0;
    --social-bg: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-color: #6d8dff;
    --primary-dark: #5272e0;
    --secondary-color: #e0e0e0;
    --text-color: #cccccc;
    --light-color: #1a1a1a;
    --dark-color: #101010;
    --border-color: #333333;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --section-bg-alt: #1a1a1a;
    --timeline-line: #444444;
    --tag-bg: #2a2a2a;
    --social-bg: #2a2a2a;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

* {
    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);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

p {
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

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

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.primary-btn, .secondary-btn, .btn-small {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.primary-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px var(--shadow-color);
}

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

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

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.center-btn {
    text-align: center;
    margin-top: 40px;
}

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

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px var(--shadow-color);
}

.theme-toggle i {
    font-size: 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 0;
}

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

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

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

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    background-color: var(--background-color);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    width: 50%;
}

.hero-image {
    width: 40%;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px var(--shadow-hover);
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
    display: inline-block;
    position: relative;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    bottom: 5px;
    left: 0;
    opacity: 0.3;
    z-index: -1;
}

.hero-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    margin-bottom: 30px;
}

.cta-buttons a {
    margin-right: 15px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--social-bg);
    margin-right: 15px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.social-icons.large a {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

/* About Section */
.about {
    background-color: var(--section-bg-alt);
    transition: background-color 0.3s ease;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-image {
    width: 40%;
}

.about-image img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: var(--box-shadow);
}

.about-image img:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 15px 30px var(--shadow-hover);
}

.about-text {
    width: 55%;
}

.about-text h3 {
    font-size: 26px;
}

.info-list {
    margin: 30px 0;
}

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

.info-item span:first-child {
    font-weight: 600;
    min-width: 120px;
    color: var(--secondary-color);
}

/* Skills Section */
.skills {
    background-color: var(--background-color);
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skill-category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    margin-right: 15px;
    font-size: 22px;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: rotate(5deg) scale(1.1);
}

.skill-item h4 {
    font-size: 16px;
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    background-color: var(--section-bg-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
}

.project-tags span {
    background-color: var(--tag-bg);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-tags span:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.project-links {
    display: flex;
}

.project-links a {
    margin-right: 15px;
}

.project-links a:hover {
    transform: translateY(-3px);
}

/* Experience Section */
.experience {
    background-color: var(--background-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--timeline-line);
    top: 0;
    bottom: 0;
    left: 30px;
    transition: background-color 0.3s ease;
}

.timeline-item {
    padding: 20px 40px 20px 80px;
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 21px;
    top: 25px;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-content {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-hover);
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.company {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.period {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    list-style-type: disc;
    margin-bottom: 8px;
}

.timeline-content p {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: var(--section-bg-alt);
}

.contact-content {
    display: flex;
    justify-content: space-between;
}

.contact-info, .contact-form {
    width: 48%;
}

.contact-info h3, .contact-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info .info-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-info .info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 30px;
    transition: transform 0.3s ease;
}

.contact-info .info-item:hover i {
    transform: scale(1.2);
}

.contact-info .info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info .social-icons {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.form-group:focus-within::after {
    width: 100%;
}

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

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 15px;
    color: #999;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    background-color: var(--primary-color);
    color: white;
    padding: 0 5px;
    border-radius: 3px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer .logo h1 {
    color: white;
    font-size: 24px;
}

footer p {
    margin-bottom: 0;
}

footer .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.scale-up {
    animation: scaleUp 0.8s ease forwards;
}

.bounce {
    animation: bounce 1s ease infinite;
    animation-delay: 2s;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 40px;
    }
    
    .skills-content, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    .contact-info {
        margin-bottom: 50px;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 10px 15px var(--shadow-color);
        padding: 20px 0;
        transition: var(--transition);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 20px;
    }
    
    .hero .container {
        flex-direction: column-reverse;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-bottom: 40px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    .about-image {
        margin-bottom: 40px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    footer .logo, footer p {
        margin-bottom: 20px;
    }
    
    .theme-toggle {
        right: 15px;
        bottom: 75px;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 20px;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
    }
    
    .cta-buttons a {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-item span:first-child {
        margin-bottom: 5px;
    }
    
    .timeline::after {
        left: 20px;
    }
    
    .timeline-dot {
        left: 11px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
} 