:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --gradient-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --transition: all 0.3s ease;
}

* {
    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-color);
    overflow-x: hidden;
    background: var(--gradient-bg);
    background-attachment: fixed;
}

/* Header & Navigation */
header {
    background: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Main Content */
main {
    margin-top: 70px;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

section:nth-child(even) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

h1, h2, h3 {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
    text-align: center;
    padding: 8rem 2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    animation: fadeInUp 1s ease;
}

#hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

/* About Section */
#about {
    padding: 4rem 2rem;
    position: relative;
}

#about h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--secondary-color) 50%, 
        transparent 100%
    );
}

.content {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 4px 16px,
                rgba(17, 17, 26, 0.05) 0px 8px 32px;
    position: relative;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px,
                rgba(17, 17, 26, 0.1) 0px 16px 56px,
                rgba(17, 17, 26, 0.1) 0px 24px 80px;
    border-color: rgba(52, 152, 219, 0.2);
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(44, 62, 80, 0.05));
    border-radius: 20px;
    pointer-events: none;
}

.content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    position: relative;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin: 0;
}

.content p::before,
.content p::after {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.1;
    position: absolute;
    line-height: 1;
}

.content p::before {
    top: -1rem;
    left: 0.5rem;
}

.content p::after {
    bottom: -2rem;
    right: 0.5rem;
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    #about {
        padding: 3rem 1rem;
    }

    .content {
        padding: 1.5rem;
    }

    .content p {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 
        rgba(17, 17, 26, 0.1) 0px 4px 16px,
        rgba(17, 17, 26, 0.05) 0px 8px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px, 
                rgba(17, 17, 26, 0.1) 0px 16px 56px, 
                rgba(17, 17, 26, 0.1) 0px 24px 80px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    pointer-events: none;
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

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

.skill-card ul {
    list-style: none;
    margin-top: 1rem;
}

.skill-card ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.2s ease;
}

.skill-card ul li:before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    transition: all 0.2s ease;
}

.skill-card:hover ul li {
    transform: translateX(5px);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 
        rgba(17, 17, 26, 0.1) 0px 4px 16px,
        rgba(17, 17, 26, 0.05) 0px 8px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(44, 62, 80, 0.05));
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        rgba(17, 17, 26, 0.1) 0px 8px 24px,
        rgba(17, 17, 26, 0.1) 0px 16px 56px,
        rgba(17, 17, 26, 0.1) 0px 24px 80px;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.project-card h3 a i {
    font-size: 0.8em;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-card h3 a:hover i {
    opacity: 1;
    transform: translateX(3px);
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.technologies span {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.technologies span:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Methodology Section */
.methodology-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 
        rgba(17, 17, 26, 0.1) 0px 4px 16px,
        rgba(17, 17, 26, 0.05) 0px 8px 32px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
}

.methodology-item ul {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.methodology-item ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.methodology-item ul li:before {
    content: "✓";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Contact Section */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-links a {
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: var(--transition);
}

.contact-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
