body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* preloader style */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

/* styles for mobile responsiveness */
@media (max-width: 768px) {
    
    .section {
        padding: 60px 0;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1rem;
    }
}

.section {
    padding: 100px 0;
}


/* Hero section styles */
.hero {
    position: relative;
    min-height: 100vh;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#000 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    pointer-events: none;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #212529;
    opacity: 0;
}

.hero h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #495057;
    min-height: 40px;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero .profession {
    opacity: 0;
}

.hero .lead {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* styles for buttons and social icons */
.hero-buttons {
    opacity: 0;
}

.social-links {
    opacity: 0;
}

.hero-buttons.fade-in {
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 1.8s;
}

.social-links.fade-in {
    animation: fadeIn 0.8s ease forwards;
    animation-delay: 2.1s;
}

/* fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*time animation delays */
.hero h1.fade-in { animation-delay: 0.3s; }
.hero h3.fade-in { animation-delay: 0.9s; }
.hero .lead.fade-in { animation-delay: 1.5s; }
.hero-buttons.fade-in { animation-delay: 2.1s; }
.social-links.fade-in { animation-delay: 2.4s; }

/* start typing animation after fade-in */
.typed-text-output {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.2s;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h3 {
        font-size: 1.5rem;
    }
    
    .hero .lead {
        font-size: 1rem;
    }
}


.hero .image-content {
    position: relative;
}

.hero-image {
    opacity: 0;
    transform: translateX(20px);
    max-width: 90%;
}

.hero-image.fade-in {
    animation: slideInRight 1s ease forwards;
    animation-delay: 0.8s;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero .row {
        flex-direction: column-reverse;
    }
    
    .hero .text-content {
        text-align: center;
        margin-top: 2rem;
    }
    
    .hero-image {
        max-width: 100%;
        margin: 2rem auto;
    }
    
    .hero .image-content {
        justify-content: center !important;
    }
    
    .social-links {
        justify-content: center;
    }
}

.project {
    margin-bottom: 30px;
}

.project img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.project img:hover {
    transform: scale(1.05);
}

.skill-item {
    text-align: center;
}

.skill-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}


/* Updated about section styles */
.about-content {
    padding-right: 2rem;
}

.about-image {
    position: relative;
    padding: 1rem;
}

.about-image img {
    max-width: 350px;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.about-image:hover img {
    transform: translateY(-5px);
}

@media (max-width: 991px) {
    .about-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .about-image {
        margin-top: 2rem;
    }
    
    .about-image img {
        max-width: 280px;
    }
}

/* Skills section styles */
.skills-container {
    max-width: 900px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.skill-item span {
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

/* Portfolio Styles */
.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-content h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #2d3748;
}

.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .portfolio-img img {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 1.25rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
}


/* Qualifications Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    background: #0d6efd;
    border: 4px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.timeline-location {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.timeline-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item::before {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}