/* Base Styles */
:root {
    --primary: #3949ab;
    --secondary: #00bfa5;
    --dark: #121212;
    --dark-lighter: #1e1e1e;
    --gray: #333333;
    --light-gray: #888888;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --card-bg: #1a1a1a;
    --border-radius: 8px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h1 span {
    color: var(--secondary);
    position: relative;
    z-index: 1;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    right: -5px;
    height: 40%;
    background-color: rgba(0, 191, 165, 0.1);
    z-index: -1;
    transform: skew(-15deg);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: var(--gradient);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--light-gray);
}

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

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(57, 73, 171, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(57, 73, 171, 0.6);
}

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

.secondary-btn:hover {
    background-color: rgba(57, 73, 171, 0.1);
}

.large-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    color: var(--white);
    font-weight: 500;
    position: relative;
}

nav ul li a:hover {
    color: var(--secondary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.cta-btn {
    background: var(--gradient);
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    grid-column: 1 / 8;
    z-index: 2;
}

.hero-visual {
    grid-column: 8 / 13;
    position: relative;
    height: 400px;
}

.tech-pattern {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    z-index: 1;
}

.code-snippet {
    width: 100%;
    height: 300px;
    background-color: var(--dark-lighter);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-gray);
}

.dot:nth-child(1) {
    background-color: #ff5f57;
}

.dot:nth-child(2) {
    background-color: #febc2e;
}

.dot:nth-child(3) {
    background-color: #28c840;
}

.code-snippet pre {
    font-family: 'Consolas', 'Courier New', monospace;
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.6;
}

.code-snippet code {
    white-space: pre-line;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background-color: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.arrows span {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    margin-bottom: -5px;
    animation: arrows 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrows {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Features Section */
.features {
    background-color: var(--dark-lighter);
    position: relative;
    overflow: hidden;
}

.features h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.features h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
}

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

.feature-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(57, 73, 171, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card:nth-child(2) .feature-icon {
    background-color: rgba(0, 191, 165, 0.1);
}

.feature-card:nth-child(3) .feature-icon {
    background-color: rgba(57, 73, 171, 0.1);
}

/* About Section */
.about {
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-visual {
    position: relative;
    height: 400px;
}

.tech-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tech-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding: 20px;
}

.tech-dots span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.3;
}

.tech-dots span:nth-child(2n) {
    background-color: var(--secondary);
    animation: pulse 3s infinite;
}

.tech-dots span:nth-child(3n) {
    animation: pulse 4s infinite 1s;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(1); opacity: 0.3; }
}

/* Experience Section */
.experience {
    background: var(--gradient);
    text-align: center;
    position: relative;
}

.experience h2 {
    color: var(--white);
    margin-left: auto;
    margin-right: auto;
}

.experience h2::after {
    background: var(--white);
    left: 50%;
    transform: translateX(-50%);
}

.experience-text {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.cta-container {
    margin-top: 40px;
}

.experience .primary-btn {
    background-color: var(--white);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.experience .primary-btn:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    background-color: var(--dark-lighter);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links ul {
    display: flex;
    gap: 30px;
}

.footer-links ul li a {
    color: var(--light-gray);
}

.footer-links ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-bottom p {
    color: var(--light-gray);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        grid-column: 1 / 13;
    }
    
    .hero-visual {
        grid-column: 1 / 13;
        margin-top: 50px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        margin-top: 50px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark);
        padding: 100px 40px 40px;
        transition: var(--transition);
        box-shadow: var(--shadow);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .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);
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-links ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .code-snippet {
        height: 250px;
    }
    
    .feature-card {
        padding: 30px;
    }
    
    .tech-circle {
        width: 200px;
        height: 200px;
    }
}
