/* Base Styles and Variables */
:root {
    --primary-color: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary-color: #00cec9;
    --bg-dark: #121212;
    --bg-light: #1e1e1e;
    --bg-lighter: #2a2a2a;
    --text-color: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --glow-effect: 0 0 15px rgba(108, 92, 231, 0.5);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

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

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: var(--primary-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

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

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
    transform: translateY(-3px);
    color: white;
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.highlight {
    color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: var(--bg-dark);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.subtitle {
    font-size: 1rem;
    color: var(--primary-light);
    margin: 0;
}

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

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(108, 92, 231, 0.1), transparent 60%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.flip-card {
    perspective: 1000px;
    height: 250px;
    border-radius: 10px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: var(--card-shadow);
    border-radius: 10px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background-color: var(--bg-lighter);
    border: 1px solid var(--border-color);
}

.flip-card-front i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.flip-card-back {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: rotateY(180deg);
}

.flip-card-back h3 {
    margin-bottom: 1rem;
}

.flip-card-back p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.view-project-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all var(--transition-speed) ease;
}

.view-project-btn:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Skills Section */
.skills-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.skills-content {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    display: flex;
    align-items: center;
}

.skill-name i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-color);
}

.skill-percentage {
    font-weight: bold;
    color: var(--primary-light);
}

.skill-bar {
    height: 10px;
    background-color: var(--bg-lighter);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

/* Tools Section */
.tools-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-lighter);
    border-radius: 10px;
    padding: 2rem 1rem;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
}

.tool-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tool-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-effect);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--bg-dark);
}

.about-content {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.about-text {
    max-width: 700px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background-color: var(--bg-lighter);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

/* Footer Section */
footer {
    padding: 3rem 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-lighter);
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
    box-shadow: var(--card-shadow);
}

.social-links a i {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    box-shadow: var(--glow-effect);
}

.social-links a:hover i {
    color: white;
}

.footer-text {
    color: var(--text-muted);
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin: 0 1rem;
    }
    
    .hero {
        height: auto;
        padding: 6rem 0;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
