/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Variables */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --primary-color: #3498db;
    --secondary-color: #ecf0f1;
    --light-color: #2c3e50;
    --dark-color: #ecf0f1;
    --text-color: #ecf0f1;
    --text-light: #bdc3c7;
    --white: #2c3e50;
    --black: #ecf0f1;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    padding: 10rem 0 5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--white);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-btns {
    margin-top: 2rem;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.bg-light {
    background-color: var(--light-color);
}

/* About Section */
.about img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e0e0e0;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Services Section */
.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.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;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-date {
    position: absolute;
    top: 0;
    width: 120px;
    padding: 0.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-weight: 500;
    text-align: center;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: calc(50% + 2rem);
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-date {
    left: calc(50% + 2rem);
    transform: translateX(-50%);
}

.timeline-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Courses Section */
.course-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.course-content {
    padding: 1.5rem;
}

/* Contact Section */
.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Social Media */
.social-media {
    text-align: center;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--dark-color);
    color: var(--white);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Animations */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__zoomIn {
    animation-name: zoomIn;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    50% {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
        text-align: center;
    }
    
    .hero img {
        margin-top: 3rem;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 5rem;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: 0;
        right: auto;
        transform: none;
    }
}

@media (max-width: 767.98px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-btns .btn:last-child {
        margin-bottom: 0;
    }
}

#home .col-md-6 img {
    max-width: 350px;
    border-radius: 20px; /* optional rounded corners */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* optional subtle shadow */
}

@media (max-width: 768px) {
    #home .col-md-6 img {
        max-width: 250px;
        margin-top: 20px;
    }
}
/* Courses Section Styles */
.course-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.card-img-container {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.card-img-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.course-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-content h3 {
    color: #343a40;
    margin-bottom: 0.75rem;
}

.course-content p {
    flex: 1;
}

@media (max-width: 767.98px) {
    .card-img-container {
        height: 120px;
    }
}
/* Cloud/DevOps Badges */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bg-azure {
    background-color: #0089D6;
    color: white;
}

.bg-aws {
    background-color: #FF9900;
    color: black;
}

.bg-terraform {
    background-color: #7B42BC;
    color: white;
}

.bg-ansible {
    background-color: #EE0000;
    color: white;
}

/* Card enhancements for cloud focus */
.course-card.cloud-focus {
    border-left: 4px solid #0089D6;
}
/* Services Section */
.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .service-card {
        padding: 1.5rem !important;
    }
    .service-icon {
        width: 50px;
        height: 50px;
    }
    .service-icon i {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 2rem;
    }
}
.map-container {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(90%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(100%);
}