:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #0d6efd;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-light: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d6efd' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20px;
}

nav h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

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

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Header */
header {
    background: linear-gradient(rgba(26, 26, 46, 0.9), rgba(15, 52, 96, 0.9)),
                url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    padding: 12rem 0 8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(26, 26, 46, 0.7) 0%,
        rgba(15, 52, 96, 0.7) 100%);
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

header p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Header Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    header {
        padding: 8rem 0 4rem;
        background-attachment: scroll;
    }

    header h1 {
        font-size: 2.5rem;
    }

    header p {
        font-size: 1.2rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section:nth-child(even) {
    background-color: var(--white);
}

.section h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

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

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--highlight-color);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.2);
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

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

.timeline-date {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--highlight-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.timeline-content h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.6;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--highlight-color);
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-date {
        left: 30px;
        transform: translateX(-100%);
        margin-left: -10px;
    }

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

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Add delay to each timeline item */
.timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-card .date {
    display: block;
    color: var(--highlight-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.skills-list span {
    background: var(--light-bg);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skills-list span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.skills-list span:hover {
    color: var(--white);
    transform: translateY(-5px);
}

.skills-list span:hover::before {
    opacity: 1;
}

/* Contact */
.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-light);
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-info p:hover {
    background: var(--light-bg);
    transform: translateX(10px);
}

.contact-info i {
    color: var(--highlight-color);
    font-size: 1.3rem;
}

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

footer p {
    opacity: 0.8;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* General Styles */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    nav .container {
        padding: 1rem;
    }

    nav h1 {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 1rem;
    }

    nav ul li a {
        font-size: 0.9rem;
    }

    /* Header */
    header {
        padding: 6rem 0 3rem;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* About Section */
    .about-text {
        padding: 1.5rem;
    }

    .about-text .lead {
        font-size: 1.1rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .expertise-card {
        padding: 1.5rem;
    }

    .expertise-card h3 {
        font-size: 1.2rem;
    }

    /* Experience Section */
    .timeline {
        padding: 0 1rem;
    }

    .timeline-item {
        padding: 1.5rem;
        margin-left: 1rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item h4 {
        font-size: 1rem;
    }

    .timeline-item .date {
        font-size: 0.9rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.2rem;
    }

    .skills-list {
        gap: 0.5rem;
    }

    .skills-list span {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact-content {
        padding: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card i {
        font-size: 2rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    .contact-social {
        padding: 1.5rem;
    }

    .contact-social h3 {
        font-size: 1.3rem;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icon i {
        font-size: 1.8rem;
    }

    .social-icon span {
        font-size: 0.8rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    /* Navigation */
    nav .container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Header */
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    /* About Section */
    .about-text .lead {
        font-size: 1rem;
    }

    .expertise-card ul li {
        font-size: 0.9rem;
    }

    /* Experience Section */
    .timeline-item ul li {
        font-size: 0.9rem;
    }

    /* Projects Section */
    .project-card p {
        font-size: 0.9rem;
    }

    /* Contact Section */
    .contact-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 4rem 0 2rem;
    }

    .section {
        padding: 3rem 0;
    }

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

/* Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

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

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 1s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.social-links a:hover {
    animation: pulse 1s infinite;
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.about-text {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-light);
}

.about-text .lead {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 500;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.expertise-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
}

.expertise-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.expertise-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-light);
}

.expertise-card ul {
    list-style: none;
    padding: 0;
}

.expertise-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.expertise-card ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--highlight-color);
}

.professional-values {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.professional-values h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.professional-values h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-light);
}

.professional-values p {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .about-text {
        padding: 2rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text .lead {
        font-size: 1.2rem;
    }
}

/* Contact Section */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-light);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--light-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--gradient-light);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-social {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-social h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icon i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--highlight-color);
}

.social-icon span {
    font-size: 0.9rem;
    font-weight: 500;
}

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

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 2rem;
    }
    
    .social-icons {
        gap: 1.5rem;
    }
}

/* Update font weights for specific elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.lead {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.contact-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.social-icon span {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.timeline-item .date {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.project-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.skill-category h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
} 