:root {
    --primary: #0A2463;
    --secondary: #4A4E69;
    --accent: #FF595E;
    --accent-alt: #FFD700;
    --bg-light: #F8F9FA;
    --bg-blue: #E6F0FF;
    --text-dark: #1F2937;
    --text-light: #4B5563;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-blue) 100%);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #2c3e50;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
    position: relative;
    transition: var(--transition);
    background: transparent;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(230, 240, 255, 0) 0%, rgba(230, 240, 255, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.section.in-view::before {
    opacity: 1;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.section h2 i {
    font-size: 2rem;
    color: var(--primary);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.5s ease;
}

.section.in-view h2::after {
    width: 100px;
}

/* Button Styles */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

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

.btn-outline:hover {
    color: white;
    border-color: var(--accent);
}

.btn:not(.btn-outline) {
    background: var(--primary);
    color: white;
    border: none;
}

.btn:not(.btn-outline):hover {
    color: white;
}

/* Header Section */
header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 100px 0;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Navigation */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(10, 36, 99, 0.1);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.nav-logo h1 {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    align-items: right;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    text-align: left;
}

.welcome-text {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    line-height: 1;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.name {
    font-size: 5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.2s;
}

.title {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards 0.4s;
}

.strength {
    font-size: 1.5rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    white-space: nowrap;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-links a {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.social-links i {
    font-size: 1.5rem;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
    transition: var(--transition);
    transform: translateY(50px);
    opacity: 0;
}

.project-card.in-view {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.15);
}

.project-card h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.project-card p {
    margin-bottom: 20px;
    color: #555;
}

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

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
    transform: translateY(50px);
    opacity: 0;
    transition: var(--transition);
    flex: 1;
    min-width: 250px;
    padding: 25px;
}

.skill-category.in-view {
    transform: translateY(0);
    opacity: 1;
}

.skill-category h3 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.skill-category:hover h3::after {
    width: 50px;
}

.skills-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.skills-list li i {
    margin-right: 10px;
    color: var(--primary);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--primary);
    width: 25px;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

.contact-info a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.contact-info a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact-info a:hover {
    color: var(--accent);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #2c3e50;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }
    
    .welcome-text {
        font-size: 3rem;
    }
    
    .about-text {
        text-align: center;
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    header {
        padding: 60px 0;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 480px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        padding: 10px;
    }
    
    .project-links {
        flex-direction: column;
    }
}

.skill-header {
    display: block;
    width: 100%;
}

.skill-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font: inherit;
    color: inherit;
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
}

.skill-item i {
    margin-right: 10px;
    color: var(--primary);
}

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

.sub-skills {
    margin-top: 10px;
    padding-left: 25px;
    list-style-type: disc;
    width: 100%;
}

.sub-skills li {
    padding: 5px 0;
    color: #555;
    display: block;
}

.toggle-list {
    transition: all 0.3s ease;
    width: 100%;
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 70%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close-button {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 24px;
    cursor: pointer;
}

.close-button:hover {
    color: #2c3e50;
}

/* Hero Section */
.hero-section {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-blue) 100%);
}

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

/* Add scroll-based animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Social Links */
.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    color: white;
}

/* Credentials Section */
.credentials-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.credentials-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20px;
    right: -20px;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 240, 255, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.credentials-content.in-view::before {
    opacity: 1;
    transform: translateY(0);
}

.education-section, .licenses-section {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(10, 36, 99, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-section:hover, .licenses-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(10, 36, 99, 0.15);
}

.credential-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 15px 15px 0;
    transition: all 0.3s ease;
}

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

.credential-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(10px);
}

.credential-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.duration i {
    margin-right: 0.5rem;
}

.achievement {
    color: var(--accent);
    font-weight: 600;
}

.education-section h3, .licenses-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-section h3 i, .licenses-section h3 i {
    color: var(--primary);
}

@media screen and (max-width: 768px) {
    .credentials-content {
        padding: 1rem;
    }
    
    .credential-item {
        padding: 1rem;
    }
}