:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--dark);
    transition: background-color 0.3s ease;
}

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

/* Header Styling */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0 40px;
    min-height: 70px;
    position: relative;
}

header::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, transparent 25px, white 0);
    background-size: 30px 30px;
}

header h1 {
    margin: 0;
    font-size: 3em;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 700;
    animation: fadeInDown 1s ease-out;
}

header p {
    text-align: center;
    font-size: 1.2em;
    letter-spacing: 1px;
    margin-top: 10px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

/* Section Styling */
section {
    padding: 60px 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary);
    font-size: 2.2em;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
#about p {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-size: 1.1em;
    line-height: 1.8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about p:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Experience Section */
#experience ul {
    background: white;
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    list-style: none;
}

#experience ul li {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    padding-left: 30px;
    transition: transform 0.2s ease;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#experience ul li:hover {
    transform: translateX(5px);
}

#experience ul li:before {
    content: "→";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

#experience ul li:last-child {
    border-bottom: none;
}

#experience.visible .experience-list li {
    opacity: 1;
    transform: translateX(0);
    padding-left: 20px;
}

#experience.visible .experience-list li:nth-child(1) { transition-delay: 0.1s; }
#experience.visible .experience-list li:nth-child(2) { transition-delay: 0.2s; }
#experience.visible .experience-list li:nth-child(3) { transition-delay: 0.3s; }
#experience.visible .experience-list li:nth-child(4) { transition-delay: 0.4s; }
#experience.visible .experience-list li:nth-child(5) { transition-delay: 0.5s; }

/* Contact Section */
#contact {
    background-color: #f1f5f9;
    position: relative;
    z-index: 1;
}

#contact form {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

#contact form:hover {
    transform: translateY(-5px);
}

#contact label {
    display: block;
    margin: 15px 0 8px;
    font-weight: 500;
    color: var(--dark);
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

#contact button {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

#contact button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

#formMessage {
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    padding: 10px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    position: relative;
}

/* Animations */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media(max-width: 768px){
    header h1 {
        font-size: 2.2em;
    }
    .container {
        width: 90%;
    }
    #about p, 
    #experience ul,
    #contact form {
        padding: 20px;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px;
}

.social-icon {
    color: white;
    font-size: 1.5em;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

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

/* Typing effect */
.typing-effect {
    border-right: 3px solid var(--secondary);
    padding-right: 5px;
    animation: typing 3s steps(30) infinite;
}

@keyframes typing {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--secondary); }
}

/* About section card styling */
.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.quote-icon {
    color: var(--secondary);
    font-size: 1.5em;
    margin-right: 10px;
    opacity: 0.5;
}

/* Experience list styling */
.experience-list li {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.experience-list li:hover {
    transform: translateX(5px);
}

.experience-list li i {
    color: var(--secondary);
    margin-right: 15px;
    font-size: 1.2em;
    min-width: 25px;
}

/* Contact form styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 5px;
}

/* Footer styling */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.made-with {
    font-size: 0.9em;
}

.made-with i {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Fixing experience section based on our HTML changes */
#experience ul {
    padding: 0;
}

#experience ul li {
    padding-left: 0;
}

#experience ul li:before {
    content: none;
}

/* Responsive adjustments */
@media(max-width: 768px){
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .made-with {
        margin-top: 10px;
    }
} 