/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --white: #fff;
    --black: #000;
    --gray: #95a5a6;
    --dark-gray: #7f8c8d;
    --light-gray: #bdc3c7;
    --font-primary: 'Poppins', sans-serif;
    --font-code: 'Fira Code', monospace;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

.grid {
    display: grid;
    gap: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

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

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

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

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

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

.section-subtitle {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, var(--transition);
    transform: translateY(0);
    height: 70px;
}

.header.hidden {
    transform: translateY(-100%);
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

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

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

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
    color: var(--dark-color);
    text-decoration: none;
    font-size: 1rem;
}

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

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

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

.nav-link.active {
    color: var(--primary-color);
}



/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger .bar {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        transition: var(--transition);
        padding-top: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .header.scrolled {
        padding: 5px 0;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Hero Section - Final Fixed Version */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 40px;
    /* Increased top padding */
    background: linear-gradient(135deg, rgba(236, 240, 241, 0.9), rgba(236, 240, 241, 0.9)),
        url('assets/hero-bg.jpg') no-repeat center center/cover;
}

.hero-section .grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 40px;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 10px;
}

.name {
    color: var(--dark-color);
}

.typing-text {
    min-height: 60px;
    margin-bottom: 20px;
}

.profession {
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray);
}

.text-animate {
    color: var(--primary-color);
    position: relative;
}

.text-animate::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

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

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

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

.info-intern{
    color : #3498db;
}

/* Circular Image Styles */
.hero-image {
    position: relative;
    width: 100%;
    max-width: 500px;
    justify-self: center;
    margin-top: 30px;
    /* Space from navbar */
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Decorative Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.1;
    z-index: -1;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: -30px;
    left: -30px;
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    right: -20px;
}

.shape-3 {
    width: 70px;
    height: 70px;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
}


/* Ensure typing text container has proper dimensions */
.typing-text {
    min-height: 60px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* Blinking cursor animation */
.text-animate::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 30px;
    background-color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}



/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section .grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        order: 2;
        margin-top: 40px;
    }

    .hero-image {
        order: 1;
        margin: 30px auto 0;
        /* Centered with top space */
    }

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

    .social-links {
        justify-content: center;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .profession {
        font-size: 1.5rem;
    }

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

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

.about-section .grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

.about-image {
    justify-self: center;
}

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

.about-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text {
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 10px;
}

.info-label {
    font-weight: 600;
    color: var(--dark-color);
}

.info-value {
    color: var(--dark-gray);
}

/* Skills Section */
/* Skills Section */
.skills-section {
    background-color: var(--light-color);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: (--secondary-color)var;
}

/* Skill Categories */
.skill-category {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Skill Cards */
.skill-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.skill-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-logo {
    transform: scale(1.1);
}

.skill-title {
    font-size: 1rem;
    color: var(--dark-color);
    margin: 10px 0 0;
    font-weight: 600;
}


/* ==================== */
/* Hobbies Section */
/* ==================== */
/* Hobbies Section - Minimalist Approach */
/* Instagram PNG Icon in Link */
.hobby-cta img {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
}

.hobby-cta:hover img {
    transform: scale(1.1);
}

/* Full Hobbies Section CSS */
.hobbies-section {
    background-color: #f8f9fa;
    padding: 100px 0;
}

.hobbies-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.hobby-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.hobby-visual {
    position: relative;
    min-height: 300px;
}

.hobby-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

.hobby-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.hobby-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hobby-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.hobby-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.hobby-meta i {
    margin-right: 5px;
    color: #555;
}

.hobby-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

.hobby-cta {
    align-self: flex-start;
    color: #e1306c;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.hobby-cta:hover {
    transform: translateX(5px);
}

/* Video Player Styles */
.hobby-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
}

.hobby-video::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hobby-tools {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.hobby-tools img {
    width: 30px;
    height: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.hobby-tools img:hover {
    opacity: 1;
}

.hobby-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hobby-badges span {
    background: #f1f1f1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #555;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hobby-item {
        grid-template-columns: 1fr;
    }
    
    .hobby-visual {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .hobbies-section {
        padding: 60px 0;
    }
    
    .hobby-content {
        padding: 30px;
    }
    
    .hobby-content h3 {
        font-size: 24px;
    }
    
    .hobby-meta {
        flex-direction: column;
        gap: 8px;
    }
}




/* ==================== */
/* Tools Section - Complete Fixed CSS */
/* Fixed Tool Sizes */
.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tool-item {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.tools-list span {
    flex: 1;
    max-width: 100px;
    text-align: center;
}

/* ==================== */
/* Tools Section - Updated CSS with Logo Support */
/* Tools Section - Complete Fixed CSS */
.tools-section {
    background-color: var(--white);
    padding: 80px 0;
}

.tools-categories {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.tools-category {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
}

/* Category Icon Styles */
.category-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.category-title:hover .category-icon {
    transform: scale(1.1);
}

/* Fallback for Font Awesome if image fails to load */
.category-title .fas {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.tool-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 90px;
    overflow: hidden;
}

.tool-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(52, 152, 219, 0.3);
}

.tool-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    padding: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tool-icon img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.tool-item:hover .tool-icon {
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.2);
}

/* Special styling for hosting icons (Render/Netlify) */
.hosting-icons {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-around;
    align-items: center;
}

.hosting-icon {
    width: 40%;
    height: 40%;
    object-fit: contain;
}

.tool-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tool-info h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
}

.tool-info p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Responsive Adjustments */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .tool-item {
        padding: 18px;
        min-height: 85px;
    }

    .tool-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .tool-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .tools-categories {
        gap: 25px;
    }

    .tools-category {
        padding: 25px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tool-info p {
        -webkit-line-clamp: unset;
        display: block;
    }

    .category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .tools-section {
        padding: 60px 0;
    }

    .tools-category {
        padding: 20px;
    }

    .tool-item {
        padding: 15px;
        min-height: auto;
        gap: 15px;
    }

    .tool-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .tool-info h4 {
        font-size: 1rem;
    }

    .tool-info p {
        font-size: 0.85rem;
    }
}

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

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

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

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

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

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

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

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

.project-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(8 27 40 / 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-links {
    opacity: 1;
}

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

.project-link:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

.project-content {
    padding: 20px;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-description {
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tech span {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}



/* ==================== */
/* Certificates Section */
/* ==================== */
.certificates-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;

}

.certificates-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 40px;
}

/* --- Filter Buttons --- */
.certificates-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.certificates-filter .filter-btn {
    padding: 8px 24px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
}

.certificates-filter .filter-btn:hover,
.certificates-filter .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* --- Slider Container --- */
.certificates-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px; 
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    cursor: ew-resize; 
    user-select: none; /* Prevents text highlighting when clicking fast */
    -webkit-user-drag: none; /* Prevents accidental drag on mobile/safari */
}

/* --- Base Slide Styles --- */
.certificates-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 20px; 
    opacity: 0;
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    z-index: 1;
    pointer-events: none; /* Keeps clicks falling through to the container for drag/swipe */
    user-select: none;
}

/* Hidden State for JS Filtering */
.certificates-slide.filtered-out {
    display: none !important;
}

/* --- Active and Animation States --- */
.certificates-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.certificates-slide.exit-left {
    opacity: 0;
    transform: translateX(-100%);
}

.certificates-slide.exit-right {
    opacity: 0;
    transform: translateX(100%);
}

.certificates-slide.no-transition {
    transition: none !important;
}

/* --- Dots Navigation --- */
.certificates-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.certificates-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray); 
    cursor: pointer;
    transition: all 0.3s ease; 
}

