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

:root {
    --primary: #0a192f;
    --secondary: #172a45;
    --accent: #64ffda;
    --accent-dark: #4a9eff;
    --text-light: #ccd6f6;
    --text-white: #ffffff;
    --gradient: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 2px;
}

.logo span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 3px;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    animation: pulse 20s infinite;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 4rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    animation: slideUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-description {
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

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

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    display: flex;
    gap: 3rem;
    font-size: 4rem;
    color: var(--accent);
    animation: float 6s ease-in-out infinite;
}

.code-animation i {
    animation: iconPulse 2s ease-in-out infinite;
}

.code-animation i:nth-child(2) {
    animation-delay: 0.5s;
}

.code-animation i:nth-child(3) {
    animation-delay: 1s;
}

/* Section Styles */
section {
    padding: 6rem 5%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* About / Team Section */
.about {
    background: var(--secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--primary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.cv-link {
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.cv-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(100, 255, 218, 0.3);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.team-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.team-social a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.team-social a:hover {
    color: var(--accent);
}

/* Portfolio Section */
.portfolio {
    background: var(--primary);
}

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

.portfolio-item {
    background: var(--secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.portfolio-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-link:hover {
    gap: 1rem;
    color: var(--accent-dark);
}

/* Contact Section */
.contact {
    background: var(--secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.info-item i {
    font-size: 2rem;
    color: var(--accent);
}

.info-item h4 {
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-light);
}

.contact-form {
    background: var(--primary);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--secondary);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.form-group select option {
    background: var(--secondary);
    color: var(--text-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: var(--primary);
    border-top: 1px solid var(--secondary);
    padding: 3rem 5% 1rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.footer-logo p {
    color: var(--text-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s;
    display: inline-block;
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--primary);
        padding: 2rem;
        text-align: center;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .code-animation {
        font-size: 2.5rem;
        gap: 1.5rem;
    }
}