/* General Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --text-color: #2b2d42;
    --light-text: #8d99ae;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

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

section {
    padding: 100px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

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

.primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.small-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
}

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

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: url('../img/icon.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-background.webp');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--white);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

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

.detail i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-item span {
    font-weight: 500;
}

.progress-bar {
    height: 10px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
}

/* Projects Section */
.projects {
    background-color: var(--white);
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

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

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

.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;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--white);
}

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

.project-info p {
    margin-bottom: 20px;
    color: var(--light-text);
    line-height: 1.6;
    font-size: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    margin-top: auto;
}

.project-tags span {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

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

.project-links .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-links .btn i {
    font-size: 1rem;
}

.project-links .btn:hover {
    transform: translateY(-2px);
}

/* Blog Section */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-background.webp');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.blog-header p {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.blog-search {
    background-color: var(--white);
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--white);
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: var(--light-text);
}

.search-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: var(--secondary-color);
}

.blog-container {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 300px;
}

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

.blog-image {
    height: 100%;
    overflow: hidden;
}

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

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

.blog-content {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
}

.blog-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

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

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

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.blog-tags span {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.read-more i {
    margin-left: 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

.read-more:hover i {
    transform: translateX(5px);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--text-color);
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination-btn.active,
.pagination-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    max-width: 600px;
    text-align: center;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-color);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
}

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

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    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(67, 97, 238, 0.1);
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 40px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    /* Remove the contact-container rule since we don't have a grid anymore */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 25px;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 200px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-info h3 {
        font-size: 1.3rem;
    }
    
    .project-tags span {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    .blog-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.copy-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Privacy Policy Page */
.privacy-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-background.webp');
    background-size: cover;
    background-position: center;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
}

.privacy-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.privacy-header p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
}

.privacy-content {
    padding: 80px 0;
    background-color: var(--white);
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.privacy-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.privacy-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.privacy-section ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Blog Post Page */
.blog-post {
    padding: 80px 0;
    background-color: var(--white);
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-image {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-post-text {
    margin-bottom: 40px;
}

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

.blog-post-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-post-text ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.blog-post-text ul li i {
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-post-tags span {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post-text h3 {
    color: var(--primary-color);
    margin: 30px 0 20px;
    font-size: 1.5rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: var(--transition);
    background-color: rgba(67, 97, 238, 0.1);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
    color: var(--white);
    background-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-button i {
    font-size: 0.9rem;
}

/* Specific styling for the bottom back button */
.blog-post-tags + .back-button {
    display: block;
    text-align: center;
    margin: 40px auto;
    max-width: 200px;
} 