.certificates-dots .dot:hover {
    background-color: var(--primary-color);
    opacity: 0.7;
}

.certificates-dots .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .certificates-slider-container { height: 350px; }
    .certificates-section h2 { font-size: 2rem; }
}

@media (max-width: 576px) {
    .certificates-slider-container { height: 250px; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .certificates-slider-container { height: 350px; }
    .certificates-section h2 { font-size: 2rem; }
    
    /* Adjusted Filter Buttons for Tablets/Small Laptops */
    .certificates-filter {
        gap: 10px;
        margin-bottom: 30px;
    }
    .certificates-filter .filter-btn {
        padding: 6px 18px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .certificates-slider-container { height: 250px; }
    
    /* Adjusted Filter Buttons for Mobile Phones */
    .certificates-filter {
        gap: 8px;
        margin-bottom: 20px;
    }
    .certificates-filter .filter-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}



/* ==================== */
/* Education Section */
/* ==================== */
.education-section {
    background-color: var(--light-color);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    width: 100%;
    padding: 20px 40px;
    margin-bottom: 30px;
}

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

.timeline-date {
    position: absolute;
    top: 20px;
    width: 120px;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-weight: 500;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: -170px;
}

.timeline-item:nth-child(even) .timeline-date {
    right: -170px;
}

.timeline-content {
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 40px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--light-color);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: -60px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: -60px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.timeline-subtitle {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.timeline-description {
    color: var(--dark-gray);
}

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

.contact-section .grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-start;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

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

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

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-content p {
    color: var(--dark-gray);
}

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

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-control::placeholder {
    color: var(--gray);
}

textarea.form-control {
    min-height: 150px;
    border-radius: 20px;
    resize: vertical;
}


.form-status {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* massage */
.form-status.success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.form-status.error {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
}


/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about {
    grid-column: span 2;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

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

.footer-text {
    margin-bottom: 20px;
    color: var(--light-gray);
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-social .social-links {
    margin-top: 20px;
}

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

.footer-social .social-link:hover {
    background-color: var(--primary-color);
}

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

.copyright {
    color: var(--light-gray);
}


/* Responsive Styles */
@media (max-width: 992px) {

    .hero-section .grid,
    .about-section .grid,
    .contact-section .grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 2;
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

    .social-links {
        justify-content: center;
    }

    .hero-image {
        order: 1;
        margin-bottom: 50px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -170px;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -60px;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        right: auto;
        left: -10px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .navbar .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-links.active {
        left: 0;
    }

    .nav-toggler {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .navbar .nav-links {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .navbar .nav-links.active {
        right: 0;
    }

    .nav-toggler {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .profession {
        font-size: 1.5rem;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .timeline-date {
        position: static;
        margin-bottom: 15px;
    }

    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: auto;
    }

    .timeline-content::before,
    .timeline-content::after {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: span 1;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .profession {
        font-size: 1.2rem;
    }

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

    .btn {
        width: 100%;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-info {
        grid-template-columns: 1fr;
    }
}