
:root {
    --primary: #f0131e; /* Iron Man red */
    --secondary: #f8d568; /* Gold */
    --dark: #1a1a1a;
    --light: #f4f4f4;
    --accent: #3a9efd; /* Arc reactor blue */
    --card-bg: rgba(30, 30, 30, 0.8);
    --mobile-breakpoint: 768px;
    --tablet-breakpoint: 992px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

/* Header Styles - Responsive */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, var(--primary) 70%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(58, 158, 253, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(58, 158, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 158, 253, 0); }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

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

nav a {
    color: var(--light);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

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

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

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

.hero-content {
    width: 50%;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero h1 span {
    color: var(--light);
}

.hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.cta-button:hover {
    background: transparent;
    color: var(--primary);
}

.hero-model {
    position: absolute;
    right: 5%;
    width: 40%;
    height: 80%;
    background: url('https://example.com/iron-man-helmet-3d.png') no-repeat center center;
    background-size: contain;
}

/* Section Styles - Responsive */
section {
    padding: 6rem 10%;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
}

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

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

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(240, 19, 30, 0.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 1.1vw, 1rem);
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    background: rgba(240, 19, 30, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(240, 19, 30, 0.3);
    font-size: 0.85rem;
    white-space: nowrap;
}

.about-model {
    flex: 1;
    height: 400px;
    background: url('https://example.com/arc-reactor-3d.png') no-repeat center center;
    background-size: contain;
    position: relative;
}

.about-model::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
}

/* Skills Section - Responsive */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 19, 30, 0.3);
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(240, 19, 30, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Projects Section - Responsive */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 19, 30, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(240, 19, 30, 0.3);
}

.project-image {
    height: 180px;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 3.5rem;
    color: rgba(240, 19, 30, 0.2);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-info p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-item {
    background: rgba(58, 158, 253, 0.1);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid rgba(58, 158, 253, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(240, 19, 30, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 19, 30, 0.3);
    text-align: center;
    flex: 1;
}

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

/* Experience Section - Responsive */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary);
    transform: translateX(-50%);
    border: 3px solid var(--primary);
}

.timeline-date {
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

/* Blog Section - Responsive */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 19, 30, 0.3);
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.blog-image {
    height: 160px;
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    position: relative;
    overflow: hidden;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.blog-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    font-size: 0.9rem;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

/* Contact Section - Responsive */
.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(240, 19, 30, 0.3);
}

.contact-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-card p {
    font-size: 0.95rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(240, 19, 30, 0.3);
    border-radius: 4px;
    color: var(--light);
    font-size: 0.95rem;
}

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

.submit-btn {
    background: var(--primary);
    color: var(--light);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
}

.submit-btn:hover {
    background: var(--secondary);
    color: var(--dark);
}

/* Footer - Responsive */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 3rem 10% 2rem;
    text-align: center;
    border-top: 1px solid var(--primary);
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(240, 19, 30, 0.3);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(240, 19, 30, 0.4), transparent);
    transition: 0.5s;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(240, 19, 30, 0.3);
}

.social-link:hover::before {
    left: 100%;
}

.footer-text {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero-model {
        display: none;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-model {
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 2rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 4rem;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-dot {
        left: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(10px);
        transition: right 0.3s ease;
        padding: 5rem 2rem;
        border-left: 1px solid var(--primary);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav a {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 0 5%;
        min-height: 500px;
    }
    
    section {
        padding: 4rem 5%;
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .logo h2 {
        display: none;
    }
    
    .hero {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 3rem 1.5rem;
    }
    
    .about-model {
        height: 250px;
    }
    
    .skills-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 3rem;
    }
    
    .timeline-dot {
        left: 1.5rem;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .highlight-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}
