/* Reset & 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: #3e2723;
    background-color: #fafafa;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 50%, #a1887f 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeInDown 1s;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s 0.2s both;
}

.subtitle {
    font-size: 1.4em;
    margin-bottom: 5px;
    opacity: 0.95;
    animation: fadeInDown 1s 0.4s both;
}

.university {
    font-size: 1.2em;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInDown 1s 0.6s both;
}

.quote {
    font-style: italic;
    font-size: 1.1em;
    opacity: 0.85;
    margin-top: 20px;
    animation: fadeInDown 1s 0.8s both;
}

.social-links {
    margin-top: 30px;
    animation: fadeInUp 1s 1s both;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    margin: 0 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 1.5em;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Section */
.section {
    margin: 80px 0;
}

.section-title {
    font-size: 2.8em;
    color: #6d4c41;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #6d4c41, #a1887f);
    border-radius: 2px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(109, 76, 65, 0.1);
    transition: all 0.3s;
    border-top: 4px solid #8d6e63;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(109, 76, 65, 0.2);
}

.card-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.card h3 {
    color: #6d4c41;
    margin-bottom: 20px;
    font-size: 1.6em;
}

.card p {
    color: #5d4037;
    line-height: 1.8;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Experience Item */
.experience-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #8d6e63;
    box-shadow: 0 3px 15px rgba(109, 76, 65, 0.1);
    transition: all 0.3s;
}

.experience-item:hover {
    border-left-color: #6d4c41;
    box-shadow: 0 8px 25px rgba(109, 76, 65, 0.15);
}

.item-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon {
    font-size: 2em;
    margin-right: 15px;
}

.experience-item h4 {
    color: #6d4c41;
    font-size: 1.4em;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #5d4037;
    border-bottom: 1px solid #f5f5f5;
}

.experience-item li:last-child {
    border-bottom: none;
}

.experience-item li:before {
    content: "▸";
    color: #8d6e63;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%);
    color: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(109, 76, 65, 0.3);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-8px);
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.5em;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    transition: all 0.3s;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #6d4c41 0%, #8d6e63 100%);
    color: #fff;
    padding: 80px 20px;
    margin-top: 80px;
}

.contact h2 {
    color: #fff;
    font-size: 2.8em;
    margin-bottom: 50px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form h3 {
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    padding: 12px;
    background: #222;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #000;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.contact-item h3 {
    margin-bottom: 15px;
    font-size: 1.3em;
}

.contact-item p {
    opacity: 0.95;
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer */
footer {
    background: #5d4037;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

/* 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);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2em;
    }
    
    .section-title {
        font-size: 2em;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
}