/* Base styles */
:root {
    --primary-color: #4a6bdf;
    --secondary-color: #ff6b6b;
    --bg-color: #f8f9fa;
    --dark-color: #343a40;
    --light-color: #ffffff;
    --text-color: #333333;
    --border-radius: 5px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

h1, h2, h3 {
    margin-bottom: 20px;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #3451b1;
}

section {
    padding: 60px 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 5px 10px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
}

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

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 26px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 160px 0 80px;
    text-align: center;
}

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

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About section */
.about {
    background-color: var(--light-color);
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Projects section */
.projects {
    background-color: var(--bg-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-top: 10px;
}

/* Skills section */
.skills {
    background-color: var(--light-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    opacity: 0;
    transform: translateY(20px);
}

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

.skill-category ul {
    list-style-type: none;
}

.skill-category li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Contact section */
.contact {
    background-color: var(--bg-color);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--light-color);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.twitter {
    background-color: #1da1f2;
}

.github {
    background-color: #333;
}

.webpage {
    background-color: var(--secondary-color);
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 223, 0.2);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: var(--secondary-color);
}

.error-message {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 5px;
    text-align: left;
}

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

.contact-form button {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contact-form button:hover {
    background-color: #3451b1;
}

.contact-form button:disabled {
    background-color: #b3b3b3;
    cursor: not-allowed;
}

/* Message notification */
.message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    background-color: var(--dark-color);
    color: var(--light-color);
    box-shadow: var(--box-shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.message.show {
    transform: translateY(0);
    opacity: 1;
}

.message.success {
    background-color: #28a745;
}

.message.error {
    background-color: var(--secondary-color);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s forwards;
}

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

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
    /* Responsive navigation */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 30px;
        transition: all 0.4s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 0 0 30px 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    header {
        padding: 130px 0 40px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .project-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .contact-form {
        padding: 20px;
    }
} 