/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4A90E2;
    --secondary-color: #50C878;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-hero: #A8D8EA;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* Navigation Bar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

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

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

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(74, 144, 226, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-hero) 0%, #7FB3D5 100%);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
    color: #fff; /* icons white */
}

.social-links a.twitter   { background-color: #1da1f2; }
.social-links a.facebook  { background-color: #1877f2; }
.social-links a.linkedin  { background-color: #0077b5; }
.social-links a.github    { background-color: #333; }

.social-links a:hover {
    transform: translateY(-5px);
    opacity: 0.8; /* subtle hover */
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--bg-hero) 0%, #7FB3D5 100%);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Main Content */
.main-content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

/* Home Page - Content Wrapper */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-image {
    width: 100%;
    max-width: 100px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
}

.about-section h2 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.about-section p {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

/* Info Sidebar */
.info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357ABD 100%);
    padding: 2rem;
    border-radius: 12px;
    color: var(--white);
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 0.5rem;
}

.info-item {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.info-item:hover {
    background-color: rgba(255,255,255,0.2);
}

.info-item strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.info-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 1;
}

.timeline-header {
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

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

.timeline-company {
    color: var(--text-light);
}

.timeline-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p,
.timeline-content ul {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-content ul {
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-section {
    margin-top: 3rem;
}

.skills-section h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Skills List - Single column */
#allSkills {
    max-width: 800px;
    margin: 0 auto;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 3rem;
}

.skills-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li:before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.skills-list li:hover {
    background-color: #f8f9fa;
    padding-left: 1.8rem;
    transition: all 0.3s ease;
}

/* Remove old skills-grid styles if you want */
.skills-grid {
    display: none;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 1.5rem;
    background-color: var(--white);
}

.gallery-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.gallery-info h3 span {
    color: var(--primary-color);
}

.gallery-info p {
    color: var(--text-light);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h2,
.contact-form-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.contact-info h2 span,
.contact-form-section h2 span {
    color: var(--primary-color);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.contact-detail-item:hover {
    background-color: #e8f4f8;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #357ABD 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail-content strong {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.contact-detail-content span {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357ABD 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

#formMessage {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

#formMessage.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#formMessage.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .content-wrapper,
    .skills-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .info-sidebar {
        position: static;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .page-header h1 {
        font-size: 2rem;
    }

    .timeline-item {
        padding-left: 50px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-section h2 {
        font-size: 1.5rem;
    }

    .gallery-item img {
        height: 250px;
    }

    .contact-detail-item {
        flex-direction: column;
        text-align: center;
    }

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

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item::before {
        left: 1px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-menu a {
        padding: 0.3rem 0.5rem;
        font-size: 0.9rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

.loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}


